# Craigslist Scraper — Listings, Prices, Cars and Rentals (`s-r/craigslist-scraper`) Actor

Search Craigslist listings by keyword, city, category and price. Collect posting IDs, titles, numeric prices, currencies, dates, locations and photos, with optional descriptions and vehicle or rental attributes.

- **URL**: https://apify.com/s-r/craigslist-scraper.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** E-commerce, Real estate, 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 $0.50 / 1,000 run start fees

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Craigslist Scraper collects public listings by city, keyword, category and price. Export titles, prices, currencies, dates, locations and photos, with optional descriptions and structured posting attributes.

Use the results for resale research, local price comparisons, inventory discovery, vehicle analysis or rental market tracking. Each listing has its original posting ID and public URL, so you can trace a record back to Craigslist and compare it with later exports. The scraper searches the area you select, including supported areas outside the United States.

### Craigslist scraper input

Start with an area, category and keyword. `area` accepts the Craigslist hostname, such as `sfbay`, `newyork`, `toronto`, `london` or `berlin`. You can also supply a numeric Craigslist AreaID as text. The default area is New York. `category` defaults to `sss`, the general for-sale category. Use `cta` for cars and trucks or `apa` for apartments and housing rentals. A keyword is optional: an empty `query` searches the whole selected category.

This search input was used to collect the bicycle research responses supplied with the scraper:

```json
{"area":"sfbay","category":"sss","query":"bike","max_results":3}
```

Set `min_price` and `max_price` to filter prices in the selected area's currency. `has_image` restricts the search to advertisements with pictures. `posted_today` uses Craigslist's own posted-today filter. For a postal search in the United States or Canada, supply both `postal` and `search_distance`; the distance is measured in miles. The available sort orders are newest first (`date`), oldest first (`dateoldest`), relevance (`rel`), price ascending (`priceasc`) and price descending (`pricedsc`).

You can paste a supported Craigslist search URL into `start_url` instead. Both city search URLs and the newer `www.craigslist.org/search/area/` form are accepted. The URL's area, category and keyword override the separate input fields, including prefilled Console values. If the URL has no `query`, the whole category is searched. Other supported URL parameters override matching input fields; fields absent from the URL still apply. Display fragments such as `#search=1~gallery~0~0` are ignored. Unsupported parameters produce an input error rather than silently changing your search.

`max_results` is the total number of unique listings requested across the whole run, from 1 to 10,000, with a default of 100. Turn on `include_details` when you need descriptions, structured vehicle or rental attributes, public addresses or more precise coordinates. The actor follows continuation pages automatically. If you use the underlying response cursor in another integration, retain the original input fields and result limit when requesting the next page.

### Output and dataset fields

Each dataset row represents one delivered listing. The core fields are `source`, `fetched_at`, `listing_id`, `title`, `url`, `price`, `currency`, `country`, `image_url` and `position`. Posting IDs are strings. Prices are numbers in the reported currency; a free listing has price zero, while an advertisement without a supplied price has `null`. Currency is not converted. Examples include USD for New York and San Francisco, CAD for Toronto, GBP for London and EUR for Berlin.

Additional fields include the posting UUID, original price text, publication date, category abbreviation and ID, area, subarea, location description, neighborhood, latitude, longitude, image IDs and all image URLs. Vehicle search results may include `odometer` and monthly payment text. Rental results may include `bedrooms` and `sqft`. These values are source fields, and availability varies by listing and category. Missing coordinates, images or optional attributes stay empty or null as documented in the output schema; the scraper does not infer them from the title.

With details enabled, a successful lookup adds `description`, `attributes`, `address`, `updated_at`, `repost_of` and `category_label`. Descriptions retain source HTML line breaks. Each attribute has a key, label and value. Vehicle postings can contain make/model, year, fuel, transmission and title status. Housing postings can contain bathrooms, move-in date, laundry, parking and pet preferences. The fields depend on what the advertiser published.

If a detail lookup fails, the original search row remains available with `details_error`. The run includes a warning and does not count that lookup as a successful detail result. Use posting IDs to join exports; use the public URL to inspect a listing. Position follows the delivered search order across continuation pages.

### Craigslist scraper use cases

- **Resale and arbitrage:** scrape Craigslist for items priced below their market value, then sort by price or posting date to find fresh offers.
- **Price research:** build a Craigslist price history per city and category, using numeric prices and currencies that need no cleaning.
- **Cars and trucks:** search `cta` and enable details for make, model, year, odometer and title status.
- **Rentals and housing:** search `apa` to track asking rents, bedrooms, square footage and neighborhoods across areas.
- **Lead generation:** collect advertisements from a niche, such as equipment or services, with a public URL for manual follow-up.
- **Craigslist API replacement:** Craigslist has no public API, so schedule this actor or call it through Apify's API to get structured results.

### Craigslist scraper vs. other options

Copying results by hand is slow and breaks down after a few pages. A script you write yourself needs maintenance whenever the site changes, and you must handle paging, deduplication, currencies and country differences. General-purpose web scraper APIs return page content that you still have to parse.

This actor returns ready-to-use rows with numeric prices, currency, country, coordinates and photo URLs. It follows continuation pages for you, supports areas outside the United States, and fetches descriptions and attributes only when you ask for them, so a plain price scan stays inexpensive. It is not a tool for contacting sellers: reply details are out of scope.

### Search coverage and limitations

Craigslist may append advertisements from nearby areas. These are marked `is_nearby` and count toward delivered results. The search total describes the source's local total and may differ from the number of rows returned when nearby suggestions are included. Currency follows the searched area, including nearby suggestions, while the country field identifies each listing's own area.

Large searches preserve the original selection of posting IDs across continuation pages. Listings added after the selection are not mixed into that run. A posting removed before a later page can be skipped with a warning. Each new continuation token is valid for 30 minutes, so an actively paginating search can run longer than 30 minutes. Start a new search if the latest token expires. Search availability and advertiser changes can affect how many results are ultimately delivered.

This actor collects public listing content. It does not open the protected reply workflow or retrieve contact details hidden behind it. It does not provide seller account access, private messages, historical price changes or a guarantee that a posting is still available when you contact its author.

### Pricing and usage

The current prices are shown on the actor's Pricing tab. Listing events correspond to dataset rows actually delivered. Optional detail events count only delivered listings whose detail lookup succeeded. An unsuccessful detail lookup does not add a detail event. Searches with no results do not incur listing or detail events; a configured run-start event can still apply.

The non-paying account limit is 10 delivered listings per run, including when details are requested. Paying runs use the requested total result limit. Choose a small limit while checking your filters, then increase it for a wider analysis. You can export the dataset through Apify in JSON, CSV or Excel-compatible formats and use it in your existing reporting workflow.

### Frequently asked questions

#### Can I search cities outside the United States?

Yes. Select the Craigslist area hostname for the location you need. The scraper includes the area's currency and each listing's country. Listing volume varies between areas and categories, and some areas provide fewer location fields than others.

#### Does the scraper return full descriptions and car or apartment attributes?

Enable `include_details`. Successful lookups return the public description and the structured attributes supplied by the posting. The precise attribute set varies by category. Search rows remain in the dataset if an individual detail lookup is unavailable.

#### Why are some prices, coordinates or photos missing?

Advertisers do not supply every field on every posting, and some regions omit coordinates in search responses. Missing values remain null or empty arrays. A missing price is distinct from a price of zero. Use the listing URL when you need to inspect the source advertisement.

#### How do I collect more than one page?

Set `max_results` to the total you want, up to 10,000. The actor follows continuation pages within the run. In a direct integration, send `next_cursor` with the same original search inputs until no cursor remains. Check warnings if the source changes or a requested phase cannot be completed.

# Actor input Schema

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

Keyword or phrase. Empty searches return all listings in the category; default: empty.

## `area` (type: `string`):

Craigslist area hostname or numeric AreaID as text, such as sfbay, newyork, toronto, london or berlin. Default: newyork.

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

Three-letter Craigslist category: sss (for sale), cta (cars), apa (rentals), bik (bikes), fua (furniture). Default: sss.

## `min_price` (type: `integer`):

Minimum price in the searched area currency.

## `max_price` (type: `integer`):

Maximum price in the searched area currency.

## `posted_today` (type: `boolean`):

Only listings posted today according to Craigslist. Default: false.

## `has_image` (type: `boolean`):

Only listings with an image. Default: false.

## `postal` (type: `string`):

US or Canadian postal code; requires search_distance and a matching area.

## `search_distance` (type: `integer`):

Radius in miles around postal. Both fields must be provided.

## `sort` (type: `string`):

Sort order. Default: date (newest first).

## `max_results` (type: `integer`):

Maximum unique listings across this search and all continuations.

## `include_details` (type: `boolean`):

Fetch description, attributes, address and precise coordinates. More than 36 details require cursor pages.

## `start_url` (type: `string`):

Optional HTTPS Craigslist search URL. Its area, category and query override input fields, including Console prefills; a missing query means all listings in the category. Supported parameters: query, min_price, max_price, postal, search_distance, sort, hasPic and postedToday. URL parameters override matching input fields; other input fields still apply. Display fragments are ignored.

## `cursor` (type: `string`):

Opaque next_cursor from a previous response. Keep all original inputs, including max_results, unchanged. Each new cursor is valid for 30 minutes, allowing longer searches while pagination continues.

## Actor input object example

```json
{
  "query": "bike",
  "area": "sfbay",
  "category": "sss",
  "max_results": 100,
  "include_details": false
}
```

# Actor output Schema

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

One dataset row per delivered unique listing.

## `output` (type: `string`):

Counts, warnings, search metadata and billing summary.

## `errors` (type: `string`):

Error codes and messages, when present.

# 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 = {
    "query": "bike",
    "area": "sfbay",
    "category": "sss"
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/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 = {
    "query": "bike",
    "area": "sfbay",
    "category": "sss",
}

# Run the Actor and wait for it to finish
run = client.actor("s-r/craigslist-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 '{
  "query": "bike",
  "area": "sfbay",
  "category": "sss"
}' |
apify call s-r/craigslist-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/craigslist-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/LWaLBsn9wdmMHcfLA/builds/7TDNZYHIC56rWyKGa/openapi.json
