# Craigslist Scraper: Classifieds & Marketplace Listings (`hyperbach/craigslist-scraper`) Actor

Scrape Craigslist classifieds by city, category and keyword, or from any search or listing link: title, price, location, map position, posted date, images, and with each listing page the full text and attributes. Deep searches with the site's count. No login. Misses free.

- **URL**: https://apify.com/hyperbach/craigslist-scraper.md
- **Developed by:** [Hyperbach](https://apify.com/hyperbach) (community)
- **Categories:** Automation, Lead generation, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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: Classifieds & Marketplace Listings

**Craigslist listings in the US and Canada, logged out: a site by name with a category and search words, or any Craigslist search link (filters, sort, sub-area or city radius kept), or listing links in, one row per listing out — the title, the price, the place and its map position, the posted time and the images, and with each listing's page the full text, the attributes (condition, make and model, odometer, bedrooms, rent period, compensation …), every image, the category and the updated time.** One free row per search carries Craigslist's own count and a verdict: COMPLETE, TRUNCATED (Craigslist lists 10,000 listings of one search) or PARTIAL. No login, no API key, no browser, proxies handled for you.

**$1.30 per 1,000 `listing` rows on the Free plan, $1.10 on Starter.** A run start is $0.0013. The default input returns about 50 rows for about $0.0663. A value that names nothing is a free row that says why.

![A Craigslist listing page in a browser: a desk lamp with its title, price, map, condition, make and model, and description. Beside it, the row this Actor returns, with attributes, latitude and longitude highlighted next to the price, place, times and image count.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-craigslist-scraper.webp)

### Why this Craigslist scraper

- **Any site, any search.** Give sites by name (`newyork`, `sfbay`, `losangeles`, `toronto`; `nyc`, `sf`, `la` and `dc` too) with a category code and search words, or paste a search link from your browser with every filter you set there (price, condition, sold by owner, has image, a sub-area, a city with its radius, the sort). Old `<site>.craigslist.org` links and the new `www.craigslist.org/search/…` links both work.
- **The listing's page, on by default.** Each row reads the listing's own page too: the full text, the attributes as Craigslist labels them (condition, make and model, odometer, title status, bedrooms, rent period, compensation …), every image, the category and section names and the updated time. Turn `includeDetails` off for the search's fields alone (title, price, place, map position, posted time, images), several times faster.
- **Deep searches, with their count.** A search is read through Craigslist's own list to its end: up to 10,000 listings a search (measured 2026-11-09: New York for sale counts about 119,000 and lists 10,000). The free row of each search gives the site's count and the verdict; a larger search ends TRUNCATED with the count, and a sub-area, a price band or search words read more of it.
- **Charged once, only for listings.** A listing met twice (in two searches of the run) is delivered and charged once; results Craigslist shows "from nearby areas" are not results of your search and are left out; search rows are free.

### Who it's for

- **Resellers, dealers and deal hunters** — the newest listings of a category in one or several cities (cars and trucks, furniture, electronics) with price, condition, odometer and the map position, read again every day for what is new.
- **Real-estate investors and rental analysts** — the apartments, rooms or houses of a city or a sub-area with rent, bedrooms, square feet and the rent period, to compare asking prices week over week.
- **Researchers and market analysts** — the full text and attributes of thousands of listings of a market (prices by make and model, rents by neighbourhood), from the site's own list with its count.

### Quick start

**The leader's default job: New York, for sale, 200 listings with their pages**

```json
{
  "cities": [
    "newyork"
  ],
  "category": "sss",
  "maxItems": 200
}
```

**Bikes in the San Francisco Bay Area and Seattle, search fields only**

```json
{
  "cities": [
    "sfbay",
    "seattle"
  ],
  "category": "bik",
  "searchTerms": [
    "road bike"
  ],
  "includeDetails": false,
  "maxItems": 500
}
```

**A filtered search link and one listing**

```json
{
  "startUrls": [
    "https://www.craigslist.org/search/area/newyork?cat=cta&min_price=5000&max_price=20000&condition=20&sort=date",
    "https://www.craigslist.org/view/d/port-chester-bear-ez-crossbow-silent/ufPGeYKgWtDETgR8pjsq33"
  ],
  "maxItems": 100
}
```

### Switching from `solidcode/craigslist-scraper`?

Your input works as it is. Each name in the left column is read as this Actor's own field and the run log says so (`read <theirs> as <ours>`); a name marked *not read* is ignored with a note. A value in the other Actor's shape, an object list or its own date form, is read too.

| solidcode/craigslist-scraper | this Actor | what to know |
|---|---|---|
| `startUrls` | `startUrls` | The same: search links (new or old form, any filter) and listing links; plain strings or `{url: …}` objects. |
| `region` | `cities` | A site's name as in its link (newyork, sfbay, toronto); a list of sites is read too. Not read when startUrls is given (the links win, as there). |
| `category` | `category` | The same three-letter codes (sss, cta, apa, fua, jjj …); words such as cars or apartments are read too. |
| `searchTerm` | `searchTerms` | One search word set, or a list (one search each on each site). |
| `priceMin` | *not read* | Not read: put `min_price` in a search link. |
| `priceMax` | *not read* | Not read: put `max_price` in a search link. |
| `condition` | *not read* | Not read: put `condition` (10 new … 60 salvage) in a search link. |
| `hasImage` | *not read* | Not read: put `hasPic=1` in a search link. |
| `postedToday` | *not read* | Not read: put `postedToday=1` in a search link. |
| `sort` | *not read* | Not read: put `sort` (date, priceasc, pricedsc, rel) in a search link; a site by name reads newest first. |
| `includeDetails` | `includeDetails` | The same: on by default, each listing's page read. |
| `maxResults` | `maxItems` | The cap of the whole run; default 200 here as there; 0 = no cap. |

**What differs:**

- `region` is read as `cities` (one site, or a list), `searchTerm` as `searchTerms` and `maxResults` as `maxItems`; `startUrls`, `category` and `includeDetails` are the same names. When `startUrls` is given the links win and `region` is not read, as there.
- The filters `priceMin`, `priceMax`, `condition`, `hasImage`, `postedToday` and `sort` are not read: set them on craigslist.org and paste the search link (`?min_price=5000&condition=20&hasPic=1&sort=priceasc`); the run names the fields it did not read.
- No `phoneNumbers`, `emails`, `contactObfuscated` or `replyToken`: a poster's contact details are a private person's, and the full text carries what the poster wrote.
- A removed listing link is a free `not_found` row here, not a charged `isDeleted` row; a search listing whose page is gone keeps its search fields with `listing_page` removed.

### Output

One row per listing (and one free row per search or link):

| field | meaning |
|---|---|
| `record_type` | `listing` on a listing row (charged); `input` on a search's or link's free row. |
| `status` | `ok`, or why an input gave no row: `not_found`, `no_results`, `invalid_input`, `failed`, `not_read`. |
| `input` | The value you gave that this row answers (a site with its search words, a link). |
| `id` | Craigslist's post id. |
| `url` | The listing's page (on an input row: the search read). |
| `title` | The listing's title. |
| `price` | The price as a number in the site's currency; null when the listing names none. |
| `price_text` | The price as shown (`$1,300`). |
| `currency` | `USD` or `CAD` (the Canadian sites), from the search. |
| `city` | The Craigslist site (`newyork`, `sfbay`). |
| `subarea` | The site's sub-area code (`mnh`, `brk`), when the site has sub-areas. |
| `location` | The place as the poster wrote it (`Upper West Side`, `brooklyn`). |
| `neighborhood` | Craigslist's neighbourhood of the listing, when it names one. |
| `latitude` | Latitude of the listing's map pin (Craigslist places it near, not at, the address). |
| `longitude` | Longitude of the listing's map pin. |
| `map_accuracy` | The map pin's accuracy as the listing's page gives it. |
| `posted_at` | When the listing was posted (the page's time with its offset; from the search in UTC when the page was not read). |
| `updated_at` | When the poster last updated the listing; null when never. |
| `category_id` | Craigslist's number of the listing's category, from the search. |
| `category` | The category code (`cto`, `apa`, `fuo`), from the listing's page. |
| `category_name` | The category's name (`cars+trucks`, `furniture`). |
| `section` | The section (`for sale by owner`, `for sale by dealer`, `housing`, `jobs`). |
| `bedrooms` | Bedrooms, on housing listings, from the search. |
| `sqft` | Square feet, on housing listings that give it, from the search. |
| `odometer` | Miles on the odometer, on vehicle listings, from the search. |
| `salary` | The pay as shown, on job and gig listings, from the search. |
| `company` | The employer's name, on job listings that give it, from the search. |
| `job_title` | The job title, on job listings, from the search. |
| `attributes` | The listing's labelled attributes, keyed by the label (`condition`, `make_manufacturer`, `odometer`, `title_status`, `rent_period`, `compensation` …), with the car's `year` and `make_model`. |
| `attribute_tags` | The listing's unlabelled attributes as shown (`4BR / 2Ba`, `w/d in unit`, `cats are OK - purrr`). |
| `description` | The listing's full text as the poster wrote it. |
| `images` | The images' URLs (600×450), in the listing's order. |
| `image_count` | How many images the listing has. |
| `listing_page` | `read`, `not_asked` (`includeDetails` off), `removed` (the page is gone: the search fields stay) or `failed`. |
| `position` | The listing's place in its search's order, from 1. |
| `listings_found` | On an input row: Craigslist's own count of the search. |
| `verdict` | On an input row: COMPLETE (read to the end), TRUNCATED (Craigslist's list of 10,000 ended under its count), SHORT (the list ended well under the count), PARTIAL (stopped: `note` says why). |
| `rows_delivered` | On an input row: the listing rows it delivered. |
| `note` | Why an input row has the status or the verdict it has. |
| `scraped_at` | When this row was read (UTC). |

Example record:

```json
{
  "record_type": "listing",
  "status": "ok",
  "input": "newyork",
  "id": "7980486903",
  "url": "https://www.craigslist.org/view/d/new-york-blaupunkt-beq-s2-gooseneck/4SXvz3Jc95KAmUYevJniiM",
  "title": "Blaupunkt BEQ-S2 Gooseneck Equalizer Vintage Goose neck EQ Swan neck",
  "price": 1699,
  "price_text": "$1,699",
  "currency": "USD",
  "city": "newyork",
  "subarea": "mnh",
  "location": "Manhattan/Upper West Side",
  "neighborhood": null,
  "latitude": 40.7864,
  "longitude": -73.9764,
  "map_accuracy": 22,
  "posted_at": "2026-10-09T03:51:48-0400",
  "updated_at": "2026-11-09T17:06:18-0500",
  "category_id": 96,
  "category": "ele",
  "category_name": "electronics",
  "section": "for sale by owner",
  "bedrooms": null,
  "sqft": null,
  "odometer": null,
  "salary": null,
  "company": null,
  "job_title": null,
  "attributes": {
    "condition": "excellent",
    "make_manufacturer": "Blaupunkt",
    "model_name_number": "BEQ-S2"
  },
  "attribute_tags": [],
  "description": "This is a rare Vintage 1980's Blaupunkt BEQ-S2 Gooseneck Equalizer in great condition with only normal wears. The unit is in excellent working order. It comes with DIN to RCA wire  …(truncated for display)",
  "images": [
    "https://images.craigslist.org/00101_guog2KVxIHr_0ar0ew_600x450.jpg",
    "https://images.craigslist.org/00g0g_tf9WfZLRNm_0jm0aT_600x450.jpg",
    "https://images.craigslist.org/00e0e_gJeTPg8Foc_08a0ew_600x450.jpg",
    "https://images.craigslist.org/00D0D_ja9JzleJNC2_08a0ew_600x450.jpg",
    "https://images.craigslist.org/00404_kHge8i70jbI_0ew08a_600x450.jpg",
    "https://images.craigslist.org/00i0i_b7zeMOcDTcT_0jm0aT_600x450.jpg",
    "https://images.craigslist.org/00909_gYB2XsYoiom_0jm0aT_600x450.jpg",
    "https://images.craigslist.org/00202_2oeuWwjVH7_0jm0aT_600x450.jpg",
    "https://images.craigslist.org/00606_6ezPHkJHJUQ_08a0ew_600x450.jpg"
  ],
  "image_count": 9,
  "listing_page": "read",
  "position": 4,
  "listings_found": null,
  "verdict": null,
  "rows_delivered": null,
  "note": null,
  "scraped_at": "2026-11-09T22:11:59Z"
}
```

### Pricing

**Pay for the listings a run delivers**, plus one run start; no platform usage is billed to you. The listing price falls with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Listing (`listing`) | per 1,000 | $1.30 | $1.10 | $0.91 | $0.65 |
| Run start (`start`) | per run | $0.0013 | $0.0013 | $0.0013 | $0.0013 |

A listing is **$1.30 per 1,000** on the Free plan ($0.0013 a listing), with the listing's page (the full text, the attributes, every image) included. Each run that delivers a charged listing also pays the **run start, $0.0013 once**; a run that delivers no charged listing pays nothing at all. So 200 listings of one search cost $0.2613 on the Free plan, and several searches in one run share one start. The free row of every search or link, a value that is not a Craigslist link, a site or listing Craigslist does not have, a search with no result and a refused input are never charged, and a listing met twice in one run is charged once. Set a charge limit on the run and it stops before it would pass it.

### Usage patterns

- **Sites, searches and listings** — `cities` takes Craigslist sites by the name in their link (`newyork`, `sfbay`, `losangeles`, `chicago`, `toronto` …) or a site's link; each is searched in `category` (default `sss`, for sale) once for each of `searchTerms` (empty: the whole category). `startUrls` takes links as your browser shows them: searches (`https://www.craigslist.org/search/area/newyork?cat=cta&min_price=5000`, `https://sfbay.craigslist.org/search/sss?query=bike`, a sub-area such as `/search/subarea/mnh?cat=fua`, a city with its radius) and listings (`https://www.craigslist.org/view/d/<words>/<id>` or the older `…/<post id>.html`).
- **What a row is** — `record_type` = `listing`: one listing, charged, with `listing_page` read (its page was read), not_asked (`includeDetails` off), removed (Craigslist no longer serves the page: the search fields stay) or failed (the page was not served after six tries). `record_type` = `input`: the free row of one search or link — Craigslist's count (`listings_found`), the `rows_delivered`, the `verdict` and the `status` with its `note`.
- **How far a search goes** — A search is read through Craigslist's own list until its end, `maxItems` (default 200, 0 = no cap) or your charge limit. Craigslist lists at most 10,000 listings of one search; a larger search ends TRUNCATED with the site's count. With `includeDetails` (default) each listing's page is read too, a dozen at a time; off, a search's first 360 listings come in one call of about a second (measured 2026-11-09).

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `cities` | `array` | `[]` | Craigslist sites by their name in the link (newyork, sfbay, losangeles, chicago, seattle, toronto …; sf, la, nyc and dc are read too) or a site's link (https://sfbay.craigslist.org). Each site is one search of the category below, one for each search term. For a sub-area, a city radius, a price range or a sort, paste the search link below instead. |
| `category` | `string` | `"sss"` | The Craigslist category code, as in the site's links: sss for sale (all), cta cars and trucks, apa apartments, roo rooms, hhh housing, fua furniture, ela electronics, bik bicycles, zip free stuff, ggg gigs, bbb services, jjj jobs, ccc community, eee events. Words such as cars, apartments or furniture are read too. |
| `searchTerms` | `array` | `[]` | Words to search for, as you would type them in the site's search box (honda civic, standing desk). Each word set is one search on each site. Empty: every listing of the category. |
| `startUrls` | `array` | `[]` | Search links as you see them in your browser, filters and sort included (https://www.craigslist.org/search/area/newyork?cat=cta\&min_price=5000\&sort=priceasc, https://sfbay.craigslist.org/search/sss?query=bike, a sub-area or a city with its radius), and listing links (https://www.craigslist.org/view/d/<words>/<id> or the older …/<post id>.html). A search reads every listing Craigslist lists for it: 10,000 at most. |
| `includeDetails` | `boolean` | `true` | On: each row adds what only the listing's page shows: the full text, the attributes (condition, make and model, odometer, bedrooms, rent period, compensation …), every image, the category and section names and the updated time. Off: the search's fields only (title, price, place, map position, posted time, images), faster. |
| `maxItems` | `integer` | `200` | The most listing rows of the whole run; 0 = no cap beyond your charge limit. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A value that is not a Craigslist search or listing link, a site name Craigslist does not have, or a search with no result is not an error: it gets one free row with `status` invalid_input, not_found or no_results that says why, and the run goes on with the others. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Which status is which?**

An input row's `status` is `ok` (listings served; see `verdict`), `no_results` (Craigslist found no listing for the search; results it shows from nearby areas are not counted), `not_found` (Craigslist has no such site, search or listing, or the listing was removed; checked on two connections), `invalid_input` (not a Craigslist search or listing link), `failed` (the site refused every try; free) or `not_read` (left at `maxItems`, the charge limit or the run's time limit). A listing row's `status` is `ok`.

**Why does a large search stop at 10,000 listings?**

Craigslist itself lists at most 10,000 listings for one search, whatever its count. The input row says TRUNCATED with the site's count. Split the search by sub-area, price or search words to read the rest.

**Does it return the seller's phone or e-mail?**

No. Most Craigslist posters are private persons and reply through Craigslist's relay; this Actor extracts no contact. The listing's full text is delivered as the poster wrote it.

**Does it need a Craigslist account or API key?**

No. Everything is read from craigslist.org's public search and listing pages, logged out.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/craigslist-scraper').call({"cities": ["newyork"], "category": "sss", "maxItems": 200});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/craigslist-scraper').call(run_input={'cities': ['newyork'], 'category': 'sss', 'maxItems': 200})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/craigslist-scraper --input '{"cities": ["newyork"], "category": "sss", "maxItems": 200}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~craigslist-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"cities": ["newyork"], "category": "sss", "maxItems": 200}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/craigslist-scraper` and ask, for example: "Get 200 for-sale listings from Craigslist New York with title, price, location, map position, posted date, description, attributes and images". The agent fills the input from the table above and reads the rows from the run's dataset. A field under the name another Actor gives it is read as this Actor's own: `urls`, `url`, `links`, `searchUrls` as `startUrls`; `region`, `subdomain`, `regions`, `city` as `cities`; `searchTerm`, `searchQueries`, `query`, `queries` as `searchTerms`; `categoryCode`, `cat`, `categories` as `category` (and more). An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/craigslist-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[Facebook Marketplace Scraper](https://apify.com/hyperbach/facebook-marketplace-scraper)** — Marketplace listings by search, category and city: the price, the date listed and the seller, and on request the description and the vehicle facts.
- **[Avito Scraper](https://apify.com/hyperbach/avito-scraper)** — Avito.ru listings by search words, category or URL, with the price, the city, the seller type and the images.
- **[Kleinanzeigen Scraper](https://apify.com/hyperbach/kleinanzeigen-scraper)** — Kleinanzeigen.de listings by search words and place, with the price, the postcode, the seller type and shipping.
- **[AutoScout24 Scraper](https://apify.com/hyperbach/autoscout24-scraper)** — AutoScout24 car listings in eight European markets by make, model and place, with the price, mileage, first registration and the dealer.
- **[Leboncoin Scraper](https://apify.com/hyperbach/leboncoin-scraper)** — Leboncoin.fr listings by search words, category and place or by URL, with the price, the postcode, the seller type and the images.
- **[AutoTrader.ca Scraper](https://apify.com/hyperbach/autotrader-ca-scraper)** — AutoTrader.ca car listings by search URL, make and model around a Canadian city or listing URL, with the price, mileage, year, trim, the VIN where shown and the dealer or private seller.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

## `cities` (type: `array`):

Craigslist sites by their name in the link (newyork, sfbay, losangeles, chicago, seattle, toronto …; sf, la, nyc and dc are read too) or a site's link (https://sfbay.craigslist.org). Each site is one search of the category below, one for each search term. For a sub-area, a city radius, a price range or a sort, paste the search link below instead.

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

The Craigslist category code, as in the site's links: sss for sale (all), cta cars and trucks, apa apartments, roo rooms, hhh housing, fua furniture, ela electronics, bik bicycles, zip free stuff, ggg gigs, bbb services, jjj jobs, ccc community, eee events. Words such as cars, apartments or furniture are read too.

## `searchTerms` (type: `array`):

Words to search for, as you would type them in the site's search box (honda civic, standing desk). Each word set is one search on each site. Empty: every listing of the category.

## `startUrls` (type: `array`):

Search links as you see them in your browser, filters and sort included (https://www.craigslist.org/search/area/newyork?cat=cta\&min_price=5000\&sort=priceasc, https://sfbay.craigslist.org/search/sss?query=bike, a sub-area or a city with its radius), and listing links (https://www.craigslist.org/view/d/<words>/<id> or the older …/<post id>.html). A search reads every listing Craigslist lists for it: 10,000 at most.

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

On: each row adds what only the listing's page shows: the full text, the attributes (condition, make and model, odometer, bedrooms, rent period, compensation …), every image, the category and section names and the updated time. Off: the search's fields only (title, price, place, map position, posted time, images), faster.

## `maxItems` (type: `integer`):

The most listing rows of the whole run; 0 = no cap beyond your charge limit.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "cities": [
    "newyork"
  ],
  "category": "sss",
  "searchTerms": [],
  "startUrls": [],
  "includeDetails": true,
  "maxItems": 50
}
```

# Actor output Schema

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

All scraped records in the default dataset. One row per listing (and one free row per search or link):

## `runSummary` (type: `string`):

How the run went: listing rows charged, free rows, searches by status with the site's count, the source counters (calls, served, refused, exits, rotations, bytes) and the memory watch.

# 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 = {
    "cities": [
        "newyork"
    ],
    "category": "sss",
    "includeDetails": true,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/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 = {
    "cities": ["newyork"],
    "category": "sss",
    "includeDetails": True,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/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 '{
  "cities": [
    "newyork"
  ],
  "category": "sss",
  "includeDetails": true,
  "maxItems": 50
}' |
apify call hyperbach/craigslist-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hyperbach/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/4SpMFSDzd1BNIWviH/builds/ZggGe1LEFE9laGwDy/openapi.json
