# Craigslist Housing and For Sale Scraper: Rentals, Rooms, Prices (`santamaria-automations/craigslist-housing-scraper`) Actor

Scrape Craigslist search pages by area and category: apartments, rooms, sublets, houses and for-sale items with title, price, neighborhood, coordinates, bedrooms and link. Covers more than one page per area. No login needed.

- **URL**: https://apify.com/santamaria-automations/craigslist-housing-scraper.md
- **Developed by:** [NanoScrape](https://apify.com/santamaria-automations) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 listing delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Craigslist Housing and For Sale Scraper

Search Craigslist by area and category and get one record per posting: title, price, neighborhood, city, coordinates, bedrooms, bathrooms, property type and the posting link. Works for apartments, rooms, sublets, houses, real estate for sale and the for-sale categories such as furniture, electronics and cars. No login and no API key are needed.

Related: for job listings use the [Craigslist jobs scraper](https://apify.com/santamaria-automations/craigslist-jobs-scraper).

### What you get

- One record per posting for each area and category you give.
- Several areas and categories in one run. A posting found twice is returned once.
- Craigslist shows about 350 postings per search and has no second page. To reach more, the actor searches in price bands when a page is full, and you can add more areas.
- Optional search words and a price range.
- Postings are listed as the site shows them, newest first.
- A run that is interrupted continues where it stopped. Listings already delivered are not delivered or charged again.
- You pay only for listings that were saved to the dataset.

### Use with AI agents (MCP)

Connect this actor to any MCP-compatible AI client, such as Claude Desktop, Cursor, VS Code, LangChain or LlamaIndex.

**MCP server URL:**

```
https://mcp.apify.com?tools=santamaria-automations/craigslist-housing-scraper
```

**Example prompt once connected:**

> "Use `craigslist-housing-scraper` to list apartments for rent in sfbay and newyork under 3000 dollars, and show the cheapest 20 with their neighborhood."

### Data extracted

| Field | Example |
|-------|---------|
| `posting_id` | `"gwmgWr7MCEcA1BxVkHkqKG"` |
| `url` | `"https://www.craigslist.org/view/d/concord-apartment-homes-tailored-to/gwmgWr7MCEcA1BxVkHkqKG"` |
| `title` | `"Apartment Homes tailored to your highest standards."` |
| `price`, `price_text`, `currency` | `1965`, `"$1,965"`, `"USD"` |
| `location` | `"concord / pleasant hill / martinez"` (the neighborhood text on the card) |
| `city`, `region` | `"Concord"`, `"CA"` |
| `latitude`, `longitude` | `37.9575`, `-121.9750` |
| `bedrooms`, `bathrooms`, `sqft` | `1`, `1`, `750` (when shown) |
| `property_type` | `"Apartment"` or `"House"` |
| `area`, `category`, `query` | The area, category code and search words used |
| `price_band` | The price band of the search when the actor split a full page |
| `rank`, `search_url` | Position on its search page and the search page address |
| `scraped_at` | `"2026-11-07T08:00:00Z"` |

Fields that the page does not show for a posting are returned empty (null).

### Pricing

Pay-per-event pricing. You pay only for listings that were saved to the dataset.

| Event | Price |
|-------|-------|
| Actor start (`actor-start`) | $0.001 per run |
| Listing scraped (`listing-result`) | $0.0015 per listing ($1.50 per 1,000) |

The start event is charged once per run, together with the first saved listing. A run that returns nothing is not charged. If you set a maximum cost per run, the actor stops before it goes over that limit.

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `areas` | string\[] | Craigslist areas by their site name, such as `sfbay`, `newyork`, `chicago`, `losangeles`. A full Craigslist address is read as well. | `sfbay` when empty |
| `categories` | string\[] | Category codes: `apa` apartments, `roo` rooms, `sub` sublets, `hou` housing wanted, `rea` real estate for sale, `vac` vacation rentals, `off` office, `prk` parking, `hhh` all housing, `sss` all for sale, `cta` cars and trucks, `fua` furniture, `ela` electronics and the other codes shown in the input form. | `apa` when empty |
| `query` | string | Only postings that match these words. | all postings |
| `minPrice`, `maxPrice` | integer | Price range. 0 means no limit. | no limit |
| `splitPriceBands` | boolean | When a search page is full, search again in price bands to reach more postings. | `true` |
| `maxItems` | integer | Most listings to return across all searches. 0 uses 100. | `100` |
| `maxItemsPerArea` | integer | Most listings for each area, so that one area cannot use up the limit. 0 means no limit per area. | `0` |
| `maxRequests` | integer | Most search pages to read in one run. 0 uses 100. | `100` |

An unknown category code stops the run with a message that lists the allowed codes. An empty input runs a small default: apartments in sfbay, up to 100 listings.

### Usage examples

#### Apartments in two areas

```json
{
  "areas": ["sfbay", "newyork"],
  "categories": ["apa"],
  "maxItems": 100,
  "maxItemsPerArea": 60
}
```

#### Many apartments in one area, using price bands

```json
{
  "areas": ["chicago"],
  "categories": ["apa"],
  "minPrice": 500,
  "maxPrice": 6000,
  "splitPriceBands": true,
  "maxItems": 1000
}
```

#### Used furniture with search words

```json
{
  "areas": ["losangeles"],
  "categories": ["fua"],
  "query": "sofa",
  "maxItems": 50
}
```

### Output

Results are saved to the default dataset. Export them as JSON, CSV or Excel, or read them through the API.

Sample record:

```json
{
  "posting_id": "gwmgWr7MCEcA1BxVkHkqKG",
  "url": "https://www.craigslist.org/view/d/concord-apartment-homes-tailored-to/gwmgWr7MCEcA1BxVkHkqKG",
  "title": "Apartment Homes tailored to your highest standards.",
  "price": 1965,
  "price_text": "$1,965",
  "currency": "USD",
  "location": "concord / pleasant hill / martinez",
  "city": "Concord",
  "region": "CA",
  "latitude": 37.9574988,
  "longitude": -121.9749934,
  "bedrooms": 1,
  "bathrooms": 1,
  "sqft": null,
  "property_type": "Apartment",
  "area": "sfbay",
  "category": "apa",
  "query": null,
  "price_band": null,
  "rank": 1,
  "search_url": "https://sfbay.craigslist.org/search/apa",
  "scraped_at": "2026-11-07T08:00:00Z"
}
```

### Limitations

- Only search pages are read. Posting pages are not opened, so the description, the posting date, the photos and the contact details are not collected.
- Craigslist shows about 350 postings per search and has no second page. Price bands and more areas are the ways to get more. Postings without a price are only found by the search without a price band.
- Coordinates, bedrooms and bathrooms come from the page's own data and are missing for some postings. Many for-sale postings have no coordinates.
- For-sale categories such as `sss`, `cta`, `fua` and `ela` return item rows: title, price, location and link. The housing fields (bedrooms, bathrooms, square feet, property type, city and coordinates) stay empty for those rows.
- The currency is guessed from the price symbol and the area. A dollar price in a Canadian area is reported as CAD.
- The number of postings changes while the run reads the pages, so two runs of the same input can differ.
- If the site refuses every request, the run fails and nothing is charged.

### FAQ

**Which pages does it read?**
The search pages of the Craigslist area you name, for example sfbay.craigslist.org/search/apa. It does not open posting pages.

**How do I get more than 350 postings for one area?**
Keep `splitPriceBands` on and raise `maxItems`. When a search page is full, the actor searches again in price bands. You can also add areas.

**What happens when a posting shows up twice?**
It is returned once.

**What does a run cost?**
The start price plus the price per listing, see the pricing table.

**What status does a run end with?**
The run status says how many listings were delivered. If nothing matched, the run ends normally and says so. If the site refuses every request, the run fails and nothing is charged.

# Actor input Schema

## `areas` (type: `array`):

Craigslist areas to search, as the name in the site address: sfbay, newyork, chicago, losangeles. Each area is searched on its own, so more areas give more listings. Leave empty to search sfbay.

## `categories` (type: `array`):

Category codes: apa (apartments for rent), roo (rooms), sub (sublets), hou (housing wanted), rea (real estate for sale), sss (all for sale), cta (cars and trucks), fua (furniture), ela (electronics) and the other housing and for-sale codes. Leave empty for apa.

## `query` (type: `string`):

Only return postings that match these words. Leave empty for all postings.

## `minPrice` (type: `integer`):

Only return postings at or above this price. 0 or empty means no lower limit.

## `maxPrice` (type: `integer`):

Only return postings at or below this price. 0 or empty means no upper limit.

## `splitPriceBands` (type: `boolean`):

The site shows about 350 postings per search and has no second page. When a search page is full, the actor searches again in price bands to reach more postings. Turn off to read one page per search.

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

Most listings to return across all searches. 0 or empty uses 100.

## `maxItemsPerArea` (type: `integer`):

Most listings to return for each area, so that one area cannot use up the whole limit. 0 or empty means no limit per area.

## `maxRequests` (type: `integer`):

Most search pages to read in one run. 0 or empty uses 100.

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

Connection settings. The default works for most runs; the actor chooses the level it needs.

## Actor input object example

```json
{
  "areas": [
    "sfbay",
    "newyork"
  ],
  "categories": [
    "apa"
  ],
  "minPrice": 0,
  "maxPrice": 0,
  "splitPriceBands": true,
  "maxItems": 100,
  "maxItemsPerArea": 0,
  "maxRequests": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Dataset containing one record per listing

# 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 = {
    "areas": [
        "sfbay",
        "newyork"
    ],
    "categories": [
        "apa"
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/craigslist-housing-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 = {
    "areas": [
        "sfbay",
        "newyork",
    ],
    "categories": ["apa"],
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/craigslist-housing-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 '{
  "areas": [
    "sfbay",
    "newyork"
  ],
  "categories": [
    "apa"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call santamaria-automations/craigslist-housing-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,santamaria-automations/craigslist-housing-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/McBWpcYPgLDNB7w5A/builds/4bxqOSdAagfm2nH3U/openapi.json
