# Craigslist Scraper — For-Sale Listings, 40+ Cities (`celebrated-quadraphonic/craigslist-scraper`) Actor

Scrape for-sale listings from Craigslist across 40+ US cities. 40+ categories, price filters, images included from search page. Optional detail mode adds full description, condition, make/model. Concurrent detail fetching, retry logic. No proxy needed.

- **URL**: https://apify.com/celebrated-quadraphonic/craigslist-scraper.md
- **Developed by:** [XiaoZhi DataTools](https://apify.com/celebrated-quadraphonic) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 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 Listing Scraper

Scrape for-sale listings from [Craigslist](https://www.craigslist.org) across 40+ US cities. Extracts title, price, location, images, and geo coordinates from search pages. Optional detail mode adds full description, condition, make/model, and posting date.

### Features

- **40+ US cities** — New York, Los Angeles, Chicago, Houston, Miami, San Francisco, and more
- **40+ categories** — Electronics, Furniture, Cars, Free, Garage Sale, etc.
- **Images included** — Thumbnails and full image arrays from search page (no detail fetch needed)
- **JSON-LD parsing** — Structured data extraction, no fragile CSS selectors
- **Price filters** — Min/max price range
- **Image filter** — Only listings with photos
- **Posted today** — Filter for fresh listings
- **Detail mode** — Optional: full description, condition, make/model, posting body
- **Concurrent detail fetching** — 5 parallel requests by default (configurable)
- **Retry logic** — Automatic retry on transient failures
- **Geo data** — Latitude/longitude for each listing
- **No proxy needed** — Direct HTTP requests

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `location` | string | New York | Craigslist city (40+ US cities) |
| `query` | string | — | Search keywords |
| `category` | select | All | Filter by category (40+ options) |
| `minPrice` | integer | — | Minimum price |
| `maxPrice` | integer | — | Maximum price |
| `hasPic` | checkbox | false | Only listings with images |
| `postedToday` | checkbox | false | Only today's listings |
| `fetchDetails` | checkbox | false | Fetch detail pages for rich data |
| `detailConcurrency` | integer | 5 | Parallel detail requests (1-20) |
| `maxResults` | integer | 100 | Max listings to return (1-1000) |

### Output Fields

#### Basic (always available from search page)

| Field | Type | Description |
|-------|------|-------------|
| `title` | string | Listing title |
| `price` | float | Price in USD |
| `currency` | string | Currency code (USD) |
| `city` | string | City name |
| `state` | string | State abbreviation |
| `zipCode` | string | ZIP code |
| `latitude` | float | Latitude coordinate |
| `longitude` | float | Longitude coordinate |
| `images` | list | Image URLs (from search page) |
| `imageCount` | integer | Number of images |
| `thumbnailUrl` | string | First image URL |
| `url` | string | Direct link to listing |
| `postingId` | string | Craigslist posting ID |

#### Detail mode (when fetchDetails=true)

| Field | Type | Description |
|-------|------|-------------|
| `description` | string | Short description from JSON-LD |
| `bodyText` | string | Full posting body text |
| `condition` | string | Item condition (e.g. "excellent", "good", "new") |
| `make` | string | Make / manufacturer |
| `model` | string | Model name / number |
| `size` | string | Size / dimensions |
| `postedDate` | string | ISO 8601 posting date |

### Supported Cities

New York, Los Angeles, Chicago, Houston, Phoenix, Philadelphia, San Antonio, San Diego, Dallas, San Jose, Austin, Jacksonville, Denver, Seattle, Boston, Las Vegas, Miami, Atlanta, Minneapolis, Tampa, Portland, Orlando, Pittsburgh, Sacramento, Salt Lake City, Nashville, Charlotte, Detroit, Washington DC, Cincinnati, Cleveland, Columbus, Indianapolis, Kansas City, Milwaukee, Memphis, Baltimore, and more.

### Usage Examples

#### Electronics in NYC

```json
{
  "location": "New York",
  "query": "laptop",
  "category": "electronics",
  "hasPic": true,
  "maxResults": 50
}
```

#### Free stuff in LA

```json
{
  "location": "Los Angeles",
  "category": "free",
  "maxResults": 100
}
```

#### Cars under $10,000 in Chicago

```json
{
  "location": "Chicago",
  "category": "cars+trucks",
  "maxPrice": 10000,
  "hasPic": true,
  "maxResults": 50
}
```

#### Furniture with full details

```json
{
  "location": "San Francisco",
  "category": "furniture",
  "fetchDetails": true,
  "detailConcurrency": 10,
  "maxResults": 20
}
```

### Technical Details

- **Data source**: JSON-LD structured data embedded in Craigslist pages
- **Speed**: ~200-300 listings per page, ~2 seconds per page (basic mode)
- **Detail mode**: +0.5-2s per listing (parallel, configurable concurrency)
- **Retry**: 2 retries on transient failures, skip on 404
- **Pagination**: 120 listings per page, offset-based
- **Images**: Always included from search page JSON-LD (no extra requests)

### Resources

- [Craigslist](https://www.craigslist.org)
- [Apify SDK for Python](https://docs.apify.com/sdk/python)

# Actor input Schema

## `location` (type: `string`):

Craigslist city (e.g. 'New York', 'Los Angeles', 'Chicago'). 40+ US cities supported.

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

Search query (e.g. 'laptop', 'iphone 15', 'moving sale').

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

Filter by Craigslist category.

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

Minimum price filter.

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

Maximum price filter.

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

Only show listings with photos.

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

Only show listings posted today.

## `fetchDetails` (type: `boolean`):

Visit each listing for full description, condition, make/model, and posting date. Slower but richer data. Images are always included (from search page).

## `detailConcurrency` (type: `integer`):

Number of detail pages to fetch in parallel (when Fetch Details is enabled). Higher = faster but more load.

## `maxResults` (type: `integer`):

Maximum number of listings to return.

## Actor input object example

```json
{
  "location": "New York",
  "query": "laptop",
  "category": "",
  "hasPic": false,
  "postedToday": false,
  "fetchDetails": false,
  "detailConcurrency": 5,
  "maxResults": 100
}
```

# 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 = {
    "location": "New York",
    "query": "laptop",
    "category": "",
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("celebrated-quadraphonic/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 = {
    "location": "New York",
    "query": "laptop",
    "category": "",
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("celebrated-quadraphonic/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 '{
  "location": "New York",
  "query": "laptop",
  "category": "",
  "maxResults": 100
}' |
apify call celebrated-quadraphonic/craigslist-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZWjA8b5cAZXux2WZw/builds/e1HlBviOLGfX8CMFW/openapi.json
