# Apartments.com Rental Listings Scraper (`adroit_amount/rentals-scraper`) Actor

Scrape apartments.com rental listings by city, zip or search URL: property, address, units, rents, fees and amenities. Pay only for validated rows.

- **URL**: https://apify.com/adroit_amount/rentals-scraper.md
- **Developed by:** [febin varghese](https://apify.com/adroit_amount) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 validated listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Apartments.com Rental Listings Scraper

Pull structured rental listings from apartments.com (property, full address, every unit with beds, baths, sqft and rent)
for rent comps, market research and investment analysis. Search by city or zip, or paste your own search URLs.

### You only pay for usable rows

Every charged row has a **property name**, a **full address** (street, city, state, zip) and **at least one unit**.
Anything less is never charged. It is written to a separate `failed-urls` dataset with the URL and the reason.

- **Rejected pages are free.** Blocked pages, partial loads, delisted listings and pages missing a name or address
  produce no row and no charge.
- **Unavailable listings are free by default.** Pages with no live units ("Check Back Soon"), or rent known only from a
  price range, go to `failed-urls` as `listing_unavailable` (see `includeUnavailable` below).
- **A fully blocked run charges nothing.** The per-run start fee is only charged once a search page has actually loaded.
- **"Call for Rent" listings** are charged when name and address are present: their `rentMin`/`rentMax` are `null` and the
  gap is listed in `dataQuality.fieldsMissing`.
- Duplicates are skipped (by listing ID, falling back to normalised street + zip), and the run never charges past
  `maxListings`.

### Measured results

Live runs on the platform, 30 listings each, `includeUnavailable` off:

| City | Charged | Failed | Success rate |
|---|---|---|---|
| Austin, TX | 30 | 0 | 100% |
| El Paso, TX | 30 | 0 | 100% |
| Columbus, OH | 30 | 0 | 100% |
| **Total** | **90** | **0** | **100%** |

- **Price:** pay per event: $0.003 per listing plus $0.02 per run, so about **$0.37 per 100 listings** in 30-listing runs.
  Larger runs cost less per listing because the start fee is spread out.
- **Speed: this is a batch tool.** apartments.com is protected by Akamai, so every page goes through Apify's Web Unblocker,
  which takes 15-30 seconds per page. Pages are fetched in parallel, and 30 listings took about **5-9 minutes**. Plan
  for batches, not interactive lookups.

#### Coverage

The charging rule applies to every page type. What has been verified live at volume is the **multi-unit** layout (apartment
communities with a unit grid or plan cards), which is all 90 rows above. Single-listing pages (houses, condos, single
units) are handled and covered by tests on saved pages, but have not been verified live at volume. Check `dataQuality.template`
on your results.

### Input

| Field | Description |
|---|---|
| `locations` | Default `Austin, TX`. `"City, ST"` (e.g. `Austin, TX`) or 5-digit zip codes. Each becomes a search URL. |
| `searchUrls` | apartments.com search-result URLs. Use with or instead of `locations`. **At least one of the two is required**, otherwise the run fails immediately. |
| `maxListings` | Maximum charged listings for the run (default 5). |
| `minRent`, `maxRent`, `bedrooms` | Optional filters (`bedrooms` 0 = studio). Applied to parsed units for every URL source. Listings with no matching unit are skipped, not charged. |
| `includeContactInfo` | Fill the `contact` object (phone in E.164, management company, office hours). Off by default; the fields are `null`. |
| `includeUnavailable` | Off by default. When on, listings that are not currently available are **emitted and charged** and keep their `parseWarnings`; when off they are free and go to `failed-urls`. |
| `maxConcurrency` | Pages fetched in parallel (default 10, max 30). |
| `proxyConfiguration` | Defaults to the Apify `UNBLOCKER` group, which apartments.com requires. |
| `debugSaveFailedHtml` | Debugging aid: save the raw HTML of up to N rejected pages to the key-value store (default 0). |

### Output

One record per listing. Rents are integers in USD per month, "Studio" is `0` beds, baths are numbers. `rentSummary` is
computed from real unit rents, not the page's advertised range, and floor plans with no live units are not reported as units.

| Field | Description |
|---|---|
| `listingId`, `url`, `scrapedAt` | Identity and timestamp |
| `propertyName`, `propertyType` | Name and type (`apartment_community`, `condo`, `townhome`, ...) |
| `address` | `street, city, state, zip, latitude, longitude` |
| `units[]` | `unitLabel, beds, baths, sqft, rentMin, rentMax, availability` |
| `rentSummary` | `min, max, currency` across units |
| `petPolicy`, `amenities`, `feesNote` | Pet policy enum, amenity list, fees as text |
| `contact` | `phone, managementCompany, officeHours` (needs `includeContactInfo`) |
| `media` | `photoCount, hasVirtualTour` |
| `dataQuality` | `template` (`multi_unit` / `single_listing` / `unknown`), `fieldsMissing`, `parseWarnings` |

Sample record from a live Austin-area run (units and amenities trimmed for length):

```json
{
  "listingId": "14zyb76",
  "url": "https://www.apartments.com/eightyone10-blue-goose-manor-tx/14zyb76/",
  "scrapedAt": "2026-11-09T20:48:53Z",
  "propertyName": "Eightyone10 Blue Goose",
  "propertyType": "apartment_community",
  "address": {"street": "8110 Blue Goose Rd", "city": "Manor", "state": "TX", "zip": "78653",
              "latitude": 30.33909, "longitude": -97.6027},
  "units": [
    {"unitLabel": "6103", "beds": 0, "baths": 1, "sqft": 582, "rentMin": 1215, "rentMax": 1215, "availability": "Nov 25"},
    {"unitLabel": "2308", "beds": 1, "baths": 1, "sqft": 783, "rentMin": 1195, "rentMax": 1195, "availability": "Now"},
    {"unitLabel": "7206", "beds": 2, "baths": 2, "sqft": 1172, "rentMin": 1680, "rentMax": 1680, "availability": "Now"}
  ],
  "rentSummary": {"min": 1195, "max": 2200, "currency": "USD"},
  "petPolicy": "cats_dogs",
  "amenities": ["Pool", "Fitness Center", "Concierge", "Clubhouse", "Washer/Dryer"],
  "feesNote": "Due at Application: Application Fee Per Applicant $75; Dogs: Monthly Pet Fee $25; Covered: Parking Fee $100",
  "contact": {"phone": null, "managementCompany": null, "officeHours": null},
  "media": {"photoCount": 26, "hasVirtualTour": true},
  "dataQuality": {"template": "multi_unit", "fieldsMissing": [], "parseWarnings": []}
}
```

### Run summary and failures

- **`failed-urls` dataset:** `{url, errorReason, stage, failedAt}` for every rejected page. A blocked or partial page is
  retried once before it lands here.
- **`RUN_SUMMARY` key-value record:** `pagesVisited, listingsCharged, failed, successRatePct, templateBreakdown`,
  `duplicatesSkipped`, `filteredOut`, `failureReasons`, `actorStartCharged`, `stopReason`.

### Notes

Only publicly visible listing data is collected. Use the data in line with apartments.com's terms and applicable law.

# Actor input Schema

## `searchUrls` (type: `array`):

apartments.com search-results URLs (e.g. https://www.apartments.com/austin-tx/2-bedrooms/). Use together with, or instead of, Locations. At least one of Search URLs / Locations is required. Filters below are applied to listings from these URLs too.

## `locations` (type: `array`):

"City, ST" strings (e.g. "Austin, TX") or 5-digit zip codes (e.g. "78701"). Each is converted to an apartments.com search URL. At least one of Search URLs / Locations is required.

## `maxListings` (type: `integer`):

Maximum number of valid, charged listings for the whole run. The crawl stops once this many have been emitted.

## `minRent` (type: `integer`):

Optional. Only units renting for at least this much are kept; listings with no matching unit are skipped (not charged). Units priced "Call for Rent" cannot match an active rent filter.

## `maxRent` (type: `integer`):

Optional. Only units renting for at most this much are kept; listings with no matching unit are skipped (not charged).

## `bedrooms` (type: `integer`):

Optional exact bedroom count (0 = studio). Only matching units are kept; listings with no matching unit are skipped (not charged).

## `includeContactInfo` (type: `boolean`):

If enabled, the contact object (phone in E.164 format, management company, office hours) is filled in. If disabled it is returned with null values.

## `includeUnavailable` (type: `boolean`):

Off by default. Listings that are not currently available (for example "Check Back Soon" pages, pages with no live units, or rent known only from the page's JSON-LD price range) are NOT charged: they are written to the failed-urls dataset with errorReason "listing_unavailable". If enabled, they are emitted and charged, and keep their parseWarnings.

## `maxConcurrency` (type: `integer`):

Maximum number of pages fetched in parallel. Each page takes 15-30 s through the Unblocker, so concurrency is what sets throughput.

## `debugSaveFailedHtml` (type: `integer`):

Debugging aid. Saves the raw HTML of up to this many pages rejected by validation to the key-value store (keys FAILED_HTML\_<listingId>). 0 = off.

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

Apify Web Unblocker (UNBLOCKER group) is required: apartments.com's Akamai protection blocks plain datacenter and residential browser traffic. It is billed per request.

## Actor input object example

```json
{
  "searchUrls": [],
  "locations": [
    "Austin, TX"
  ],
  "maxListings": 5,
  "includeContactInfo": false,
  "includeUnavailable": false,
  "maxConcurrency": 10,
  "debugSaveFailedHtml": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

No description

## `summary` (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 = {
    "searchUrls": [],
    "locations": [
        "Austin, TX"
    ],
    "maxListings": 5,
    "includeUnavailable": false,
    "maxConcurrency": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "UNBLOCKER"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("adroit_amount/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 = {
    "searchUrls": [],
    "locations": ["Austin, TX"],
    "maxListings": 5,
    "includeUnavailable": False,
    "maxConcurrency": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["UNBLOCKER"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("adroit_amount/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 '{
  "searchUrls": [],
  "locations": [
    "Austin, TX"
  ],
  "maxListings": 5,
  "includeUnavailable": false,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}' |
apify call adroit_amount/rentals-scraper --silent --output-dataset

```

## MCP server setup

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