# Realtor.com Rental Scraper (`w3crawler/realtor-rental-scraper`) Actor

Extract public Realtor.com rental listings from search or detail URLs.

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

## Pricing

from $2.99 / 1,000 rental listings

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Realtor.com Rental Scraper

Extract public rental listings from Realtor.com apartment search pages and rental property-detail pages. The Actor reads public HTML, embedded application JSON, and JSON-LD, validates each detail URL, requires a positive rent and usable address, and omits records that cannot be verified. Optional fields are filled only from evidence in the public response.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/realtor-rental-scraper) and select **Try for free** or open the **Input** tab.
2. Supply rental `startUrls`, or clear them and set `location` to use the generated apartment-search route.
3. Keep `maxItems` and the request limits small for the first run. Leave `includeDiagnostics` enabled to record blocked or empty requests.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check the outcome.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `startUrls` | object array | Optional | `[{"url":"https://www.realtor.com/international/us/?channel=rent"}]` | Public Realtor.com apartment-search, rental-detail, or international US rental URLs. |
| `location` | string | Optional | `Austin, TX` | US city and state used to build the apartment-search URL when `startUrls` is empty. |
| `maxItems` | integer | Optional | `10` | Maximum normal rental records to emit, from 1 to 100. Stored diagnostics are additional items. |
| `timeoutSecs` | integer | Optional | `20` | Per-request timeout, from 5 to 120 seconds. |
| `requestDelayMs` | integer | Optional | `500` | Minimum delay before a bounded retry after a transient response, from 0 to 2,000 ms. |
| `maxRequestRetries` | integer | Optional | `1` | Bounded retries for HTTP 429/5xx or transient request errors, from 0 to 2. Access controls are not bypassed. |
| `includeDiagnostics` | boolean | Optional | `true` | Save an exact four-field diagnostic row when a request is blocked, unavailable, or empty. |
| `proxyConfiguration` | object | Optional | Not supplied | Optional standard Apify Proxy settings for public Realtor.com requests. |

Full default input:

```json
{
  "startUrls": [
    {
      "url": "https://www.realtor.com/international/us/?channel=rent"
    }
  ],
  "location": "Austin, TX",
  "maxItems": 10,
  "timeoutSecs": 20,
  "requestDelayMs": 500,
  "maxRequestRetries": 1,
  "includeDiagnostics": true
}
```

When `startUrls` is non-empty, its URLs take precedence; `location` is used only to build the fallback apartment-search URL. The Actor reads public HTML, embedded JSON, and JSON-LD and does not call a private API directly.

### Output

The dataset contains one rental row per verified listing, or a four-field diagnostic row when a request is blocked, unavailable, or empty and diagnostics are enabled. Optional rental fields are omitted when the public page does not expose them.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordType` | string enum | Rental rows (required) | Record type; always `realtor-rental-listing`. |
| `recordId` | string | Rental rows (required) | Stable identifier derived from the listing identity. |
| `propertyId` | string | Rental rows when published | Source property identifier. |
| `listingId` | string | Rental rows when published | Source listing identifier. |
| `listingUrl` | string | Rental rows (required) | Public rental listing URL. |
| `title` | string | Rental rows when published | Public listing title. |
| `description` | string | Rental rows when published | Public rental description. |
| `address` | string | Rental rows (required) | Full rental address. |
| `city` | string | Rental rows when published | City. |
| `state` | string | Rental rows when published | State or region code. |
| `postalCode` | string | Rental rows when published | ZIP or postal code. |
| `rent` | number | Rental rows (required) | Positive monthly rent. |
| `beds` | number | Rental rows when published | Bedroom count. |
| `baths` | number | Rental rows when published | Bathroom count. |
| `sqft` | number | Rental rows when published | Living area in square feet. |
| `latitude` | number | Rental rows when published | Listing latitude. |
| `longitude` | number | Rental rows when published | Listing longitude. |
| `photos` | string array | Rental rows when published | Public photo URLs. |
| `sourceUrl` | string | Rental rows (required) | Exact public page URL used for the rental record. |
| `sourcePageUrl` | string | Rental rows when published | Public search or listing page that referenced the rental. |
| `sourceWebsite` | string | Rental rows (required) | Source website; `https://www.realtor.com/`. |
| `scrapedAt` | string | All saved rows | Time the row was saved, in ISO UTC. |
| `url` | string | Diagnostic rows (required) | Public URL whose request or extraction failed. |
| `error` | string | Diagnostic rows (required) | Bounded error message. |
| `errorCode` | string | Diagnostic rows (required) | Stable failure code, such as `SOURCE_THROTTLED`. |

The saved runs for this build contain only a diagnostic row, not a rental row. This is the real saved row from the 2026-09-09 run:

```json
{
  "url": "https://www.realtor.com/apartments/Austin_TX/",
  "error": "Realtor.com returned an HTTP 429 access boundary.",
  "errorCode": "SOURCE_THROTTLED",
  "scrapedAt": "2026-09-09T05:53:33.595Z"
}
```

An empty run does not prove that no rentals exist; it means no verified rental row was saved.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`.

| Field | Meaning |
| --- | --- |
| `actor` | Actor name, `realtor-rental-scraper`. |
| `recordType` | Summary record type; `run-summary`. |
| `status` | Run outcome: `SUCCEEDED`, `SUCCEEDED_WITH_DIAGNOSTICS`, `EMPTY`, `BLOCKED`, or `FAILED`. |
| `dataAvailable` | Whether at least one rental row was saved. |
| `requestedPages` | Number of source pages requested. |
| `sourceUrls` | Rental URLs used for the run. |
| `location` | Location used for the generated fallback search. |
| `pagesVisited` | Pages visited. |
| `requestsAttempted` | Requests attempted, including retries. |
| `retryCount` | Retries performed. |
| `itemCount` | All dataset items saved, including diagnostics. |
| `listingCount` | Normal rental rows saved. |
| `diagnosticCount` | Operational issues observed. |
| `diagnosticsStored` | Diagnostic rows written. |
| `diagnosticsEnabled` | Whether diagnostics were enabled. |
| `maxItems` | Rental-row limit used for the run. |
| `timeoutSecs` | Per-request timeout used for the run. |
| `failures` | Bounded objects with `url` and `errorCode` for failed source requests. |
| `failedRequestCount` | Requests that failed. |
| `failedUrls` | Public URLs that failed. |
| `blockedReasons` | Reason codes for access barriers or source failures. |
| `proxyConfigured` | Whether proxy routing was configured. |
| `sourceWebsite` | Source website label, `https://www.realtor.com/`. |
| `startedAt` | Run start time, in ISO UTC. |
| `completedAt` | Time the summary was written, in ISO UTC. |
| `error` | Bounded fatal-error message when the run failed. |

| Status | Meaning |
| --- | --- |
| `SUCCEEDED` | Rental rows were saved without a stored diagnostic. |
| `SUCCEEDED_WITH_DIAGNOSTICS` | Rental rows were saved, and one or more diagnostics were also stored. |
| `EMPTY` | The run completed cleanly and found no matching rentals. |
| `BLOCKED` | No rental row was saved because the request hit an access barrier or source failure. |
| `FAILED` | A fatal error occurred before any usable rental row was saved. |

Example `OUTPUT_SUMMARY` from the saved 2026-09-09 run:

```json
{
  "actor": "realtor-rental-scraper",
  "recordType": "run-summary",
  "status": "BLOCKED",
  "dataAvailable": false,
  "requestedPages": 1,
  "sourceUrls": [
    "https://www.realtor.com/apartments/Austin_TX/"
  ],
  "location": "Austin, TX",
  "pagesVisited": 1,
  "requestsAttempted": 1,
  "retryCount": 0,
  "itemCount": 1,
  "listingCount": 0,
  "diagnosticCount": 1,
  "diagnosticsStored": 1,
  "diagnosticsEnabled": true,
  "maxItems": 5,
  "timeoutSecs": 20,
  "failures": [
    {
      "url": "https://www.realtor.com/apartments/Austin_TX/",
      "errorCode": "SOURCE_THROTTLED"
    }
  ],
  "failedRequestCount": 1,
  "failedUrls": [
    "https://www.realtor.com/apartments/Austin_TX/"
  ],
  "blockedReasons": [
    "SOURCE_THROTTLED"
  ],
  "proxyConfigured": false,
  "sourceWebsite": "https://www.realtor.com/",
  "startedAt": "2026-09-09T05:53:33.210Z",
  "completedAt": "2026-09-09T05:53:33.602Z"
}
```

### Coverage and limitations

The Actor reads public Realtor.com HTML, embedded JSON, and JSON-LD. It does not call a private API directly, log in, use private credentials, solve CAPTCHAs, spoof fingerprints, evade access controls, or fabricate a rental when the source is unavailable. A rental row is emitted only when the source supports a positive rent and usable address.

A blocked, empty, or unusable response produces no rental row. With diagnostics enabled, each failed page produces a four-field diagnostic row; otherwise the failure appears only in `OUTPUT_SUMMARY`. Rental prices, availability, photos, and descriptions can change after the run. `maxItems` limits normal rental rows, not stored diagnostics. The saved run for this build was blocked by HTTP 429, so no rental row exists to show.

### Usage and support

Cost depends on Apify compute, request volume, retries, optional proxy traffic, and rows written. Start with one search and a small `maxItems`; inspect `OUTPUT_SUMMARY` for `BLOCKED`, `EMPTY`, or `PARTIAL` outcomes before scaling. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/realtor-rental-scraper/issues) to report a problem. Include the run ID, the input used, and `OUTPUT_SUMMARY`; do not include tokens, cookies, or private data. This Actor is an independent community implementation and is not affiliated with, endorsed by, or sponsored by Realtor.com. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public listings can contain personal information; use the output only for lawful purposes.

# Actor input Schema

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

Public Realtor.com rental search or listing URLs, including international US rental pages.

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

US city and state used when startUrls is empty, for example Austin, TX.

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

Maximum listing records to emit.

## `timeoutSecs` (type: `integer`):

Timeout for each direct public request.

## `requestDelayMs` (type: `integer`):

Minimum delay before a bounded retry after a transient public-source response; keep request volume low.

## `maxRequestRetries` (type: `integer`):

Bounded retries for HTTP 429/5xx or transient request errors; access controls are never bypassed.

## `includeDiagnostics` (type: `boolean`):

Store exact four-field source diagnostics when a rental request is blocked, unavailable, or empty.

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

Optional proxy settings for public Realtor.com requests.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.realtor.com/international/us/?channel=rent"
    }
  ],
  "location": "Austin, TX",
  "maxItems": 10,
  "timeoutSecs": 20,
  "requestDelayMs": 500,
  "maxRequestRetries": 1,
  "includeDiagnostics": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/realtor-rental-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 = { "proxyConfiguration": { "useApifyProxy": False } }

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/realtor-rental-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 '{
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call w3crawler/realtor-rental-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/realtor-rental-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/N5iRfiHndC5koFdon/builds/8gVzP62lxdT85dTCV/openapi.json
