# Apartments Com Scraper (`kawsar/apartments-com-scraper`) Actor

Pulls apartment listings from Apartments.com. Point it at a city or neighborhood search URL and it returns prices, floor plans, amenities, and contact details as a structured dataset.

- **URL**: https://apify.com/kawsar/apartments-com-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Categories:** Real estate, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Apartments.com Scraper

Apartments.com Scraper pulls rental listings from Apartments.com. Point it at a search URL for any city or neighborhood and it returns prices, floor plans, amenities, photos, and contact info. Pagination runs on its own. No login or account needed.

---

### What it collects

For each listing the actor returns:

- Property name, address, city, state, and zip code
- GPS coordinates (latitude and longitude)
- Monthly rent range (low and high)
- Floor plans: beds, baths, square footage, price range, and availability
- Full amenity list (pool, gym, laundry, parking, pet policy, etc.)
- Contact phone number and property website
- Property description
- Star rating and review count
- Up to 20 property photos
- Pet-friendly, parking, pool, and gym flags as true/false fields

---

### How to use

1. Open the actor and go to the **Input** tab.
2. Paste one or more Apartments.com URLs into the **Start URLs** field.
3. Adjust **Max items** if you want to cap the run.
4. Click **Start**.

The actor works with:
- Search pages: `https://www.apartments.com/new-york-ny/`
- Filtered searches: `https://www.apartments.com/chicago-il/1-bedrooms/`
- Direct listing pages: `https://www.apartments.com/property-name-city-st/abc123/`

---

### Input parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `startUrls` | list of strings | required | Apartments.com search or listing URLs to scrape |
| `includeFloorPlans` | boolean | `true` | Include detailed floor plan data per listing |
| `includeAmenities` | boolean | `true` | Include the full amenity list per listing |
| `maxItems` | integer | `50` | Max listings to collect per run (up to 1000) |
| `requestTimeoutSecs` | integer | `60` | Per-request timeout in seconds |

---

### Output example

```json
{
  "url": "https://www.apartments.com/the-station-apartments-bronx-ny/2vjnkfb/",
  "listingId": "2vjnkfb",
  "name": "The Station Apartments",
  "address": "5959 Broadway, Bronx, NY 10463",
  "streetAddress": "5959 Broadway",
  "city": "Bronx",
  "state": "NY",
  "zipCode": "10463",
  "latitude": 40.88934,
  "longitude": -73.89894,
  "phone": "+1-914-768-4947",
  "website": "https://www.thestation5959.com/",
  "propertyDescription": "Move quickly to secure your new home at 5959 Broadway...",
  "ratingValue": 4.0,
  "reviewCount": 3,
  "priceMin": 1750,
  "priceMax": 2300,
  "floorPlans": [
    {
      "name": "Studio",
      "beds": "Studio",
      "baths": "1",
      "sqftMin": 400,
      "sqftMax": 450,
      "priceMin": 1750,
      "priceMax": 1800,
      "available": true
    },
    {
      "name": "One Bedroom",
      "beds": "1",
      "baths": "1",
      "sqftMin": 650,
      "sqftMax": 750,
      "priceMin": 1950,
      "priceMax": 2300,
      "available": true
    }
  ],
  "amenities": [
    "Laundry Facilities",
    "Elevator",
    "Fitness Center",
    "High Speed Internet Access",
    "Air Conditioning",
    "Hardwood Floors",
    "Stainless Steel Appliances"
  ],
  "images": [
    "https://images1.apartments.com/i2/oUcfsOn4eATdIG1Z.../primary-photo.jpg",
    "https://images1.apartments.com/i2/HplYp2BQkAyISTPz.../building-photo.jpg"
  ],
  "isPetFriendly": false,
  "hasParking": false,
  "hasPool": false,
  "hasGym": true,
  "scrapedAt": "2026-05-06T12:34:56.789Z",
  "error": null
}
````

***

### Use cases

**Rental price tracking** — Monitor how rents shift month over month in a city or neighborhood. Feed results into a spreadsheet or database and re-run the actor on a schedule.

**Real estate investing** — Pull listings across multiple markets and compare cap rates, price-per-sqft, and amenity profiles before making site visits.

**Lead generation** — Build a list of property manager phone numbers and websites for a specific city. Export to CSV and use in outreach campaigns.

**Market research** — Compare average rents by bedroom count, pet policy, or proximity to a specific zip code. Combine with census data for neighborhood-level analysis.

**Competitive analysis** — Track a competitor property's pricing and vacancy signals (available floor plans) over time.

***

### Estimated cost

A typical run scraping 100 listings uses roughly 200 actor compute units. At standard Apify pricing that works out to a few cents per run. Larger runs over 1,000 listings cost proportionally more.

***

### Limits and notes

- Apartments.com shows roughly 40 listings per search page. For a city like New York there can be 400 to 700 pages of results.
- Set `maxItems` to control how many listings you collect per run.
- Floor plan pricing is scraped from the rendered detail page. If a listing shows only a contact form with no published price, `priceMin` and `priceMax` will be null.
- Images are direct CDN URLs from Apartments.com. They are public and do not require authentication.

# Actor input Schema

## `startUrls` (type: `array`):

One or more Apartments.com search or listing URLs to scrape. Examples: https://www.apartments.com/new-york-ny/, https://www.apartments.com/chicago-il/1-bedrooms/, https://www.apartments.com/some-property-name-city-st/abc123/

## `scrapeDetailPages` (type: `boolean`):

Visit each listing's detail page for full data: GPS coordinates, floor plan sqft, full amenity list, all photos, rating, and description. Uses 1 extra credit per listing. Default is false — search page data only (name, address, phone, prices, amenity tags, thumbnail).

## `includeFloorPlans` (type: `boolean`):

When scrapeDetailPages is enabled, include detailed floor plan data (beds, baths, sqft, price range, availability).

## `includeAmenities` (type: `boolean`):

When scrapeDetailPages is enabled, include the full amenity list per listing.

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

Maximum number of listings to collect per run.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds. Increase if you see timeout errors.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.apartments.com/new-york-ny/",
    "https://www.apartments.com/chicago-il/1-bedrooms/"
  ],
  "scrapeDetailPages": false,
  "includeFloorPlans": false,
  "includeAmenities": false,
  "maxItems": 50,
  "requestTimeoutSecs": 60
}
```

# 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 = {
    "startUrls": [
        "https://www.apartments.com/new-york-ny/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/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 = { "startUrls": ["https://www.apartments.com/new-york-ny/"] }

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

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.apartments.com/new-york-ny/"
  ]
}' |
apify call kawsar/apartments-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=kawsar/apartments-com-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Apartments Com Scraper",
        "description": "Pulls apartment listings from Apartments.com. Point it at a city or neighborhood search URL and it returns prices, floor plans, amenities, and contact details as a structured dataset.",
        "version": "0.0",
        "x-build-id": "M9Zgg8XcyuCQN7yXb"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/kawsar~apartments-com-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-kawsar-apartments-com-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/kawsar~apartments-com-scraper/runs": {
            "post": {
                "operationId": "runs-sync-kawsar-apartments-com-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/kawsar~apartments-com-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-kawsar-apartments-com-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "One or more Apartments.com search or listing URLs to scrape. Examples: https://www.apartments.com/new-york-ny/, https://www.apartments.com/chicago-il/1-bedrooms/, https://www.apartments.com/some-property-name-city-st/abc123/",
                        "items": {
                            "type": "string"
                        }
                    },
                    "scrapeDetailPages": {
                        "title": "Scrape detail pages",
                        "type": "boolean",
                        "description": "Visit each listing's detail page for full data: GPS coordinates, floor plan sqft, full amenity list, all photos, rating, and description. Uses 1 extra credit per listing. Default is false — search page data only (name, address, phone, prices, amenity tags, thumbnail).",
                        "default": false
                    },
                    "includeFloorPlans": {
                        "title": "Include floor plans",
                        "type": "boolean",
                        "description": "When scrapeDetailPages is enabled, include detailed floor plan data (beds, baths, sqft, price range, availability).",
                        "default": false
                    },
                    "includeAmenities": {
                        "title": "Include amenities",
                        "type": "boolean",
                        "description": "When scrapeDetailPages is enabled, include the full amenity list per listing.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of listings to collect per run.",
                        "default": 50
                    },
                    "requestTimeoutSecs": {
                        "title": "Request timeout (seconds)",
                        "minimum": 10,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Per-request timeout in seconds. Increase if you see timeout errors.",
                        "default": 60
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
