# Apartments.com Rentals Scraper (`fetch_cat/apartments-com-rentals-scraper`) Actor

Export public Apartments.com rental listings with prices, addresses, amenities, availability, images, coordinates, and contact details.

- **URL**: https://apify.com/fetch\_cat/apartments-com-rentals-scraper.md
- **Developed by:** [Hanna Nosova](https://apify.com/fetch_cat) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 rental properties

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 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

## Apartments.com Rentals Scraper

Export public Apartments.com rental properties by city, ZIP code, search URL, or individual property URL. Get stable listing IDs, rent ranges, addresses, availability, amenities, coordinates, contact details, images, and source links as JSON, CSV, Excel, or API output.

The Actor is built for rental-market research, inventory monitoring, property-management analysis, relocation workflows, and public listing enrichment. It uses a lightweight connection by default, so you do not need to configure a proxy for ordinary runs.

### Example input

```json
{
  "startUrls": [{"url": "https://www.apartments.com/apartments/new-york-ny/?bb="}],
  "maxItems": 25,
  "maxPages": 2,
  "includeDetails": true,
  "includeImages": true
}
```

You can instead use `{"location":"Chicago IL","maxItems":25}` or `{"zipCode":"10001","maxItems":25}`.

### Example output

```json
{
  "listingId": "1j2c5h6",
  "url": "https://www.apartments.com/10-halletts-point-astoria-ny/1j2c5h6/",
  "sourceUrl": "https://www.apartments.com/apartments/new-york-ny/?bb=",
  "propertyName": "10 Halletts Point",
  "address": "10, 20, 30 Halletts Pt, Astoria, NY 11102",
  "city": "Astoria",
  "state": "NY",
  "zipCode": "11102",
  "neighborhood": null,
  "latitude": 40.7766,
  "longitude": -73.93585,
  "priceText": "Studio $3,195; 2 Beds $4,388+",
  "minPrice": 3195,
  "maxPrice": 4388,
  "currency": "USD",
  "bedrooms": ["Studio", "2 Beds"],
  "bathrooms": [],
  "squareFeet": [],
  "propertyType": "Apartment Community",
  "availabilityText": null,
  "amenities": ["Fitness Center", "Pool"],
  "rating": null,
  "reviewCount": null,
  "scores": {},
  "phone": "(929) 552-4252",
  "contactName": null,
  "imageUrls": ["https://images1.apartments.com/...jpg"],
  "description": "Public property description...",
  "scrapedAt": "2026-08-03T17:45:00.000Z",
  "warnings": []
}
```

### What data can you extract?

| Field | Description |
|---|---|
| `listingId` | Stable public Apartments.com listing identity |
| `url`, `sourceUrl` | Canonical property URL and originating input/page |
| `propertyName`, `address` | Property name and full displayed address |
| `city`, `state`, `zipCode`, `neighborhood` | Public location components |
| `latitude`, `longitude` | Public map coordinates when available |
| `priceText` | Original displayed rent/range text |
| `minPrice`, `maxPrice`, `currency` | Safely normalized rent range |
| `bedrooms`, `bathrooms`, `squareFeet` | Public unit range values |
| `propertyType`, `availabilityText` | Property classification and availability |
| `amenities` | Publicly listed amenities |
| `rating`, `reviewCount`, `scores` | Public rating and score summaries |
| `phone`, `contactName` | Public contact fields shown on the property page |
| `imageUrls` | Public property image URLs |
| `description` | Public property description |
| `scrapedAt`, `warnings` | Collection timestamp and per-row enrichment notices |

### Input settings

| Setting | JSON key | Description |
|---|---|---|
| Apartments.com URLs | `startUrls` | Search URLs with your filters or individual property URLs |
| Location | `location` | City/state search, such as `Chicago IL` |
| ZIP code | `zipCode` | Five-digit US ZIP search |
| Maximum properties | `maxItems` | Global unique-property limit; default 25 |
| Maximum pages | `maxPages` | Search-page limit per input; default 5 |
| Enrich details | `includeDetails` | Visit property pages for expanded public fields |
| Include images | `includeImages` | Return publicly displayed image URLs |
| Proxy | `proxyConfiguration` | Optional advanced connection settings; not required by default |

### Input recipes

**Fast market snapshot**

```json
{"location":"Chicago IL","maxItems":50,"maxPages":2,"includeDetails":false}
```

**Detailed property record**

```json
{"startUrls":[{"url":"https://www.apartments.com/10-halletts-point-astoria-ny/1j2c5h6/"}],"maxItems":1,"includeDetails":true}
```

**Filtered monitoring run**

Paste the filtered Apartments.com results URL into `startUrls`, set a conservative `maxItems`, and schedule repeat runs in Apify. Stable `listingId` values make snapshots easy to compare.

### Who is it for?

This Actor is useful for real estate analysts, rental-market researchers, property managers, relocation teams, and developers building rental search or monitoring workflows.

### Pricing

The Actor charges a one-time **Start** event per run and a **Rental property** event for each unique property saved. Blocked requests, failed enrichment, and duplicates do not trigger a property charge. See the [live Pricing tab](https://apify.com/fetch_cat/apartments-com-rentals-scraper/pricing) for current rates and account-tier discounts.

### Tips and limits

- Start with 10–25 properties, inspect output, then increase the limit.
- Use a pasted search URL when you need Apartments.com filters preserved exactly.
- Disable `includeDetails` for a faster search snapshot; enable it for contacts, coordinates, amenities, and richer media.
- Broad searches may be capped or reordered by Apartments.com. The Actor reports what the public pages expose and does not claim exhaustive market coverage.
- Optional fields remain empty instead of being guessed. A row warning records detail-page failures while preserving useful search data.

### API usage

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fetch_cat/apartments-com-rentals-scraper').call({
  location: 'New York NY', maxItems: 25, includeDetails: true
});
console.log(run.defaultDatasetId);
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("fetch_cat/apartments-com-rentals-scraper").call(run_input={
    "zipCode": "10001", "maxItems": 25, "includeDetails": True
})
print(run["defaultDatasetId"])
```

```bash
curl -X POST 'https://api.apify.com/v2/acts/fetch_cat~apartments-com-rentals-scraper/runs?token=YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"location":"Chicago IL","maxItems":25}'
```

### MCP and AI agents

Connect through Apify MCP Server:

```bash
claude mcp add --transport http apify 'https://mcp.apify.com?tools=fetch_cat/apartments-com-rentals-scraper'
```

Or add the HTTP server to your MCP client configuration:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=fetch_cat/apartments-com-rentals-scraper"
    }
  }
}
```

Example prompts:

- “Export 20 public Apartments.com rentals in ZIP 10001 and summarize the rent range.”
- “Find Chicago rentals, return their addresses and amenities, and group them by price range.”

### FAQ

#### Can I export CSV or Excel?

Yes. Every run writes an Apify dataset that can be downloaded as JSON, CSV, Excel, XML, or RSS and queried over the dataset API.

#### Does it require a proxy?

No proxy is configured by default. Optional Apify Proxy settings are available for buyers who need them in their own environment.

#### Why are some fields empty?

Apartments.com does not show every field for every property. The Actor returns null or an empty array rather than inventing values.

#### Can I scrape a single property?

Yes. Add its public Apartments.com property URL to `startUrls` and set `maxItems` to 1.

### Related actors

- [Zillow Scraper](https://apify.com/fetch_cat/zillow-scraper)
- [Redfin Scraper](https://apify.com/fetch_cat/redfin-scraper)
- [Realtor.com Scraper](https://apify.com/fetch_cat/realtor-com-scraper)
- [Google Maps Places Scraper](https://apify.com/fetch_cat/google-maps-places-scraper)
- [Website Contact Finder](https://apify.com/fetch_cat/website-contact-finder)

### Support

Open an issue from the Actor page with the run URL, input, expected result, and one reproducible public Apartments.com URL. Do not include credentials or private data.

# Actor input Schema

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

Public search or individual property URLs. Pasted search filters are preserved.

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

City and state, for example Chicago IL. Use instead of a URL.

## `zipCode` (type: `string`):

US ZIP code to search.

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

Maximum unique rental properties to save across all inputs.

## `maxPages` (type: `integer`):

Stops broad searches after this many result pages.

## `includeDetails` (type: `boolean`):

Visit each public property page for amenities, coordinates, contact, media, and availability fields.

## `includeImages` (type: `boolean`):

Include publicly displayed property image URLs.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy settings. The default route does not use a proxy.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.apartments.com/apartments/new-york-ny/?bb="
    }
  ],
  "maxItems": 20,
  "maxPages": 5,
  "includeDetails": true,
  "includeImages": true
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

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

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

# Run the Actor and wait for it to finish
run = client.actor("fetch_cat/apartments-com-rentals-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 '{
  "startUrls": [
    {
      "url": "https://www.apartments.com/apartments/new-york-ny/?bb="
    }
  ]
}' |
apify call fetch_cat/apartments-com-rentals-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fetch_cat/apartments-com-rentals-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/nhI3KdSmtfdIk6ZuC/builds/hrPL2uSBhzNfX4eAw/openapi.json
