# Apartments.com Scraper - US Rental Listings (`jungle_synthesizer/apartments-com-scraper`) Actor

Scrape rental listings from apartments.com. Extract property names, addresses, rent ranges, bedrooms, bathrooms, sqft, amenities, pet policies, parking, laundry, utilities, management companies, phone numbers, ratings, and coordinates. Filter by state, city, property type, rent range, or bedrooms.

- **URL**: https://apify.com/jungle_synthesizer/apartments-com-scraper.md
- **Developed by:** [BowTiedRaccoon](https://apify.com/jungle_synthesizer) (community)
- **Categories:** Real estate, Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 85.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 record scrapeds

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.com Scraper - US Rental Listings & Rental Data API

Extract rental listings and apartment rental data from [apartments.com](https://www.apartments.com), the largest US rental platform (CoStar subsidiary). This apartments.com scraper pulls rental prices by city and state and returns property names, addresses, rent ranges, bedroom/bathroom counts, amenities, pet policies, parking, laundry, utilities, management companies, phone numbers, ratings, coordinates, year built, and unit counts.

### Features

- **25 data fields** per listing including year_built, units_count, utilities_included, and management_company that most scrapers miss
- **Search by URL, state, or city** — pass apartments.com search URLs directly or use state/city/filter inputs
- **Optional detail pages** — fast listing-card-only mode or comprehensive detail page scraping
- **Property type and rent filters** — filter by apartments, condos, townhomes, houses, rent range, and bedrooms
- **PPE pricing** — pay per result, not a flat monthly fee; ideal for occasional or targeted scrapes

### Use Cases for Apartments.com Rental Data

- Rental market research and price analysis
- Investment property identification
- Relocation and apartment hunting automation
- Proptech data pipelines and competitive intelligence
- Property manager lead generation

### Input

| Parameter       | Type    | Description                                                                      |
|-----------------|---------|----------------------------------------------------------------------------------|
| `searchUrls`    | array   | Apartments.com search page URLs (e.g., `https://www.apartments.com/phoenix-az/`) |
| `states`        | array   | State codes to scrape major cities (e.g., `["AZ", "TX"]`)                        |
| `city`          | string  | City name filter (combine with state)                                            |
| `propertyType`  | string  | Filter: `apartments`, `condos`, `townhomes`, or `houses`                         |
| `minRent`       | integer | Minimum monthly rent (USD)                                                       |
| `maxRent`       | integer | Maximum monthly rent (USD)                                                       |
| `bedrooms`      | string  | Bedroom filter: `studio`, `1-bed`, `2-beds`, `3-beds`, `4-beds`                  |
| `scrapeDetails` | boolean | Visit detail pages for full amenity data (default: true)                         |
| `maxItems`      | integer | Maximum records to return (0 = unlimited)                                        |

**Provide either `searchUrls` or use `states`/`city` filters.** If nothing is specified, Phoenix AZ is used as a default.

### Output

Each record contains up to 25 fields:

```json
{
  "property_name": "The Residences at CityCenter",
  "address": "1234 N Central Ave",
  "city": "Phoenix",
  "state": "AZ",
  "zip": "85004",
  "rent_min": 1450,
  "rent_max": 3200,
  "bedrooms": "Studio-3",
  "bathrooms": "1-2",
  "sqft": "550-1400",
  "property_type": "apartment",
  "amenities": "Pool, Fitness Center, Dishwasher, Air Conditioning, Balcony",
  "pet_policy": "Dogs & Cats Allowed (breed restrictions apply)",
  "parking": "Garage (covered, $125/mo)",
  "laundry": "In-Unit",
  "utilities_included": "Water, Trash, Sewer",
  "management_company": "Greystar Real Estate Partners",
  "phone": "(602) 555-0100",
  "rating": 4.2,
  "review_count": 87,
  "listing_url": "https://www.apartments.com/the-residences-at-citycenter-phoenix-az/abc123/",
  "latitude": 33.4484,
  "longitude": -112.074,
  "year_built": 2019,
  "units_count": 312
}
```

When `scrapeDetails` is false, detail fields (amenities, pet_policy, parking, laundry, utilities_included, management_company, phone, review_count, latitude, longitude, year_built, units_count) are null.

### Setup

None. Apartments.com runs enterprise bot management and turns away most automated tools; this actor handles that and ships ready to run.

### Pricing

This actor uses Pay-Per-Event (PPE) pricing:

- **$0.10** per run start
- **$0.0015** per record extracted

Example costs: 100 records = ~$0.25, 1,000 records = ~$1.60, 10,000 records = ~$15.10

### Performance Tips

- Use `scrapeDetails: false` for fast listing-card-only data (address, rent, beds/baths, property type)
- Set `maxItems` to limit run scope for testing
- Search pages return ~25 listings per page; large city searches can have 100+ pages
- For bulk nationwide scrapes, pass multiple state codes in the `states` array

### FAQ

**How do I scrape apartment rental prices by city or state?**
Pass an apartments.com search URL such as `https://www.apartments.com/phoenix-az/`, or use the `city` and `states` filters. The scraper returns `rent_min` and `rent_max` in USD for every listing.

**Is there an apartments.com API for rental listings?**
Apartments.com has no public API. This actor is the closest equivalent: it returns structured rental data as JSON, CSV, or Excel and can be called over the Apify API.

**Can I filter rentals by bedrooms, property type, or rent range?**
Yes. Use the `bedrooms`, `propertyType`, `minRent`, and `maxRent` inputs to narrow results to studios, 1-4 bedroom units, apartments, condos, townhomes, or houses within a price band.

### Need More Features?

Request fields, filters, or target sites on the [Apify actor issues board](https://console.apify.com/actors/issues).

# Actor input Schema

## `sp_intended_usage` (type: `string`):

What will this data feed? E.g. lead lists, KYB checks, price tracking.

## `sp_improvement_suggestions` (type: `string`):

Provide any feedback or suggestions for improvements.

## `sp_contact` (type: `string`):

We'll personally help with your use case. No spam.

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

apartments.com results pages (for example https://www.apartments.com/austin-tx/) or single listing pages. When empty, the state, city and filter fields below build the search.

## `states` (type: `array`):

U.S. states to search. Each state is searched through its largest rental market. Ignored when Search URLs are provided; combine with City to target one city instead.

## `city` (type: `string`):

City to search (for example Austin). Needs exactly one state in the State Filter. Ignored when Search URLs are provided.

## `propertyType` (type: `string`):

Restrict results to one property type.

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

Minimum monthly rent in USD. Leave empty for no minimum.

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

Maximum monthly rent in USD. Leave empty for no maximum.

## `bedrooms` (type: `string`):

Restrict results to one bedroom count.

## `scrapeDetails` (type: `boolean`):

Open every listing page for the full record: amenities, pet policy, parking, laundry, utilities, coordinates, ratings, year built and unit count. Turn off for a faster, lighter pull of the search cards only.

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

Maximum number of rental listings to return. Set to 0 for no limit.

## Actor input object example

```json
{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "searchUrls": [
    {
      "url": "https://www.apartments.com/phoenix-az/"
    }
  ],
  "states": [],
  "scrapeDetails": true,
  "maxItems": 10
}
```

# Actor output Schema

## `results` (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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "searchUrls": [
        {
            "url": "https://www.apartments.com/phoenix-az/"
        }
    ],
    "states": [],
    "city": "",
    "propertyType": "",
    "bedrooms": "",
    "scrapeDetails": true,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("jungle_synthesizer/apartments-com-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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "searchUrls": [{ "url": "https://www.apartments.com/phoenix-az/" }],
    "states": [],
    "city": "",
    "propertyType": "",
    "bedrooms": "",
    "scrapeDetails": True,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("jungle_synthesizer/apartments-com-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 '{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "searchUrls": [
    {
      "url": "https://www.apartments.com/phoenix-az/"
    }
  ],
  "states": [],
  "city": "",
  "propertyType": "",
  "bedrooms": "",
  "scrapeDetails": true,
  "maxItems": 10
}' |
apify call jungle_synthesizer/apartments-com-scraper --silent --output-dataset

```

## MCP server setup

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