# Craigslist Scraper - Listings, Prices, Locations & Details (`fanndev/craigslist-search-scraper`) Actor

Craigslist postings from any search or area: cars, housing, for sale, jobs, gigs and services. Title, price, posted time, location, lat/lon, images, odometer, bedrooms, pay; optional full description and attributes. Search one city, a whole state or all US areas.

- **URL**: https://apify.com/fanndev/craigslist-search-scraper.md
- **Developed by:** [Faisal Ahdan naufal](https://apify.com/fanndev) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Craigslist Scraper - Listings, Prices, Locations & Details

Pull **Craigslist postings** from any search: cars and trucks, apartments and housing, everything for sale, jobs, gigs and services. Paste search URLs from your browser (all filters kept), or search one city, every area in a state, or all US areas at once. Each posting comes with title, price, posted time, category, area and neighborhood, map coordinates, photos and the category-specific numbers (odometer, bedrooms and square feet, pay, employer). Turn on details for the full description and every labeled attribute.

### Why use this actor

- **Every posting, not just the first page.** Craigslist returns 360 results per query; bigger searches are split by subarea and price range automatically (a 3,642-posting New York apartment search came back complete).
- **Any search you can make on the site.** Paste URLs with your filters, or use areas + category + keywords, with an escape hatch for any Craigslist filter (make/model, year, bedrooms, ZIP and distance...).
- **Statewide and nationwide.** `TX` searches every Texas area; `all-us` covers all of them.
- **Clean, typed rows.** Price as a number, UTC timestamps, latitude/longitude, photo URLs, odometer, bedrooms, sqft.
- **Optional details.** Full description, condition, title status, transmission, paint, pay, employment type and more.
- **No account, no login.**

### Who uses it

- **Car dealers, flippers and wholesalers** watching private-party listings.
- **Landlords, investors and analysts** tracking rents and housing supply.
- **Lead-gen and market-research teams** monitoring services, gigs and for-sale categories.

### How it works

1. Paste one or more Craigslist search URLs, or list areas with a category and keywords.
2. Choose how many postings you want and whether to open each posting for details.
3. Run it, or schedule it to catch new postings every hour or day.

### Input

```json
{
    "searchUrls": ["https://sfbay.craigslist.org/search/cta?query=toyota&min_price=5000"],
    "areas": ["austin", "TX"],
    "category": "cta",
    "query": "tesla model 3",
    "includeDetails": true,
    "maxResults": 500
}
```

| Field | Type | Description |
| --- | --- | --- |
| `searchUrls` | array | Craigslist search URLs, filters included. |
| `areas` | array | Hostnames (`sfbay`, `newyork`), state/province codes (`TX`, `ON`) or `all-us`, searched with `category` + `query`. |
| `category` | string | `sss` all for sale (default), `cta` cars & trucks, `cto` by owner, `apa` apartments, `hhh` housing, `jjj` jobs, `ggg` gigs, `bbb` services, `fua` furniture, `ela` electronics, `zip` free... |
| `query`, `minPrice`, `maxPrice`, `postedToday`, `hasPicture` | | Area-search filters. |
| `extraFilters` | object | Any Craigslist parameter, e.g. `{"auto_make_model": "toyota camry", "min_auto_year": 2018, "postal": "94103", "search_distance": 25}`. |
| `sortBy` | string | `newest` (default), `relevant`, `priceLow`, `priceHigh`, `oldest`. |
| `includeNearby` | boolean | Keep the nearby-area postings Craigslist mixes into small result sets (off by default). |
| `includeDetails` | boolean | Open each posting for description and attributes (one extra request each). |
| `maxResults` | integer | Per search; default 500, `0` = every posting. |

### Output

A real posting with details (Austin, description shortened):

```json
{
  "_input": "area:austin | cat:cta | q:tesla model 3",
  "_source": "S1-sapi-search+S2-posting",
  "recordType": "posting",
  "postingId": 8002209114,
  "title": "2023 Tesla Model 3 RWD - 16,241 mi - White Interior - One Owner",
  "price": 31800,
  "priceText": "$31,800",
  "currency": "USD",
  "postedAt": "2026-11-17T19:07:59Z",
  "category": "cto",
  "categoryName": "cars & trucks - by owner",
  "area": "austin",
  "areaName": "austin, TX",
  "location": "Austin, TX",
  "latitude": 30.663,
  "longitude": -97.9316,
  "odometer": 16241,
  "imageCount": 13,
  "images": ["https://images.craigslist.org/00x0x_28nvcmafqd5_0li0fY_600x450.jpg", "…"],
  "url": "https://austin.craigslist.org/cto/d/liberty-hill-2023-tesla-model-rwd-mi/8002209114.html",
  "description": "2023 Tesla Model 3 Rear-Wheel Drive for sale by owner. Only 16,241 miles. One owner…",
  "attributes": {
    "condition": "excellent", "drive": "rwd", "fuel": "electric", "odometer": "16,241",
    "paint color": "silver", "title status": "lien", "transmission": "automatic", "type": "sedan"
  },
  "year": "2023",
  "makeModel": "Tesla Model 3"
}
```

| Field | Description |
| --- | --- |
| `postingId`, `title`, `price`, `priceText`, `currency`, `postedAt`, `url` | The posting. |
| `category`, `categoryName`, `area`, `areaName`, `subarea`, `location`, `neighborhood`, `latitude`, `longitude` | Where it is. |
| `odometer`, `bedrooms`, `sqft`, `compensation`, `jobTitle`, `employer` | Category-specific numbers from the search results. |
| `imageCount`, `images` | Photos. |
| `description`, `attributes`, `year`, `makeModel`, `updatedAt`, `mapAddress`, `removed` | With `includeDetails`. |

A search with no postings gives one free `NOTICE` row.

### Notes and limits

- Postings without prices (jobs, gigs, services) can't be split by price; big searches are split by subarea and category instead, and any slice still above 360 keeps its 360 newest (the run log names it).
- Contact details are hidden behind Craigslist's reply button and are not collected.
- Coordinates are the approximate location Craigslist shows on its map.

# Actor input Schema

## `searchUrls` (type: `array`):

Craigslist search URLs copied from your browser, filters included, e.g. https://newyork.craigslist.org/search/apa?min_bedrooms=2. One search per URL.

## `areas` (type: `array`):

Instead of URLs: Craigslist areas to search with the category and keywords below. Hostnames (sfbay, newyork, losangeles, chicago), a state or province code (TX, CA, ON) for every area in it, or all-us.

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

Craigslist category code for the areas: sss (all for sale), cta (cars & trucks), cto (cars by owner), apa (apartments), hhh (all housing), jjj (jobs), ggg (gigs), bbb (services), fua (furniture), ela (electronics), zip (free stuff).

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

Search words for the areas, e.g. 'toyota tacoma', 'iphone 15'.

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

For the areas search.

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

For the areas search.

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

For the areas search.

## `hasPicture` (type: `boolean`):

For the areas search.

## `extraFilters` (type: `object`):

Advanced: any Craigslist search parameter for the areas search, e.g. {"auto_make_model": "toyota camry", "min_auto_year": 2018, "min_bedrooms": 2, "postal": "94103", "search_distance": 25}.

## `sortBy` (type: `string`):

Result order.

## `includeNearby` (type: `boolean`):

Craigslist pads small result sets with postings from nearby areas. Off = only the area you searched.

## `includeDetails` (type: `boolean`):

Opens each posting for its full description and attributes (condition, odometer, title status, bedrooms, pay...). One extra request per posting.

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

0 = every posting (big searches are split by subarea and price range; Craigslist returns 360 per query).

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

Posting pages fetched in parallel (details only).

## `maxRetries` (type: `integer`):

Retries per request.

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

Apify Proxy.

## Actor input object example

```json
{
  "searchUrls": [
    "https://sfbay.craigslist.org/search/cta?query=toyota&min_price=5000"
  ],
  "category": "sss",
  "postedToday": false,
  "hasPicture": false,
  "sortBy": "newest",
  "includeNearby": false,
  "includeDetails": false,
  "maxResults": 100,
  "maxConcurrency": 4,
  "maxRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per Craigslist posting.

# 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 = {
    "searchUrls": [
        "https://sfbay.craigslist.org/search/cta?query=toyota&min_price=5000"
    ],
    "maxResults": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fanndev/craigslist-search-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 = {
    "searchUrls": ["https://sfbay.craigslist.org/search/cta?query=toyota&min_price=5000"],
    "maxResults": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("fanndev/craigslist-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchUrls": [
    "https://sfbay.craigslist.org/search/cta?query=toyota&min_price=5000"
  ],
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call fanndev/craigslist-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fanndev/craigslist-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

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