# Realtor API (`epctex/realtor-api`) Actor

Realtor.com property data over a simple HTTP API: search homes for sale, for rent and recently sold, get full property details, community rental floorplans and location lookups. Always-on Standby Actor with JSON responses in seconds.

- **URL**: https://apify.com/epctex/realtor-api.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.97 / 1,000 property details

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?

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 API

Realtor API is an Apify actor that retrieves property data from Realtor.com: properties for sale, for rent and recently sold, the full detail of a single property, community rental floorplans, and the location keys that searches need. Pricing ranges from $0.001 to $0.01 per successful request, depending on the endpoint called.

Realtor API exposes 6 endpoints, accepts up to 22 query parameters on the search endpoints, and bills one pay-per-event charge per successful request — the event depends on which endpoint you call — with no subscription and no monthly minimum on paid plans.

### How It Works

Realtor API runs as an [Apify Standby Actor](https://docs.apify.com/platform/actors/running/standby): an always-on HTTP server, not a classic Actor run. There is no run to start and no dataset to poll — you send a plain `GET` request to an endpoint and the JSON comes back in the response itself.

| | Classic dataset Actor | Realtor API (Standby) |
| --- | --- | --- |
| How you call it | Start a run, wait, then read the dataset | One `GET` request |
| Result | Items accumulate in a dataset | JSON in the HTTP response, synchronously |
| Billing | Per run or per dataset item | Per successful request, by endpoint |

Authenticate with your Apify API token, either as an `Authorization: Bearer <token>` header or a `?token=<token>` query parameter. The token is only used to identify and bill the caller — it is **never forwarded** to the upstream data service.

### Who Uses Realtor API?

- **Real estate research and market-analysis tools** search listings by location, price, beds, baths, size and year built (`/properties/buy`) and read fields such as `listPrice`, `sqft` and `yearBuilt`.
- **Rental platforms and relocation tools** search rentals with the `moveInBy` availability filter (`/properties/rent`) and read community floorplans and unit availability (`/properties/{permalink}/floorplans`).
- **Investors and appraisers** look at recently sold properties (`/properties/sold`, with `soldWithin` up to 36 months) and the `taxHistory` and `buildingPermitsHistory` of a single property.
- **Lead-generation and CRM tools** pull a property's detail (`/properties/{permalink}`) including its advertiser, photos and open houses.
- **AI agents and chatbots** call it directly as a tool: plain JSON over HTTP with a published OpenAPI spec.

### Endpoints & Parameters

All endpoints are `GET`. Base URL: `https://epctex--realtor-api.apify.actor` — see the note under [Request Example](#request-example).

#### Locations

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/locations` | `location` | string | Location to look up, e.g. `Ohio`. Each result's `key` is what the search endpoints need as `locationKey`. | required |

#### Property search

`/properties/buy`, `/properties/rent` and `/properties/sold` share the same filters. All values are passed as strings.

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `locationKey` | string | Location key, taken from `/locations`, e.g. `Detroit_MI` | required |
| `page` | string | Page of the search results | — |
| `radius` | string | Radius in miles around the location. Realtor.com only accepts 0-50. | — |
| `keyword` | string | Keyword the listing has to mention | — |
| `type` | string | Comma separated property types: `all`, `single-family-home`, `multi-family-home`, `condo`, `condop`, `coop`, `townhome`, `apartments`, `mfd-mobile-home`, `farms-ranches`, `land`. `all` opts out of the filter. | — |
| `tags` | string | Comma separated amenity filters: `garage-1-or-more`, `garage-2-or-more`, `garage-3-or-more`, `swimming-pool`, `spa-or-hot-tub`, `horse-facilities` | — |
| `minPrice`, `maxPrice` | string | Price range | — |
| `minBed`, `maxBed` | string | Beds range | — |
| `minBath`, `maxBath` | string | Baths range | — |
| `minSqft`, `maxSqft` | string | Living area in square feet | — |
| `minLotSqft`, `maxLotSqft` | string | Lot area in square feet | — |
| `minYearBuilt`, `maxYearBuilt` | string | Build year range | — |
| `daysOnMarket` | string | Only listings that went live within this many days. Filters on the list date, so on the sold endpoint it narrows by when the property was listed, not when it sold. | — |
| `includePending` | `true` | `false` | Set to `false` to drop pending listings. Pending listings are included by default. | included |
| `sort` | enum | Sorting, see the per-endpoint values below | — |

Endpoint-specific fields:

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/properties/buy` | `sort` | enum | `relevant`, `newest`, `newest-built`, `luxury`, `affordable`, `highest-price`, `lowest-price`, `open-house-date`, `recently-reduced`, `largest-sqft`, `lot-size`, `photo-count` | — |
| `/properties/rent` | `sort` | enum | `best-match`, `recently-added`, `newest-built`, `luxury`, `affordable`, `highest-price`, `lowest-price` | — |
| | `moveInBy` | string | Move-in date availability filter, e.g. `04/28/23` | — |
| `/properties/sold` | `sort` | enum | `sold-date`, `newest-built`, `luxury`, `affordable`, `highest-price`, `lowest-price`, `largest-sqft`, `lot-size`, `photo-count` | — |
| | `soldWithin` | enum | How many months back sold listings are taken into account: `1`, `3`, `6`, `12`, `24`, `36` | — |

#### Properties

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/properties/{permalink}` | `permalink` | string (path) | Property permalink, e.g. `86-Pendleton-Ln_Londonderry_NH_03053_M35776-14408` (the `permalink` field of a search result) | required |
| | `includeFloorplans` | `true` | `false` | Folds the community rental floorplans into the response. Only community rentals have floorplans; every other property resolves to an empty list. | — |
| `/properties/{permalink}/floorplans` | `permalink` | string (path) | Property permalink | required |

### Request Example

> **Standby base URL:** Apify Standby actors are reachable at `https://{apify-username}--{actor-name}.apify.actor`. This actor is published under the epctex account, so its Standby base URL is `https://epctex--realtor-api.apify.actor`, used in the examples below.

Look up a location key:

```bash
curl -G "https://epctex--realtor-api.apify.actor/locations" \
  --data-urlencode "location=Ohio" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `location-lookup` on success.

Search properties for sale:

```bash
curl -G "https://epctex--realtor-api.apify.actor/properties/buy" \
  --data-urlencode "locationKey=Detroit_MI" \
  --data-urlencode "sort=relevant" \
  --data-urlencode "minBed=1" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `properties-for-sale` on success.

Get a property's detail:

```bash
curl "https://epctex--realtor-api.apify.actor/properties/86-Pendleton-Ln_Londonderry_NH_03053_M35776-14408" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `property-detail` on success.

### Pricing Model

Realtor API bills one pay-per-event charge per successful request, based on the endpoint called — regardless of how many properties the response contains. Only the called endpoint's event is charged, once per request. The four location and search endpoints share the $0.01 price point, and the two property endpoints share $0.001, but each is still billed as its own named event.

| Endpoint | Event | Price |
| --- | --- | --- |
| `/locations` | `location-lookup` | $0.01 |
| `/properties/buy` | `properties-for-sale` | $0.01 |
| `/properties/rent` | `properties-for-rent` | $0.01 |
| `/properties/sold` | `sold-properties` | $0.01 |
| `/properties/{permalink}` | `property-detail` | $0.001 |
| `/properties/{permalink}/floorplans` | `property-floorplans` | $0.001 |

| Status | Meaning | Charged? |
| --- | --- | --- |
| `200` | Successful response, contains `data` | Yes — the called endpoint's event |
| `400` | Bad request — a param failed validation | No |
| `403` | Standby access not available on your plan, or your access was restricted by the developer | No |
| `404` | Endpoint not matched, or nothing found upstream | No |
| `429` | Monthly free-request limit reached | No |
| `502` | Upstream (INFRA) request failed | No |
| `503` | Plan/quota could not be checked right now | No |

#### Cost examples

| Scenario | Requests | Cost |
| --- | --- | --- |
| Look up 1 location key | 1 | $0.01 |
| Fetch 1 property's detail | 1 | $0.001 |
| Look up a location, then search 1 page for sale | 2 | $0.01 + $0.01 = $0.02 |
| Search 1 page, then fetch one property's detail and floorplans | 3 | $0.01 + $0.001 + $0.001 = $0.012 |
| Look up a location, search 5 pages for sale, fetch 3 property details | 9 | $0.01 + $0.05 + $0.003 = $0.063 |
| Pull 10 pages of rentals | 10 | $0.10 |
| 1,000 property detail lookups | 1,000 | $1.00 |
| 1,000 sold-properties search pages | 1,000 | $10.00 |

**Cost optimization tips:** don't retry on `400`/`403`/`404`/`429` — they're not charged but they also won't succeed on retry without changing the request; cache location keys, which rarely change, instead of calling `/locations` every time; search pages are billed per page, not per property, so request only the pages you need.

#### Demo Mode

Apify Free-plan users can try Realtor API without a subscription, capped at **10 requests per calendar month**. Once that limit is used up, every call answers `429` ("You have used all free requests for this month. Upgrade your Apify plan to keep going.") until the next month. A paid Apify plan removes the monthly cap entirely.

### Output Example

Every response is wrapped as `{ "status", "message", "data" }`.

Location lookup (`GET /locations`):

```json
{
  "status": 200,
  "message": "OK",
  "data": [
    { "areaType": "city", "city": "Detroit", "state": "MI", "country": "USA", "key": "Detroit_MI" }
  ]
}
```

Property search (`GET /properties/buy`, one item of `data.results` shown, abbreviated):

```json
{
  "status": 200,
  "message": "OK",
  "data": {
    "count": 42,
    "total": 10400,
    "results": [
      {
        "propertyId": "3577614408",
        "listingId": "2959301949",
        "listDate": "2023-09-01T18:26:02.000Z",
        "url": "https://www.realtor.com/rentals/details/86-Pendleton-Ln_Londonderry_NH_03053_M35776-14408",
        "permalink": "86-Pendleton-Ln_Londonderry_NH_03053_M35776-14408",
        "status": "for_rent",
        "beds": 4,
        "baths": 2,
        "sqft": 1800,
        "lotSqft": 20909,
        "yearBuilt": 1972,
        "photoCount": 19
      }
    ]
  }
}
```

Floorplans (`GET /properties/{permalink}/floorplans`, abbreviated):

```json
{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": "46",
      "name": "1 bed 1 bath",
      "type": "apartment",
      "beds": 1,
      "baths": 1,
      "sqft": 580,
      "listPrice": 650,
      "availableOn": "2026-07-31T00:00:00.000Z"
    }
  ]
}
```

`GET /properties/{permalink}` returns a `data` object with the property's full detail (for example `listPrice`, `beds`, `sqft`, `address`, `coordinates`, `photos`, `openHouses`, `taxHistory`, `buildingPermitsHistory` and `location`); see `.actor/openapi.json` for the complete schema.

### Limitations

- **Search endpoints need a location key.** Call `/locations` first and pass the result's `key` as `locationKey`.
- **Realtor.com only accepts a `radius` of 0-50 miles.**
- **Only community rentals have floorplans.** Every other property resolves to an empty list on `/properties/{permalink}/floorplans`.
- **`daysOnMarket` filters on the list date**, so on `/properties/sold` it narrows by when the property was listed, not by when it sold.
- **Search results carry at most three photos** per property.
- **Per-endpoint pricing, not per-field pricing.** Every endpoint charges a fixed event regardless of how many properties a page contains.

### Which Realtor API Questions Come Up Most Often?

#### Do I need a Realtor.com account or API key?

No. You only need an Apify API token.

#### How much does it cost?

It depends on the endpoint: $0.01 for a location lookup or a properties-for-sale, properties-for-rent or sold-properties search page, and $0.001 for a property's detail or floorplans. See the [Pricing Model](#pricing-model) table. Failed, invalid, rejected or not-found responses are not charged, and a request never charges more than one event.

#### Am I charged per property, or per request?

Per request. A search page costs the same whatever the number of results it contains.

#### How do I get more than one page of results?

Pass the `page` query parameter on the search endpoints. Each page is a separate, separately-charged request.

#### How do I find the `locationKey` for a search?

Call `/locations?location=Ohio` and use the `key` field of a result, e.g. `Detroit_MI`.

#### How do I get a property's permalink?

Read the `permalink` field of a search result and pass it to `/properties/{permalink}`.

#### What happens when I hit the free-plan limit?

Every call returns `429` until the next calendar month, or until you move to a paid Apify plan.

#### Why did my request return `403`?

Either Standby access isn't available on your current Apify plan, or your access to this Actor has been restricted by its developer.

#### Can I retry a `502` or `503`?

Yes. `502` means the request to the upstream data service failed; `503` means your plan/quota couldn't be checked. Neither is charged, and both are safe to retry after a short delay.

#### Can I use this from an AI agent or bot?

Yes. It's a plain HTTP JSON API with a published OpenAPI spec, so it fits LLM tool calls, bots, backends, and any no-code tool that can make HTTP requests.

### Contact

Realtor API is published by epctex. Visit [epctex.com](https://epctex.com) to see all available products. For custom integrations, reach out through the chat box on epctex.com. For support, contact business@epctex.com.

# Actor input Schema

## Actor input object example

```json
{}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/realtor-api").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("epctex/realtor-api").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 '{}' |
apify call epctex/realtor-api --silent --output-dataset

```

## MCP server setup

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

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/uqRMtQMnsbxIw6xFd/builds/vNuMvdvZNmPGcfbzp/openapi.json
