# 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 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.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.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/platform/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 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Craigslist Scraper | Fast & Reliable",
        "description": "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.",
        "version": "1.0",
        "x-build-id": "GitdHd98DN7mUoXQ5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapers-hub~craigslist-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapers-hub-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/scrapers-hub~craigslist-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapers-hub-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/scrapers-hub~craigslist-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapers-hub-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",
                "properties": {
                    "startUrls": {
                        "title": "Add Craigslist URLs",
                        "type": "array",
                        "description": "Paste one or more Craigslist URLs. Search and category URLs collect matching listing records; individual listing URLs collect that specific listing.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "queries": {
                        "title": "Add Search Terms",
                        "type": "array",
                        "description": "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.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "locationCode": {
                        "title": "Choose Craigslist Location",
                        "type": "string",
                        "description": "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": {
                        "title": "Select Listing Category",
                        "enum": [
                            "sss",
                            "gms",
                            "jjj",
                            "hhh",
                            "ccc",
                            "eee",
                            "ggg",
                            "rrr",
                            "bbb"
                        ],
                        "type": "string",
                        "description": "Select the Craigslist category to search when using search terms. Choose Garage & Moving Sales when you want yard sale and estate sale listings.",
                        "default": "sss"
                    },
                    "minPrice": {
                        "title": "Set Minimum Price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Include listings priced at or above this amount. Leave empty when you do not need a lower price boundary."
                    },
                    "maxPrice": {
                        "title": "Set Maximum Price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Include listings priced at or below this amount. Leave empty when you do not need an upper price boundary."
                    },
                    "soldBy": {
                        "title": "Choose Seller Type",
                        "enum": [
                            "",
                            "owner",
                            "dealer"
                        ],
                        "type": "string",
                        "description": "Filter listings by private owners, dealers, or all sellers. Leave the default when seller type does not matter.",
                        "default": ""
                    },
                    "freeOnly": {
                        "title": "Include Only Free Listings",
                        "type": "boolean",
                        "description": "Return only listings marked as free. When this is enabled, price range filters no longer affect the search.",
                        "default": false
                    },
                    "hasPic": {
                        "title": "Require Photos",
                        "type": "boolean",
                        "description": "Return only listings that include at least one photo. This is useful when images are required for review, enrichment, or downstream workflows.",
                        "default": false
                    },
                    "postedToday": {
                        "title": "Include Only Recently Posted Listings",
                        "type": "boolean",
                        "description": "Return only listings posted in the last 24 hours. Use this when monitoring fresh inventory or time-sensitive opportunities.",
                        "default": false
                    },
                    "startDate": {
                        "title": "Set Earliest Sale Date",
                        "type": "string",
                        "description": "Include garage sale listings whose sale date is on or after this date. Use YYYY-MM-DD format, for example 2026-05-23."
                    },
                    "endDate": {
                        "title": "Set Latest Sale Date",
                        "type": "string",
                        "description": "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": {
                        "title": "Hide Duplicate Listings",
                        "type": "boolean",
                        "description": "Ask Craigslist to reduce duplicate listings in search results. This can make review and reporting cleaner when sellers post similar items more than once.",
                        "default": false
                    },
                    "deliveryAvailable": {
                        "title": "Require Delivery Availability",
                        "type": "boolean",
                        "description": "Return only listings marked as offering delivery. Use this when pickup-only listings are not useful for your workflow.",
                        "default": false
                    },
                    "limit": {
                        "title": "Set Maximum Listings",
                        "minimum": 10,
                        "type": "integer",
                        "description": "Stop the run after this many listings have been saved. Use a smaller number for quick checks and a larger number for broader collection.",
                        "default": 50000
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "How many detail pages to fetch in parallel.",
                        "default": 8
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
