# Craigslist Scraper | Fast & Reliable (`scrapers-hub/craigslist-scraper`) Actor

Craigslist scraper to extract publicly available listings, titles, prices, locations, descriptions, seller details, posting dates, and categories from Craigslist 📋🏠🚗 Perfect for market research, lead generation, price monitoring, and classified ads analysis.

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

## Pricing

from $1.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## 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

## Craigslist Scraper

An Apify actor that scrapes Craigslist listings — search results **and** full detail
pages — without a browser. It uses `requests`/`curl_cffi` for HTTP and `parsel`
(CSS/XPath selectors) for parsing. When Craigslist (Akamai) blocks a plain request,
the fetch is retried with a rotated browser TLS fingerprint (`curl_cffi` impersonation)
and a fresh residential proxy IP.

### How it works

1. **Area resolution** — each start URL's subdomain (`miami.craigslist.org` → `miami`)
   is mapped to a Craigslist `AreaID` via the public reference API
   (`reference.craigslist.org/Areas`).
2. **Search** — one call to the Craigslist search API
   (`sapi.craigslist.org/web/v8/postings/search/full`) returns the whole result set as
   compact, delta-encoded arrays, which are decoded into listing stubs
   (id, price, geo, slug, url token, thumbnails, title).
3. **Detail** — each listing's `/view/d/{slug}/{token}` page is fetched concurrently and
   parsed from its two JSON-LD blocks (`BreadcrumbList` + `Product`) plus stable CSS
   hooks (`#postingbody`, `.attrgroup .attr`, `.mapaddress`, `time`, `[data-latitude]`).

### Input

| Field | Type | Description |
|-------|------|-------------|
| `startUrls` | array | Craigslist search URLs (required) |
| `category` | string | Category abbr used when a start URL path has none (default `sss`) |
| `soldBy` | string | `""`, `owner`, or `dealer` |
| `deliveryAvailable` | bool | Only listings offering delivery |
| `freeOnly` | bool | Only free (price = 0) listings |
| `hasPic` | bool | Only listings with images |
| `hideDuplicates` | bool | Bundle duplicate postings |
| `postedToday` | bool | Only listings posted today |
| `limit` | int | Max listings across all start URLs (default 50000) |
| `maxConcurrency` | int | Parallel detail-page fetches (default 8) |
| `proxyConfiguration` | object | Apify proxy — **use RESIDENTIAL** (datacenter IPs are blocked) |

#### Example input

```json
{
  "startUrls": ["https://miami.craigslist.org/search/sss?query=apartment"],
  "category": "sss",
  "hideDuplicates": false,
  "hasPic": false,
  "limit": 50000,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

### Output (one item per listing)

`Scraped At`, `Listing URL`, `Title`, `Price`, `Currency`, `Description`, `Location`,
`Neighborhood`, `Map Address`, `Latitude`, `Longitude`, `Price Text`, `Category`,
`Subcategory`, `Post ID`, `Posted At`, `Updated At`, `Attributes`, `Condition`, `Body`,
`Image URLs`.

### Notes

- Craigslist caps a single search at roughly a few thousand results; `limit` above that
  is honored only up to what the search API returns.
- Run with **residential** proxies — datacenter and un-proxied requests get an Akamai block.

# Actor input Schema

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

Paste one or more Craigslist URLs. Search and category URLs collect matching listing records; individual listing URLs collect that specific listing.

## `queries` (type: `array`):

Enter one or more keywords or phrases, such as furniture, bicycle, or yard sale. Leave this empty when you only want to collect from direct URLs.

## `locationCode` (type: `string`):

Enter the Craigslist city subdomain, such as miami, newyork, or chattanooga. This is required for query-based searches; direct Craigslist URLs can also provide the location automatically.

## `category` (type: `string`):

Select the Craigslist category to search when using search terms. Choose Garage & Moving Sales when you want yard sale and estate sale listings.

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

Include listings priced at or above this amount. Leave empty when you do not need a lower price boundary.

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

Include listings priced at or below this amount. Leave empty when you do not need an upper price boundary.

## `soldBy` (type: `string`):

Filter listings by private owners, dealers, or all sellers. Leave the default when seller type does not matter.

## `freeOnly` (type: `boolean`):

Return only listings marked as free. When this is enabled, price range filters no longer affect the search.

## `hasPic` (type: `boolean`):

Return only listings that include at least one photo. This is useful when images are required for review, enrichment, or downstream workflows.

## `postedToday` (type: `boolean`):

Return only listings posted in the last 24 hours. Use this when monitoring fresh inventory or time-sensitive opportunities.

## `startDate` (type: `string`):

Include garage sale listings whose sale date is on or after this date. Use YYYY-MM-DD format, for example 2026-05-23.

## `endDate` (type: `string`):

Include garage sale listings whose sale date is on or before this date. Use the same date as the start date to collect one sale day.

## `hideDuplicates` (type: `boolean`):

Ask Craigslist to reduce duplicate listings in search results. This can make review and reporting cleaner when sellers post similar items more than once.

## `deliveryAvailable` (type: `boolean`):

Return only listings marked as offering delivery. Use this when pickup-only listings are not useful for your workflow.

## `limit` (type: `integer`):

Stop the run after this many listings have been saved. Use a smaller number for quick checks and a larger number for broader collection.

## `maxConcurrency` (type: `integer`):

How many detail pages to fetch in parallel.

## Actor input object example

```json
{
  "startUrls": [
    "https://miami.craigslist.org/search/sss?query=apartment"
  ],
  "category": "sss",
  "soldBy": "",
  "freeOnly": false,
  "hasPic": false,
  "postedToday": false,
  "hideDuplicates": false,
  "deliveryAvailable": false,
  "limit": 50000,
  "maxConcurrency": 8
}
```

# 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://miami.craigslist.org/search/sss?query=apartment"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers-hub/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 = { "startUrls": ["https://miami.craigslist.org/search/sss?query=apartment"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapers-hub/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 '{
  "startUrls": [
    "https://miami.craigslist.org/search/sss?query=apartment"
  ]
}' |
apify call scrapers-hub/craigslist-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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