# Apartments.com API (`epctex/apartments-api`) Actor

Apartments.com rental data over a simple HTTP API: search rental properties by location and filters, get property details, images and virtual tours, and reviews by property ID. Always-on Standby Actor with JSON responses in seconds.

- **URL**: https://apify.com/epctex/apartments-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 $4.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

## Apartments API

Apartments API is an Apify actor that extracts rental property data from Apartments.com: it searches properties by location and filters, and returns a property's details, its images and virtual tours, and its reviews by property ID. Pricing ranges from $0.0002 to $0.01 per successful request, depending on the endpoint called.

Apartments API exposes 4 endpoints, accepts up to 9 query parameters per endpoint, 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

Apartments 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 | Apartments 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 Apartments API?

- **Real estate and rental market analysts** search listings by location and rent/bed/bath filters (`/properties`) and track `baseRent`, `totalRent`, `beds`, `baths` and `sqft` from a property's detail response.
- **Relocation and housing-search tools** list properties for a city or state, sorted by rent or by most recently updated, and show amenities, fees, schools and walk/transit scores for each.
- **Property managers and competitor trackers** read a property's reviews (`/properties/{propertyId}/reviews`), including owner replies, and its `specials` and unit-level `rentals` availability.
- **Listing and media tools** pull a property's photos, floor plans and virtual tours (`/properties/{propertyId}/images`).
- **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--apartments-api.apify.actor` — see the note under [Request Example](#request-example).

#### Properties

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/properties` | `location` | string | Location for the search results, e.g. `Ohio` | required |
| | `page` | string | Page for the pagination of the search results | — |
| | `sort` | string | Sort the search results: `default`, `lastUpdated`, `rentHighToLow` or `rentLowToHigh` | — |
| | `minRent` | string | Minimum rent filter | — |
| | `maxRent` | string | Maximum rent filter | — |
| | `minBed` | string | Minimum beds filter | — |
| | `maxBed` | string | Maximum beds filter | — |
| | `minBath` | string | Minimum baths filter | — |
| | `maxBath` | string | Maximum baths filter | — |
| `/properties/{propertyId}` | `propertyId` | string (path) | Property ID, e.g. `v07q4kg` | required |
| | `includeScore` | string | `true` or `false` — include walk score and transit score | — |
| | `includeModelDetails` | string | `true` or `false` — include model details (interior amenities) for rentals | — |
| | `includeImages` | string | `true` or `false` — include images (photos and virtual tours) | — |
| `/properties/{propertyId}/images` | `propertyId` | string (path) | Property ID | required |
| `/properties/{propertyId}/reviews` | `propertyId` | string (path) | Property ID | required |
| | `page` | string | Page of the list | — |

All parameters other than the ones marked required are optional.

### 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--apartments-api.apify.actor`, used in the examples below.

Search properties in a location:

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

Charges `search-properties` ($0.01) on success.

Get a property's detail, with walk and transit scores:

```bash
curl "https://epctex--apartments-api.apify.actor/properties/v07q4kg?includeScore=true" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `property-detail` ($0.005) on success.

Get a property's reviews:

```bash
curl "https://epctex--apartments-api.apify.actor/properties/v07q4kg/reviews?page=1" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `property-reviews` ($0.0002) on success.

### Pricing Model

Apartments API bills one pay-per-event charge per successful request, based on the endpoint called. A request charges only the called endpoint's event, once. Prices are per successful request of that endpoint. Each endpoint has its own event; none are shared.

| Endpoint | Event | Price |
| --- | --- | --- |
| `/properties` | search-properties | $0.01 |
| `/properties/{propertyId}` | property-detail | $0.005 |
| `/properties/{propertyId}/images` | property-images | $0.0002 |
| `/properties/{propertyId}/reviews` | property-reviews | $0.0002 |

#### Cost examples

| Scenario | Requests | Cost |
| --- | --- | --- |
| Search 1 page of properties | 1 | $0.01 |
| Look up 1 property's detail | 1 | $0.005 |
| Fetch 1 property's images | 1 | $0.0002 |
| Search, then detail, images and 1 page of reviews for one property | 4 | $0.01 + $0.005 + $0.0002 + $0.0002 = $0.0154 |
| 100 property detail lookups | 100 | $0.50 |
| 1,000 property images lookups | 1,000 | $0.20 |
| 1,000 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 property details you don't expect to change between calls instead of re-fetching them; search pages cost the most, so narrow the search with `minRent`/`maxRent`, `minBed`/`maxBed` and `minBath`/`maxBath` instead of paging through broad results.

| 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 disabled, 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 request failed | No |
| `503` | Plan/quota could not be checked right now | No |

#### Demo Mode

Apify Free-plan users can try Apartments 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 successful response is wrapped as `{ "status": 200, "message": "OK", "data": ... }`.

A property search (`GET /properties`, `data` is an array):

```json
{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": "v07q4kg",
      "name": "Briarwood",
      "bedRange": "1 - 2 Beds",
      "rentRange": "$2,441 - 3,555",
      "address": {
        "country": "US",
        "lineOne": "180 Pasito Ter",
        "lineTwo": "Sunnyvale, CA 94086",
        "city": "Sunnyvale",
        "state": "CA",
        "postalCode": "94086",
        "latitude": 37.38315,
        "longitude": -122.03958,
        "fullAddress": "180 Pasito Ter, Sunnyvale, CA 94086"
      }
    }
  ]
}
```

A property (`GET /properties/{propertyId}`, abridged — the response also carries `transportation`, `schools`, `fees`, `amenities`, `contact`, `models`, `rentals` and more):

```json
{
  "status": 200,
  "message": "OK",
  "data": {
    "id": "v07q4kg",
    "propertyName": "Briarwood",
    "url": "https://www.apartments.com/briarwood/v07q4kg/",
    "propertyWebsite": "https://www.briarwood.com",
    "lastUpdated": "2023-03-29",
    "location": {
      "fullAddress": "180 Pasito Ter, Sunnyvale, CA 94086",
      "state": "CA",
      "city": "Sunnyvale",
      "neighborhood": "Downtown",
      "postalCode": "94086",
      "streetAddress": "180 Pasito Ter"
    },
    "coordinates": { "latitude": 37.38315, "longitude": -122.03958 },
    "rating": 4.9,
    "baseRent": { "min": 2441, "max": 3555 },
    "totalRent": { "min": 2700, "max": 3874 },
    "beds": "1 - 2 bd",
    "baths": "1 - 2 ba",
    "sqft": "556 - 1,200 sq ft",
    "score": { "walkScore": 85, "transitScore": 72 }
  }
}
```

Property images (`GET /properties/{propertyId}/images`):

```json
{
  "status": 200,
  "message": "OK",
  "data": {
    "photos": ["https://images1.apartments.com/i2/lMpa-xC8K-f8dotJrJLRIXSg2f_c5Bo00PH2si8DElo/102/image.jpg"],
    "floorPlans": ["https://images1.apartments.com/i2/floorplan.jpg"],
    "virtualTours": ["https://my.matterport.com/show/?m=gpKYVX4qADy"],
    "virtualTourExtended": [{ "url": "https://my.matterport.com/show/?m=gpKYVX4qADy", "title": "Virtual Tour" }]
  }
}
```

Property reviews (`GET /properties/{propertyId}/reviews`, `data` is an array):

```json
{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "key": "3rk3z4f",
      "title": "The Town Downtown",
      "text": "Perfect location. Transit center",
      "isOwner": false,
      "submissionDate": "2015-08-02T20:15:03-05:00",
      "rating": 3,
      "positiveFeedbackCount": 92,
      "comments": [
        { "text": "Thank you for the kind words about Town Residences", "createdDate": "2017-01-04T16:51:11.3-05:00" }
      ]
    }
  ]
}
```

### Limitations

- **Page-number pagination, passed as strings.** `/properties` and `/properties/{propertyId}/reviews` take a `page` parameter; every query parameter is passed as a string.
- **`include*` flags take only `true` or `false`.** `includeScore`, `includeModelDetails` and `includeImages` on `/properties/{propertyId}` reject any other value (e.g. `yes` or `1`) with a `400`, and an unknown `sort` value is rejected the same way.
- **`location` is required** on `/properties`; a request without it is rejected with a `400` before it is forwarded.
- **Per-endpoint pricing, not per-field pricing.** Every endpoint charges one fixed event per successful request, regardless of how much data the response contains.
- **No other Apartments.com data.** Only the four endpoints above are exposed.

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

#### How much does it cost?

It depends on the endpoint: $0.01 for a property search, $0.005 for a property detail, and $0.0002 for a property's images or reviews. Failed, invalid or rejected responses are never charged, and a request never charges more than one event.

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

Per request, by the endpoint you call.

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

Pass the `page` query parameter on `/properties` or `/properties/{propertyId}/reviews`. Each page is a separate, separately-charged request.

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

Every call returns `429` with "You have used all free requests for this month. Upgrade your Apify plan to keep going." 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 specifically 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

Apartments 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/apartments-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/apartments-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/apartments-api --silent --output-dataset

```

## MCP server setup

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