# Apartments.com Scraper (`datascoutapi/apartments-com-scraper`) Actor

Scrape millions of active U.S. & Canada rental listings from Apartments.com & ApartmentList.com – any city, state, province, ZIP, or neighborhood. Full details: pricing, photos, amenities, exact coordinates, contact info. Blazing-fast, anti-block, full North America coverage.

- **URL**: https://apify.com/datascoutapi/apartments-com-scraper.md
- **Developed by:** [halam](https://apify.com/datascoutapi) (community)
- **Categories:** Real estate, MCP servers, Lead generation
- **Stats:** 17 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$30.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Apartments.com Scraper US, Canada, Search, Listing

A fast and reliable scraper for extracting apartment listings from Apartments.com and ApartmentList.com. This actor uses a high-performance API backend to deliver comprehensive property data quickly and efficiently.

### Features

- **Multiple URL Support** - Scrape city searches, filtered results, and individual property pages
- **Fast Performance** - Powered by optimized scraping API for quick results
- **Comprehensive Data** - Get detailed property information including amenities, pricing, location data, and photos
- **No Blocking Issues** - Uses advanced techniques to avoid rate limiting and blocking

### URL Support & Coverage

This scraper supports all major apartment listing URL formats across both platforms:

| URL Type | Platform | Example |
|----------|----------|---------|
| **City Search** | Apartments.com | `https://www.apartments.com/miami-fl/` |
| **Filtered Results** | Apartments.com | `https://www.apartments.com/?bb=v565-usgtHyl5o6vY` |
| **Advanced Search** | Apartments.com | `https://www.apartments.com/?sk=544b92fe1f766950d57299dc624e9ff9&bb=0nijpwq7qH0t1s0oc` |
| **Property Details** | Apartments.com | `https://www.apartments.com/sobe-apartment-rentals-miami-beach-fl/26xc7jb/` |
| **Bedroom Filter** | Apartments.com | `https://www.apartments.com/miami-beach-fl/4-bedrooms/` |
| **City Listings** | ApartmentList.com | `https://www.apartmentlist.com/tx/frisco/` |
| **Property Pages** | ApartmentList.com | `https://www.apartmentlist.com/tx/frisco/sorrel-phillips-creek-ranch` |

#### Supported Search Parameters

- **bb=** - Bounding box search results
- **sk=** - Search key with location data
- **City filters** - State/city combinations (e.g., miami-fl, dallas-tx)
- **Bedroom filters** - Specific bedroom counts (1-bedrooms, 4-bedrooms, etc.)
- **Property IDs** - Direct property page access

### Input Parameters

| Field | Type | Description |
|-------|------|-------------|
| startUrls | Array | List of apartment URLs to scrape. Supports all URL types mentioned above |

### Input Example

```json
{
  "startUrls": [
    {"url": "https://www.apartments.com/miami-fl/"},
    {"url": "https://www.apartments.com/?bb=v565-usgtHyl5o6vY"},
    {"url": "https://www.apartments.com/sobe-apartment-rentals-miami-beach-fl/26xc7jb/"},
    {"url": "https://www.apartments.com/?sk=544b92fe1f766950d57299dc624e9ff9&bb=0nijpwq7qH0t1s0oc"},
    {"url": "https://www.apartments.com/miami-beach-fl/4-bedrooms/"},
    {"url": "https://www.apartmentlist.com/tx/frisco/"},
    {"url": "https://www.apartmentlist.com/tx/frisco/sorrel-phillips-creek-ranch"}
  ]
}
```

### Output Data

Each scraped property includes comprehensive information across these key fields:

- **id**: Unique identifier for the apartment listing
- **propertyName**: Name or title of the apartment property
- **url**: Direct URL to the apartment listing
- **address**: Complete street address of the property
- **location**: Full address details with coordinates and neighborhood information
- **pricing**: Rent ranges with minimum and maximum values
- **amenities**: Community and apartment features like pools, fitness centers, parking
- **phone**: Contact phone number for inquiries
- **contact**: Management company details and contact information
- **imageUrl**: Primary property image URL
- **photos**: Array of all property images and virtual tour links
- **transitAndPOI**: Nearby transportation options and points of interest
- **scores**: Walkability and transit accessibility ratings
- **schools**: Public, private schools and colleges in the area
- **breadcrumbs**: Location hierarchy (State → County → City → Neighborhood)
- **coordinates**: GPS latitude and longitude coordinates
- **neighborhoodDescription**: Detailed area overview and highlights
- **scrapedAt**: Timestamp of when the data was collected

### Sample Output

The scraper returns comprehensive apartment data in JSON format. Here's an example of what you can expect:

```json
[
  {
    "id": "sobe001",
    "propertyName": "Ocean View Residences",
    "url": "https://www.apartments.com/?bb=v565-usgtHyl5o6vY",
    "breadcrumbs": [
      "Florida",
      "Miami/Dade County", 
      "Miami Beach",
      "South Beach"
    ],
    "location": {
      "fullAddress": "800 Ocean Dr, Miami Beach, FL 33139",
      "state": "FL",
      "city": "Miami Beach",
      "neighborhood": "South Beach",
      "postalCode": "33139",
      "streetAddress": "800 Ocean Dr"
    },
    "coordinates": {
      "latitude": 25.7617,
      "longitude": -80.1918
    },
    "isVerified": true,
    "rent": {
      "min": 1800,
      "max": 2800
    },
    "transitAndPOI": [
      {
        "name": "Lincoln Road Mall",
        "walk": "3 min",
        "distance": "0.2 mi"
      },
      {
        "name": "Miami Beach Convention Center", 
        "drive": "5 min",
        "distance": "1.1 mi"
      }
    ],
    "scores": {
      "walkScore": 85,
      "transitScore": 60
    },
    "neighborhoodDescription": "South Beach is known for its vibrant nightlife, beautiful beaches, and Art Deco architecture...",
    "schools": {
      "public": [
        {
          "type": "Public High School",
          "name": "Miami Beach Senior High",
          "grades": "9-12",
          "numberOfStudents": "2175"
        }
      ],
      "private": [],
      "colleges": []
    },
    "amenities": [
      {
        "title": "Community Amenities",
        "value": ["Pool", "Fitness Center", "Rooftop Deck", "Concierge"]
      },
      {
        "title": "Apartment Features", 
        "value": ["Air Conditioning", "Hardwood Floors", "Balcony"]
      }
    ],
    "contact": {
      "phone": "",
      "logo": "",
      "name": ""
    },
    "models": [],
    "scrapedAt": "2025-12-01T00:08:39.132Z",
    "photos": [
      "https://images1.apartments.com/i2/J0qjpyRz9Acb6IOM0TIt5SEfVnPYIslQrUwHLDoEuvE/111/sobe-apartment-rentals-miami-beach-fl-primary-photo.jpg"
    ]
  }
]
```

### Performance

- **Speed**: Optimized for fast execution with minimal overhead
- **Reliability**: Built-in error handling and retry mechanisms
- **Scalability**: Can handle multiple URLs simultaneously

### Usage Tips

1. **For City Searches**: Use URLs like `https://www.apartments.com/miami-fl/` to get listings for entire cities
2. **For Specific Properties**: Use direct property URLs for detailed information
3. **For Filtered Results**: Apply filters on the website first, then copy the URL with parameters
4. **Batch Processing**: Add multiple URLs to scrape several locations at once

### 📬 Contact & Support

Have questions, need help, or interested in a private or custom instance?

Reach our team anytime at **datascoutapi@gmail.com**

# Actor input Schema

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

One or more URLs of apartment listings to scrape

## Actor input object example

```json
{
  "startUrls": [
    "https://www.apartments.com/miami-fl/",
    "https://www.apartments.com/?bb=v565-usgtHyl5o6vY",
    "https://www.apartments.com/sobe-apartment-rentals-miami-beach-fl/26xc7jb/",
    "https://www.apartments.com/?sk=544b92fe1f766950d57299dc624e9ff9&bb=0nijpwq7qH0t1s0oc"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

Complete apartment data with pricing, location, amenities, and contact information

# 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 = {
    "startUrls": [
        "https://www.apartments.com/miami-fl/",
        "https://www.apartments.com/?bb=v565-usgtHyl5o6vY",
        "https://www.apartments.com/sobe-apartment-rentals-miami-beach-fl/26xc7jb/",
        "https://www.apartments.com/?sk=544b92fe1f766950d57299dc624e9ff9&bb=0nijpwq7qH0t1s0oc"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascoutapi/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 = { "startUrls": [
        "https://www.apartments.com/miami-fl/",
        "https://www.apartments.com/?bb=v565-usgtHyl5o6vY",
        "https://www.apartments.com/sobe-apartment-rentals-miami-beach-fl/26xc7jb/",
        "https://www.apartments.com/?sk=544b92fe1f766950d57299dc624e9ff9&bb=0nijpwq7qH0t1s0oc",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("datascoutapi/apartments-com-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.apartments.com/miami-fl/",
    "https://www.apartments.com/?bb=v565-usgtHyl5o6vY",
    "https://www.apartments.com/sobe-apartment-rentals-miami-beach-fl/26xc7jb/",
    "https://www.apartments.com/?sk=544b92fe1f766950d57299dc624e9ff9&bb=0nijpwq7qH0t1s0oc"
  ]
}' |
apify call datascoutapi/apartments-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=datascoutapi/apartments-com-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/GuTLbn8lde8iO3zbs/builds/RFMLlvxcMFpBd4aez/openapi.json
