# Craigslist Listing Scraper (`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, Developer tools
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, NaN 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 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 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Craigslist Listing Scraper",
        "description": "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.",
        "version": "1.0",
        "x-build-id": "el6Rg0d3tfHEYGIJs"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/celebrated-quadraphonic~craigslist-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-celebrated-quadraphonic-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/celebrated-quadraphonic~craigslist-scraper/runs": {
            "post": {
                "operationId": "runs-sync-celebrated-quadraphonic-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/celebrated-quadraphonic~craigslist-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-celebrated-quadraphonic-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": {
                    "location": {
                        "title": "City",
                        "type": "string",
                        "description": "Craigslist city (e.g. 'New York', 'Los Angeles', 'Chicago'). 40+ US cities supported.",
                        "default": "New York"
                    },
                    "query": {
                        "title": "Search Keywords",
                        "type": "string",
                        "description": "Search query (e.g. 'laptop', 'iphone 15', 'moving sale').",
                        "default": ""
                    },
                    "category": {
                        "title": "Category",
                        "enum": [
                            "",
                            "antiques",
                            "appliances",
                            "arts+crafts",
                            "auto parts",
                            "baby+kid",
                            "barter",
                            "bicycles",
                            "boats",
                            "books",
                            "business",
                            "cars+trucks",
                            "cell phones",
                            "clothes+acc",
                            "collectibles",
                            "computers",
                            "electronics",
                            "farm+garden",
                            "free",
                            "furniture",
                            "garage sale",
                            "general",
                            "health+beauty",
                            "heavy equip",
                            "household",
                            "jewelry",
                            "materials",
                            "motorcycles",
                            "music instr",
                            "photo+video",
                            "rvs+camp",
                            "sporting",
                            "tickets",
                            "tools",
                            "toys+games",
                            "video gaming",
                            "wanted"
                        ],
                        "type": "string",
                        "description": "Filter by Craigslist category.",
                        "default": ""
                    },
                    "minPrice": {
                        "title": "Min Price ($)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum price filter."
                    },
                    "maxPrice": {
                        "title": "Max Price ($)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum price filter."
                    },
                    "hasPic": {
                        "title": "Has Images Only",
                        "type": "boolean",
                        "description": "Only show listings with photos.",
                        "default": false
                    },
                    "postedToday": {
                        "title": "Posted Today Only",
                        "type": "boolean",
                        "description": "Only show listings posted today.",
                        "default": false
                    },
                    "fetchDetails": {
                        "title": "Fetch Detail Pages",
                        "type": "boolean",
                        "description": "Visit each listing for full description, condition, make/model, and posting date. Slower but richer data. Images are always included (from search page).",
                        "default": false
                    },
                    "detailConcurrency": {
                        "title": "Detail Fetch Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Number of detail pages to fetch in parallel (when Fetch Details is enabled). Higher = faster but more load.",
                        "default": 5
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of listings to return.",
                        "default": 100
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
