# Craigslist Scraper — Housing & Real Estate Listings + Details (`ocrad/craigslist-scraper`) Actor

Scrape Craigslist search results and listing details: title, price, location, beds/baths, coordinates, images and posting body from any category URL. Pre-built pagination, no login. Export JSON/CSV/Excel.

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

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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

### Craigslist Property Scraper
---

By providing any craigslist.org search URL, you can retrieve structured property data across multiple result pages.

---

#### **📋 Example Output**

**Basic record** (`detailedInfo: false`):

```json
{
  "id": "t1sBtL1Jx5XkQNAyf5b4n5",
  "url": "https://www.craigslist.org/view/d/newark-top-choice-bed-bath-newark/t1sBtL1Jx5XkQNAyf5b4n5",
  "title": "Top Choice 3 Bed + 2 Bath #Newark Central Air, Washer/Dryer, Balcony +",
  "price": "$2,575",
  "address": null,
  "city": "Newark / East Orange / Iron Bound",
  "typeAndIntro": "real estate for sale",
  "availability": null,
  "tags": [],
  "imageUrl": null,
  "scrapedAt": "2026-07-08T14:47:28.024Z"
}
````

**Detailed record** (`detailedInfo: true`, additional fields):

```json
{
  "tags": [
    "3BR / 2Ba",
    "apartment",
    "w/d hookups",
    "off-street parking"
  ],
  "bedrooms": "3",
  "bathrooms": "2",
  "levels": null,
  "livingSpaceArea": null,
  "propertyFeatures": {
    "license info": "Nicolas Gutierrez - Nathan Ethan Realty"
  },
  "featureGroups": [],
  "rooms": [],
  "coordinates": {
    "lat": 40.737,
    "lon": -74.1964
  },
  "images": [
    "https://images.craigslist.org/00Y0Y_k4MlARudwQ9_0CI0t2_1200x900.jpg",
    "https://images.craigslist.org/00Y0Y_k4MlARudwQ9_0CI0t2_50x50c.jpg",
    "https://images.craigslist.org/00c0c_cmU3mE6d3BB_0CI0pO_50x50c.jpg",
    "… 46 more"
  ],
  "postingBody": "- NO APPLICATION FEE - NO PET FEES ( Small Pets Only ) SE HABLA ESPAÑOL !! 2nd Floor of Private Home Apartment Offers: Washer / Dryer Hook Up Central Air / Heating Private Balcony Walk In Closets High…",
  "licenseInfo": "Nicolas Gutierrez - Nathan Ethan Realty",
  "postedAt": "2026-06-25T23:51:14-0400"
}
```

#### ⚙️ **Configuration**

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `url` | String | *(required)* | Craigslist search URL with filters pre-applied. |
| `maxPages` | Integer | `1` | Number of result pages to scrape (1–1000). Each page typically contains 120 listings. |
| `detailedInfo` | Boolean | `false` | Visit each listing's detail page for full property data (slower, more data). |
| `proxyConfiguration` | Object | Apify Proxy (auto) | Proxy settings. Switch to a RESIDENTIAL group if you see blocks or empty results. |

##### Example Input

```json
{
  "url": "https://newyork.craigslist.org/search/apa",
  "maxPages": 5,
  "detailedInfo": false
}
```

##### Getting your search URL

1. Go to your local Craigslist site (e.g. newyork.craigslist.org)
2. Pick a category (apartments / housing, real estate for sale …) and apply your filters
3. Copy the full URL from your browser address bar
4. Paste it as the `url` input

***

#### 💬 **Support and Feedback**

Need help or have suggestions? Reach out via Apify support channels or leave feedback on the Actor's page.

***

#### **Is it legal to scrape craigslist.org data?**

It is legal to scrape publicly available data such as property prices, addresses, and listing details. However, you should be aware that results may contain personal information (agent names, contact details).

Personal data is protected by US state privacy laws (e.g. CCPA) and other regulations. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, please consult your lawyers. You can also read Apify's blog post on the legality of web scraping.

# Actor input Schema

## `url` (type: `string`):

A Craigslist search results page URL with your filters already applied in the browser (e.g. https://newyork.craigslist.org/search/apa).

## `maxPages` (type: `integer`):

How many search result pages to scrape (each page = 120 results). Pages are pre-built upfront using the ?s= offset parameter.

## `detailedInfo` (type: `boolean`):

Visit each listing's detail page to extract attributes, coordinates, images, posting body and dates. Slower and uses more requests.

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

Proxy settings. Defaults to Apify Proxy (auto). Craigslist often blocks datacenter IPs — switch to a RESIDENTIAL group if you see empty results.

## Actor input object example

```json
{
  "url": "https://newyork.craigslist.org/search/apa",
  "maxPages": 1,
  "detailedInfo": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `id` (type: `string`):

Craigslist posting ID parsed from the listing URL

## `url` (type: `string`):

Full listing detail URL

## `title` (type: `string`):

Listing title

## `price` (type: `string`):

Asking price / rent as shown on the site

## `address` (type: `string`):

Street address / map address when available

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

Neighbourhood / location label from the result card

## `typeAndIntro` (type: `string`):

Housing type and short intro / category

## `availability` (type: `string`):

Availability or status label (null when not applicable)

## `tags` (type: `string`):

Array of tag / attribute badge strings

## `imageUrl` (type: `string`):

Thumbnail image URL

## `scrapedAt` (type: `string`):

ISO 8601 timestamp when the record was scraped

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

Number of bedrooms (detail mode)

## `bathrooms` (type: `string`):

Number of bathrooms (detail mode)

## `levels` (type: `string`):

Floors / levels (detail mode)

## `livingSpaceArea` (type: `string`):

Living space / square footage string (detail mode)

## `propertyFeatures` (type: `string`):

Object of label to value pairs from the attributes table (detail mode)

## `featureGroups` (type: `string`):

Array of grouped feature lists (detail mode)

## `rooms` (type: `string`):

Array of room detail objects (detail mode)

## `coordinates` (type: `string`):

Latitude/longitude object parsed from the detail map (detail mode)

## `images` (type: `string`):

Array of full-resolution image URLs (detail mode)

## `postingBody` (type: `string`):

Full posting body text (detail mode)

## `licenseInfo` (type: `string`):

Broker / agent license info when present (detail mode)

## `postedAt` (type: `string`):

Posting date ISO string (detail mode)

# 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 = {
    "url": "https://newyork.craigslist.org/search/apa",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ocrad/craigslist-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 = {
    "url": "https://newyork.craigslist.org/search/apa",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ocrad/craigslist-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 '{
  "url": "https://newyork.craigslist.org/search/apa",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ocrad/craigslist-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Craigslist Scraper — Housing & Real Estate Listings + Details",
        "description": "Scrape Craigslist search results and listing details: title, price, location, beds/baths, coordinates, images and posting body from any category URL. Pre-built pagination, no login. Export JSON/CSV/Excel.",
        "version": "1.0",
        "x-build-id": "A346ykXxjDB00OCjI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/ocrad~craigslist-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-ocrad-craigslist-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/ocrad~craigslist-scraper/runs": {
            "post": {
                "operationId": "runs-sync-ocrad-craigslist-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/ocrad~craigslist-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-ocrad-craigslist-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "url"
                ],
                "properties": {
                    "url": {
                        "title": "Search results URL",
                        "pattern": "^https?://[a-z0-9-]+\\.craigslist\\.org/",
                        "type": "string",
                        "description": "A Craigslist search results page URL with your filters already applied in the browser (e.g. https://newyork.craigslist.org/search/apa)."
                    },
                    "maxPages": {
                        "title": "Max pages",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "How many search result pages to scrape (each page = 120 results). Pages are pre-built upfront using the ?s= offset parameter.",
                        "default": 1
                    },
                    "detailedInfo": {
                        "title": "Scrape detail pages",
                        "type": "boolean",
                        "description": "Visit each listing's detail page to extract attributes, coordinates, images, posting body and dates. Slower and uses more requests.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. Defaults to Apify Proxy (auto). Craigslist often blocks datacenter IPs — switch to a RESIDENTIAL group if you see empty results.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
