# Apartments.com Scraper (`parseforge/apartments-com-scraper`) Actor

Scrapes rental property listings from Apartments.com search results. Returns each listing as a flat row with rent price, address, floor plan details, and property type.

- **URL**: https://apify.com/parseforge/apartments-com-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Real estate, Automation, Developer tools
- **Stats:** 39 total users, 8 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $23.99 / 1,000 result items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### Apartments.com Scraper

**Scrape rental listings from Apartments.com by city, state, or direct URL, up to a million per run.** Every listing returns with its rent price, floor plan details, address, and property type. No login or API key. Export to CSV, JSON, Excel, or XML.

Apartments.com is the largest rental marketplace in the U.S., but manually collecting listings for market analysis is slow and repetitive. This Apartments.com scraper reads public search results directly, letting you filter by location, bedrooms, price, and property type, and returns each matching listing in a consistent, flat schema. It handles pagination and data extraction so you get a clean dataset without writing any code.

| Who uses it | What they scrape Apartments.com for |
|---|---|
| Market researchers | Tracking rental price trends across different cities and neighborhoods. |
| Real estate investors | Finding undervalued properties by comparing asking rents in a target market. |
| Property managers | Monitoring competitor listings to set competitive rental rates. |
| Data analysts | Building rental market datasets for predictive pricing models. |

### What it does

This Actor collects rental property listings from Apartments.com search results and returns each one as a flat row with rent price, address, floor plan details, and property type.

- 🏙️ **Location search:** enter a city and state like 'Los Angeles, CA' to scrape all available listings in that area.
- 🔗 **Direct URL input:** paste a pre-filtered Apartments.com search URL to replicate an exact search with custom parameters.
- 🛏️ **Bedroom filter:** narrow results to studios, 1-bedroom, 2-bedroom, 3-bedroom, or 4+ bedroom units.
- 💰 **Price cap:** set a maximum monthly rent to focus on properties within a specific budget.
- 🏠 **Property type:** filter by apartments, houses, townhomes, or condos to match your investment or research criteria.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Apartments.com data

**📈 Monitor rental market trends.**

A market researcher runs the scraper monthly on 'Austin, TX' with a 2-bedroom filter to track median rent changes and report on housing affordability.

**🏢 Analyze competitor properties.**

A property manager scrapes listings in their zip code weekly to compare amenities and adjust their own rents to stay competitive.

**💼 Build a lead list for investment.**

A real estate investor scrapes all multi-family properties under $2,000 in a growing suburb to identify potential acquisition targets.

**🗺️ Map rental density by neighborhood.**

A data analyst collects thousands of listings across Chicago, geocodes the addresses, and builds a heatmap of rental supply for a city planning report.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API registration** | Bypass the need for an official API key or OAuth setup. The scraper reads public listing data directly. |
| **Structured output** | Every listing is parsed into the same flat schema, ready for analysis in Excel, SQL, or a BI tool. |
| **Flexible targeting** | Search by city name or paste a URL with custom filters already applied on Apartments.com. |

### How it compares

This Actor focuses on fast, schema-consistent search-result scraping from Apartments.com with simple location and filter inputs. Here is how it compares to other actors that also scrape Apartments.com.

| Feature | ParseForge | Apartments Scraper API | Real Estate Aggregator | Apartments.com Scraper with Agents |
|---|---|---|---|---|
| Scrapes Apartments.com search results | Yes | Yes | Yes | Yes |
| Location-based search input | Yes | Not listed | Not listed | Not listed |
| Filter by bedrooms, price, and property type | Yes | Not listed | Not listed | Not listed |
| Deduplication across multiple real estate sources | Not listed | Not listed | Yes | Not listed |
| Agent contact data extraction | Not listed | Not listed | Not listed | Yes |
| Pay-per-event pricing model | Not listed | Yes | Not listed | Not listed |

### Configure the run

Drive the Actor from a location name or a direct Apartments.com search URL, and apply optional filters for bedrooms, maximum price, and property type so only matching listings reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "startUrl": "https://www.apartments.com/los-angeles-ca/",
  "maxItems": 10
}
```

A larger pull:

```json
{
  "startUrl": "https://www.apartments.com/los-angeles-ca/",
  "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.03199 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $3.20 |
| 1,000 results | $31.99 |
| 10,000 results | $319.90 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Apartments.com Scraper](https://apify.com/parseforge/apartments-com-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Apartments.com through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/apartments-com-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that your location string matches Apartments.com's format, like 'Los Angeles, CA' or 'los-angeles-ca'. Also verify that your filters are not too restrictive. A max price of $500 in a major city may return zero listings.

**The scraper is returning fewer results than I see on the website.**

Apartments.com sometimes shows sponsored listings or duplicates. The Actor deduplicates by listing ID. Lower your maxItems or broaden your filters to capture more unique listings.

**I am getting blocked or seeing captchas.**

Increase the run's memory or switch to a higher-tier proxy plan in Apify. Residential proxies are more effective for large-scale scraping of real estate sites.

**The location search is not finding my city.**

Try using the URL-encoded city name format, like 'san-francisco-ca'. If that fails, perform the search manually on Apartments.com and paste the full URL into the startUrl field.

**My run timed out before reaching maxItems.**

Increase the Actor's timeout setting in the run options. For very large scrapes, consider splitting the work into multiple runs by neighborhood or price range.

### FAQ

| Question | Answer |
|---|---|
| Can I scrape listings from multiple cities in one run? | The Actor accepts one location or one URL per run. To scrape multiple cities, run the Actor once per city, or provide a list of URLs in a separate orchestrator Actor. |
| Does this scraper get past Apartments.com anti-bot protections? | The Actor runs on Apify's platform with residential proxies and smart request handling to minimize blocking. For high-volume runs, a proxy plan is recommended. |
| What data fields does the scraper return? | Each listing row includes the property name, address, rent price, number of bedrooms and bathrooms, square footage, property type, and a link to the full listing page. |
| Can I filter by amenities like in-unit laundry or a pool? | The input schema supports filtering by bedrooms, price, and property type. For amenity filters, apply them directly on Apartments.com and paste the resulting URL into the startUrl field. |
| Is it legal to scrape Apartments.com? | The Actor only collects publicly available data. You are responsible for complying with Apartments.com's terms of service and applicable laws in your jurisdiction. |
| How many listings can I scrape in one run? | You can set the maxItems input up to 1,000,000. The actual number depends on how many listings match your search criteria on Apartments.com. |
| Can I get the full description and photos from each listing? | The Actor returns the summary data visible in search results. For full descriptions, photos, and amenities, you would need to follow the listing links with a separate detail-page scraper. |
| What output formats are supported? | You can export your dataset in CSV, JSON, Excel, XML, or RSS, or push it directly to a database or data warehouse via Apify integrations. |
| Does the scraper handle Apartments.com pagination? | Yes, the Actor automatically follows pagination links and scrolls through search results until it reaches your maxItems limit or the end of the listings. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by CoStar Group, Inc. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `startUrl` (type: `string`):

Direct Apartments.com search results URL to scrape. Use this to scrape a specific search with pre-applied filters. Either provide this OR location, not both.

## `maxItems` (type: `integer`):

Maximum number of apartments to collect per run.

## `location` (type: `string`):

City and state to search for apartments (e.g., 'Los Angeles, CA' or 'los-angeles-ca'). Either provide this OR a direct URL, not both.

## `bedrooms` (type: `string`):

Filter by number of bedrooms

## `priceMax` (type: `integer`):

Maximum monthly rent price in USD

## `propertyType` (type: `string`):

Type of property to search for

## Actor input object example

```json
{
  "startUrl": "https://www.apartments.com/los-angeles-ca/",
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with scraped rental listings

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrl": "https://www.apartments.com/los-angeles-ca/",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/apartments-com-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrl": "https://www.apartments.com/los-angeles-ca/",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/apartments-com-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrl": "https://www.apartments.com/los-angeles-ca/",
  "maxItems": 10
}' |
apify call parseforge/apartments-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/apartments-com-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Kg6eTVYuxqiCgTBRJ/builds/RpoGDhjafzCbQawLm/openapi.json
