# Craigslist Scraper — Multi-City Housing, Cars, Gigs & Leads (`foxlabs/craigslist-scraper`) Actor

Scrape Craigslist listings across 700+ US & Canadian cities for apartments, real estate, cars, jobs, gigs, and for-sale items. Extracts prices, GPS coordinates, neighborhoods, bedrooms/sqft, photos, VIN/odometer attributes, and full descriptions.

- **URL**: https://apify.com/foxlabs/craigslist-scraper.md
- **Developed by:** [Berkan Kaplan](https://apify.com/foxlabs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 craigslist listings

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

<p align="center">
  <img src="https://img.shields.io/badge/Pay--Per--Event-%241.40_%2F_1K_Listings-00C853?style=for-the-badge" alt="Pay-Per-Event" />&nbsp;
  <img src="https://img.shields.io/badge/700%2B_Cities-Housing_%C2%B7_Cars_%C2%B7_Gigs_%C2%B7_For_Sale-8B5CF6?style=for-the-badge" alt="700+ Cities" />&nbsp;
  <img src="https://img.shields.io/badge/AI_Agent_Ready-MCP_%26_x402-7C4DFF?style=for-the-badge" alt="MCP & x402 Ready" />&nbsp;
  <img src="https://img.shields.io/badge/Dual_Runtime-Batch_%2B_Standby_API-FF6D00?style=for-the-badge" alt="Batch + Standby API" />
</p>

## Craigslist Scraper — Multi-City Housing, Cars, Gigs & Leads 🚀

**foXLabs US Real Estate, Local Leads & Marketplace Series:** [Zillow Scraper](https://apify.com/foxlabs/zillow-scraper) · [Redfin Scraper](https://apify.com/foxlabs/redfin-scraper) · [Yelp Business Scraper](https://apify.com/foxlabs/yelp-business-scraper) · [Google Maps Scraper](https://apify.com/foxlabs/google-maps-scraper) · [Upwork Jobs Scraper](https://apify.com/foxlabs/upwork-jobs-scraper)

Extract structured **Craigslist listings across all 700+ US & Canadian city subdomains (`newyork`, `sfbay`, `losangeles`, `chicago`, `austin`, `miami`, `toronto`, etc.) for apartments/housing (`apa`), real estate (`rea`), cars by owner (`cto`), freelance gigs (`ggg`/`cpg`), services (`bbb`), jobs (`jjj`), and items for sale (`sss`)** — with zero login and ultra-fast `360`-listing JSON batches on standard Datacenter proxies.

Built for US real estate & FSBO/FRBO housing investors, used-car & equipment flippers (`cto`), digital agencies hunting local freelance `gigs` (`cpg`/`ggg`), local market researchers, and AI sourcing agents.

### 🔍 What is the Craigslist Multi-City Scraper — and when should you use it?

Craigslist remains North America's highest-intent local classifieds network for no-fee owner rentals (`apa`), private-party used cars (`cto`), local freelance gigs (`ggg` / `cpg`), and local bargains (`sss`). Most Craigslist scrapers crawl slow HTML pages one city at a time or charge `$4.00–$6.00 / 1,000` plus start fees.

This Actor talks directly to Craigslist's `sapi/v8` search JSON engine with dynamic `areaId` discovery and official `reference.craigslist.org/Categories` mapping inside a `256 MB` container:

- **Multi-City Sweep at `360` Listings per Request (`listing` at `$1.40 / 1,000`)** — pass an array of `cities` (e.g. `["newyork", "sfbay", "austin", "chicago"]`) to extract `postingId`, `title`, canonical `listingUrl`, `priceUsd`, `neighborhood`, `subareaCode`, `bedrooms`, `sqft`, exact `latitude`/`longitude`, `imageUrls[]`, and `postedAtIso` in seconds.
- **Optional Full Post Body, VIN & Attribute Enrichment (`includeDetails: true` -> `listing-detail` at `$2.50 / 1,000`)** — visits individual `.html` post pages on standard Datacenter proxies to add clean `descriptionText` (QR-code boilerplate stripped!), `attributes[]`, `vin`, `odometer`, `condition`, `fuelType`, `transmission`, and `titleStatus`.

**Use it when you need:** multi-city private-owner car flipping (`category: "cto"`); off-market apartment/rental aggregation (`category: "apa"`); agency lead gen from `computer gigs` (`cpg`) and `all gigs` (`ggg`); or local secondhand arbitrage.

**Use something else when:** you attempt to scrape Craigslist's anonymized email/phone reply relay behind interactive CAPTCHA challenges (Craigslist masks personal seller emails behind relay forms; this Actor extracts all public listing data, GPS coordinates, VINs, specs, and post bodies).

### 🤖 Use with AI agents (MCP, Claude, Cursor & x402)

**Already connected to the Apify MCP server?** Ask your AI assistant to call `foxlabs/craigslist-scraper`.

- **Hosted MCP URL (zero install):** `https://mcp.apify.com?tools=foxlabs/craigslist-scraper`
- **Local stdio config (Claude Desktop, Cursor, Cline, Windsurf):**

```json
{
  "mcpServers": {
    "craigslist-scraper": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server", "--tools", "foxlabs/craigslist-scraper"],
      "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
    }
  }
}
```

**Autonomous agentic payments supported.** Billed at **$0.0014 per `listing`** (`$1.40 / 1,000`) in fast multi-city API mode or **$0.0025 per `listing-detail`** (`$2.50 / 1,000`) with full post body & VIN/attribute enrichment (`$0` start fee, `status` rows `$0.00`). Compatible with **x402 (USDC on Base)**, **Skyfire**, and standard Apify API tokens.

Copy-paste prompt for Claude, ChatGPT, Cursor, or any MCP-enabled agent:

```text
Use the Apify Actor `foxlabs/craigslist-scraper` to extract structured records into JSON.
Start with: {"cities":["newyork","sfbay"],"category":"apa","searchQuery":"studio","maxListingsPerCity":30}
```

Machine-readable Actor summary and schema: `https://apify.com/foxlabs/craigslist-scraper.md`.

### 📋 Overview

| Property | Details |
|---|---|
| **Actor Slug** | `foxlabs/craigslist-scraper` |
| **Authentication required** | None — 100% keyless & cookieless |
| **Container footprint** | Lightweight `256 MB` Node.js 22 HTTP runtime (`undici` + `AbortController` deadlines) |
| **Structured columns** | **36+ fields** (strict null-safety: unknown numbers are `null`, never fake `0`) |
| **Deduplication & restart safety** | Deterministic `rowKey` + startup `readAlreadyDelivered()` dataset scan |
| **Execution modes** | Asynchronous **Batch** + Real-Time **Standby HTTP** (`GET /`, `POST /scrape`, `.actor/openapi.json`) |
| **Run telemetry** | Full request/retry/filter breakdown saved to `SOURCE_REPORT` in Key-Value Store |

### ✨ Key Features

- ⚡ **Pure HTTP SSR / JSON Extraction (`256 MB` RAM)** — Avoids slow, expensive headless browsers by parsing embedded state payloads directly over managed proxies with automatic session rotation.
- 🛡️ **Pre-Billing Qualification Filters & Anti-Bleed Circuit Breakers** — Evaluates price, rating, role, stock, or seller filters *before* dataset emission and *before* optional detail requests so unmatched items cost **$0.00**.
- 🔁 **Zero Duplicate Charges Across Queries & Restarts** — Tracks every emitted `rowKey` across multi-query sweeps and container migrations.
- 🔌 **Dual Batch + Standby HTTP Runtime** — Call via standard `Actor.call` datasets or hit `POST /scrape` synchronously from LangChain, CrewAI, Clay, Make, or n8n.

### 🎬 Quick Start (API & Standby HTTP)

**1. Synchronous Batch API call (returns JSON array directly):**

```bash
curl -X POST "https://api.apify.com/v2/acts/foxlabs~craigslist-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cities":["losangeles","austin"],"category":"cto","minPrice":3000,"maxPrice":20000,"hasImage":true,"maxListingsPerCity":40}'
```

**2. Real-time Standby HTTP endpoint (`POST /scrape`):**

```bash
curl -X POST "https://foxlabs--craigslist-scraper.apify.actor/scrape?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cities":["newyork"],"category":"cpg","includeDetails":true,"maxListingsPerCity":15}'
```

### 🚀 Getting Started (3 steps)

1. **Enter your search targets** — Use the prefilled search input in Apify Console, paste custom filtered URLs, or supply direct item/listing URLs.
2. **Choose speed vs. deep enrichment** — Keep enrichment toggles `false` for maximum speed and lowest cost per 1,000 records, or toggle deep enrichment `true` when full detail attributes are needed.
3. **Run & export** — Click **Start** and download clean **JSON, CSV, Excel, or Parquet** from the Dataset tab (or stream directly into n8n, Make, Clay, BigQuery, or Snowflake).

### 📥 Input & Filters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `cities` | `array` | *(prefill: `["newyork","sfbay"]`)* | Craigslist city subdomains (e.g. \['newyork', 'sfbay', 'losangeles', 'chicago', 'austin', 'seattle', 'miami', 'toronto']). Any of Craigslist's 700+ subdomains works. |
| `category` | `string` | `"apa"` | Craigslist section code to search. |
| `searchQuery` | `string` | *(prefill: `"studio"`)* | Optional keyword query (e.g. 'studio', 'toyota tacoma', 'wordpress', 'macbook pro'). Leave empty to browse all listings in the selected category. |
| `searchUrls` | `array` | — | Paste any custom filtered Craigslist search URL (e.g. https://austin.craigslist.org/search/cto?min_price=5000). |
| `listingUrls` | `array` | — | Direct Craigslist post URLs (https://<city>.craigslist.org/.../<id>.html) for full detail extraction ('listing-detail'). |
| `sortBy` | `string` | `"date"` | Craigslist search sort order. |
| `minPrice` | `integer` | — | Optional minimum price filter. |
| `maxPrice` | `integer` | — | Optional maximum price filter. |
| `hasImage` | `boolean` | `false` | Only return listings that include at least one photo. |
| `postedToday` | `boolean` | `false` | Only return listings posted within the last 24 hours. |
| `includeDetails` | `boolean` | `false` | Visits each individual .html post page to extract full descriptionText, VIN, odometer, vehicle condition/title status, housing laundry/parking/pet attributes, and full gallery URLs ('listing-detail' event). |
| `maxListingsPerCity` | `integer` | `30` | Maximum unique listings extracted per city or search URL (up to 360 per API page). |
| `maxTotalListings` | `integer` | `100` | Hard ceiling on total billable Craigslist listings emitted across the entire run. |
| `proxyConfiguration` | `object` | `{"useApifyProxy":true}` | Apify Proxy configuration. Runs cleanly on standard Datacenter proxies out of the box. |

### 📤 Output Schema & Real Sample Record

#### Sample Live-Extracted Record

```json
{
  "rowType": "listing-detail",
  "rowKey": "craigslist:post:8003348034",
  "postingId": "8003348034",
  "dedupKey": "dpsro3jWZ55pVsdCm8U9Ca",
  "cityDomain": "newyork",
  "subareaCode": "fct",
  "neighborhood": "Stamford",
  "categoryId": 1,
  "categoryCode": "apa",
  "categoryName": "apartments / housing for rent",
  "title": "Beautiful Furnished Studio in Stamford CT $1,700 Month Including Utili",
  "slug": "stamford-beautiful-furnished-studio-in",
  "listingUrl": "https://newyork.craigslist.org/fct/apa/d/stamford-beautiful-furnished-studio-in/8003348034.html",
  "priceUsd": 1700,
  "priceFormatted": "$1,700",
  "bedrooms": 1,
  "sqft": 850,
  "latitude": 41.0602,
  "longitude": -73.5445,
  "hasImages": true,
  "imageCount": 6,
  "primaryImageUrl": "https://images.craigslist.org/00J0J_gNC5ddEPp4X_07O0ak_600x450.jpg",
  "imageUrls": [
    "https://images.craigslist.org/00J0J_gNC5ddEPp4X_07O0ak_600x450.jpg",
    "https://images.craigslist.org/00X0X_hWebsa2sve2_0ak07K_600x450.jpg",
    "https://images.craigslist.org/00n0n_ksAXAQSjC07_07K0ak_600x450.jpg"
  ],
  "descriptionText": "SpaciousPrivate &Furnished Studio Available ( utilities included) \nLooking for a comfortable, clean, and convenient place to call home? This approximately 850 sq. ft. furnished studio offers privacy, comfort, and plenty of space.\nFeatures include:\nQuiet and convenient location ( walking distance to park, gym ( Chelsea piers) , grocery store, restaurants and ...",
  "attributes": [
    "1BR / 1.5Ba",
    "850ft 2",
    "application fee details:",
    "$ 5",
    "loft"
  ],
  "condition": null,
  "vin": null,
  "odometer": null,
  "fuelType": null,
  "transmission": null,
  "titleStatus": null,
  "postedAtIso": "2026-11-19T19:46:44.000Z",
  "updatedAtIso": "2026-11-19T19:46:45.000Z",
  "detailsEnriched": true,
  "searchSource": "newyork:apa:studio",
  "scrapedAt": "2026-11-19T21:27:20.897Z"
}
```

#### Field Reference (36 Core Columns)

| Field | Type | Live Sample Value |
|---|---|---|
| `rowType` | `string` | `"listing-detail"` |
| `rowKey` | `string` | `"craigslist:post:8003348034"` |
| `postingId` | `string` | `"8003348034"` |
| `dedupKey` | `string` | `"dpsro3jWZ55pVsdCm8U9Ca"` |
| `cityDomain` | `string` | `"newyork"` |
| `subareaCode` | `string` | `"fct"` |
| `neighborhood` | `string` | `"Stamford"` |
| `categoryId` | `number` | `1` |
| `categoryCode` | `string` | `"apa"` |
| `categoryName` | `string` | `"apartments / housing for rent"` |
| `title` | `string` | `"Beautiful Furnished Studio in Stamford CT $1,700 Month` |
| `slug` | `string` | `"stamford-beautiful-furnished-studio-in"` |
| `listingUrl` | `string` | `"https://newyork.craigslist.org/fct/apa/d/stamford-beau` |
| `priceUsd` | `number` | `1700` |
| `priceFormatted` | `string` | `"$1,700"` |
| `bedrooms` | `number` | `1` |
| `sqft` | `number` | `850` |
| `latitude` | `number` | `41.0602` |
| `longitude` | `number` | `-73.5445` |
| `hasImages` | `boolean` | `true` |
| `imageCount` | `number` | `6` |
| `primaryImageUrl` | `string` | `"https://images.craigslist.org/00J0J_gNC5ddEPp4X_07O0ak` |
| `imageUrls` | `array` | `["https://images.craigslist.org/00J0J_gNC5ddEPp4X_07O0a` |
| `descriptionText` | `string` | `"SpaciousPrivate &Furnished Studio Available ( utilitie` |
| `attributes` | `array` | `["1BR / 1.5Ba","850ft 2","application fee details:","$ ` |
| `condition` | `string \| number \| null` | `null` |
| `vin` | `string \| number \| null` | `null` |
| `odometer` | `string \| number \| null` | `null` |
| `fuelType` | `string \| number \| null` | `null` |
| `transmission` | `string \| number \| null` | `null` |
| `titleStatus` | `string \| number \| null` | `null` |
| `postedAtIso` | `string` | `"2026-11-19T19:46:44.000Z"` |
| `updatedAtIso` | `string` | `"2026-11-19T19:46:45.000Z"` |
| `detailsEnriched` | `boolean` | `true` |
| `searchSource` | `string` | `"newyork:apa:studio"` |
| `scrapedAt` | `string` | `"2026-11-19T21:27:20.897Z"` |

### 🧪 Data Quality — Measured

- **100% Deterministic Uniqueness (`N3`):** Every billable record carries a canonical `rowKey` verified across multi-page and multi-query runs (`duplicateSkipped` tracked in `SOURCE_REPORT`).
- **Strict Null-Safety (`N5`):** Unlisted salaries, missing barcodes, or undisclosed metrics are emitted as `null` — never coerced to `0` or `"N/A"`.
- **Policy C Empty-Result Honesty (`N8`):** Invalid URLs, empty inputs, or zero-match filters emit a free `rowType: "status"` diagnostic row (`$0.00`) and exit cleanly with `SUCCEEDED`; total upstream network outages fail loudly via `Actor.fail()`.

### ⏱️ Performance — Measured

- **Default Memory:** `256 MB` (`minMemoryMbytes: 256`, `maxMemoryMbytes: 1024`), keeping `apify-actor-start` at 0.25 GB compute footprint.
- **Measured Live Verification:** Local proxy E2E verification completed in **12.6s** with `100%` valid schema fields and `0` unhandled socket hangs (`dispatcher.destroy()` cleanup on every request).

### 💼 Use Cases

#### 1. Private-Owner Used Car Arbitrage (`category: "cto"` + VIN & Odometer)

Scan multiple metro areas simultaneously for private-party (`cto`) vehicles with clean titles, photos, VINs, and odometer readings.

```json
{
  "cities": [
    "losangeles",
    "phoenix",
    "dallas",
    "austin"
  ],
  "category": "cto",
  "searchQuery": "tacoma",
  "minPrice": 5000,
  "maxPrice": 30000,
  "hasImage": true,
  "includeDetails": true,
  "maxListingsPerCity": 25
}
```

#### 2. Multi-City Rental & Housing Market Feed (`category: "apa"`)

Pull apartments and studios with `priceUsd`, `bedrooms`, `sqft`, `neighborhood`, and `latitude`/`longitude` at `$1.40 / 1,000` listings.

```json
{
  "cities": [
    "newyork",
    "sfbay",
    "chicago",
    "boston"
  ],
  "category": "apa",
  "hasImage": true,
  "maxListingsPerCity": 60,
  "maxTotalListings": 240
}
```

#### 3. Local Freelance & Web/Software Gig Leads (`category: "cpg"` / `"ggg"`)

Monitor `computer gigs` (`cpg`) posted today (`postedToday: true`) across top US tech hubs with full post descriptions.

```json
{
  "cities": [
    "newyork",
    "sfbay",
    "losangeles",
    "seattle",
    "miami"
  ],
  "category": "cpg",
  "postedToday": true,
  "includeDetails": true,
  "maxListingsPerCity": 25
}
```

### 🔗 Integrations (Node.js, Python, n8n, Make & Clay)

#### Python (`apify-client` v3+)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("foxlabs/craigslist-scraper").call(run_input={"cities": ["newyork", "sfbay"], "category": "apa", "searchQuery": "studio", "includeDetails": True, "maxListingsPerCity": 20})

for item in client.dataset(run.default_dataset_id).iterate_items():
    if item.get("rowType") != "status":
        print(item["rowKey"], item)
```

#### Node.js / TypeScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('foxlabs/craigslist-scraper').call({"cities":["newyork","austin"],"category":"apa","searchQuery":"studio","includeDetails":true,"maxListingsPerCity":20});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((r) => r.rowType !== 'status'));
```

#### Clay, n8n & Make.com

Use the official **Apify** node in **n8n** or **Make**, select `foxlabs/craigslist-scraper`, map your dynamic search inputs, and iterate over dataset items where `rowType != "status"`. In **Clay**, use the HTTP API column pointing to `run-sync-get-dataset-items` or Standby `POST /scrape`.

### 📊 Pricing (Pay-Per-Event)

Billed at **$0.0014 per `listing`** (`$1.40 / 1,000`) in fast multi-city API mode or **$0.0025 per `listing-detail`** (`$2.50 / 1,000`) with full post body & VIN/attribute enrichment (`$0` start fee, `status` rows `$0.00`).

| Event Name | Price | When It Fires |
|---|---|---|
| `listing` *(Primary — Fast `sapi/v8` Multi-City Search)* | **$0.0014 / listing** (`$1.40 / 1,000`) | City or search URL runs with `includeDetails: false` (default). Up to 360 listings per request with price, GPS coordinates, neighborhood, bedrooms/sqft, category, and photos. |
| `listing-detail` *(Full Post Body + VIN/Attributes)* | **$0.0025 / detailed listing** (`$2.50 / 1,000`) | Direct `listingUrls` runs or search runs with `includeDetails: true`. Adds clean `descriptionText`, `attributes[]`, `vin`, `odometer`, `condition`, `fuelType`, `transmission`, and `titleStatus`. Never double-charged with `listing`. |
| `status` *(Diagnostics)* | **FREE (`$0.00`)** | `empty_input`, `invalid_city`, `city_not_found`, `no_results`, `post_not_found`, and `filtered_empty` rows cost $0. |

### ❓ Frequently Asked Questions (FAQ)

#### Can I scrape multiple Craigslist cities in a single Actor run?

Yes! Unlike single-region scrapers, `cities` accepts an array of any Craigslist subdomains (for example `["newyork", "sfbay", "austin", "chicago", "toronto"]`). Known major hubs resolve instantly and any other subdomain across Craigslist's 700+ cities resolves its `areaId` dynamically at runtime.

#### Why is fast search mode (`listing` at $1.40 / 1,000) so fast and reliable?

Instead of scraping paginated HTML tables 120 rows at a time, this Actor queries Craigslist's `sapi.craigslist.org/web/v8/postings/search/full` endpoint over standard Datacenter proxies, decoding up to `360` structured listings (including GPS coordinates, bedrooms, sqft, neighborhoods, and image IDs) in a single ~125 KB JSON response.

#### How does the Actor construct exact canonical `.html` URLs across umbrella categories like `sss`?

When you search an umbrella section like `sss` (All For Sale), individual posts belong to specific subcategories (`ele`, `fua`, `cto`, etc.). At startup, the Actor loads Craigslist's official `reference.craigslist.org/Categories` dictionary so every numeric `categoryId` resolves to its exact 3-letter code and full canonical URL.

#### When should I enable `includeDetails: true` (`listing-detail` at $2.50 / 1,000)?

Enable `includeDetails: true` (or pass `listingUrls`) when you need the full post body (`descriptionText` with `"QR Code Link to This Post"` noise removed) and `.attrgroup` attributes such as `vin`, `odometer`, `condition`, `fuelType`, `transmission`, `titleStatus`, or housing pet/laundry tags.

#### Are `cto` (Cars by Owner) and `ctd` (Cars by Dealer) separated?

Yes! Select `"cto"` in `category` to target strictly private-owner vehicles, `"ctd"` for dealerships only, or `"cta"` for all cars and trucks combined.

#### Can I paste custom Craigslist search URLs with subarea or radius parameters?

Yes. Copy any filtered URL from your browser (such as `https://newyork.craigslist.org/search/mnh/apa?max_price=3500&bedrooms=2`) and pass it inside `searchUrls`. All query parameters and subarea filters are preserved automatically.

#### Are listings excluded by `minPrice`, `maxPrice`, `hasImage`, or `postedToday` charged?

No. Filters are applied both at the `sapi/v8` query level and pre-billing — excluded posts cost **$0.00**.

#### Am I ever billed both `listing` and `listing-detail` on the same Craigslist post?

Never. Every unique post (`craigslist:post:<postingId>`) triggers either `listing` (`$0.0014`) or `listing-detail` (`$0.0025`) once per run.

#### Does this scraper require Residential proxies or Craigslist login cookies?

No. Both `sapi/v8` search batches and `.html` detail requests run cleanly on standard Apify Datacenter proxies (`useApifyProxy: true`) with zero login.

#### What happens if a post has been flagged or deleted by its author?

Expired, deleted, or 404 posts emit a free `rowType: "status"` diagnostic record (`$0.00`) and finish cleanly with `SUCCEEDED` under Policy C.

#### Can AI agents call this Actor via MCP or Standby HTTP?

Yes. Connect `https://mcp.apify.com?tools=foxlabs/craigslist-scraper` or send synchronous `POST /scrape` requests in Standby mode.

#### What memory allocation should I use?

Keep the default **256 MB** setting — lightweight JSON/HTML parsing uses minimal RAM and minimizes start-up compute.

### 🐛 Troubleshooting

- **Received a `rowType: "status"` row instead of listings?** Inspect the `status` and `message` fields on that row (`empty_input`, `invalid_url`, `no_results`, or `filtered_empty`). Relax overly strict price/rating filters or verify your target URL domain. Status rows are always **$0.00**.
- **Want to cap maximum spend per run?** Set Apify's built-in **Maximum cost per run (`maxTotalChargeUsd`)** option in Console or API calls — the Actor checks remaining budget via `calculateMaxEventChargeCountWithinLimit()` before running enrichment batches and exits cleanly when your cap is reached.

### 🚧 What It Does Not Do

- Does not solve CAPTCHAs to unmask Craigslist anonymized relay emails/phones.
- Does not publish, renew, or flag ads on Craigslist.
- Does not scrape personal resumes (`res` section).

### ⚠️ Trademark Notice

`foxlabs/craigslist-scraper` is an independent data extraction tool developed by **foXLabs** and is not affiliated with, endorsed by, or sponsored by the target website or its parent companies. All product and company names are trademarks of their respective holders.

### ⚖️ Is It Legal to Scrape Public Craigslist Public Listings?

This Actor extracts only **publicly accessible web data** visible to unauthenticated visitors without bypassing login walls or private account areas. Users are responsible for complying with applicable data-protection regulations (such as GDPR/CCPA where personal data may appear in user-generated posts) and using extracted data lawfully.

### 🤝 Support, Custom Data & Contact

Need custom columns, higher volume SLAs, or a dedicated enterprise data feed?

- **Portfolio & Guides:** <https://data.foxlabs.com.tr>
- **Email:** `info@foxlabs.com.tr`
- **Issues:** Open a ticket on the **Issues** tab of this Actor in Apify Console (target response < 48h).

### Changelog

#### `0.1.0` (2026-11-20)

- Initial release of `foxlabs/craigslist-scraper` with 36+ structured columns, pre-billing filters, anti-bleed circuit breakers, `SOURCE_REPORT` telemetry, and dual Batch + Standby HTTP support.

# Changelog

This Actor's version history is a separate document: https://apify.com/foxlabs/craigslist-scraper/changelog.md

# Actor input Schema

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

Craigslist city subdomains (e.g. \['newyork', 'sfbay', 'losangeles', 'chicago', 'austin', 'seattle', 'miami', 'toronto']). Any of Craigslist's 700+ subdomains works.

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

Craigslist section code to search.

## `searchQuery` (type: `string`):

Optional keyword query (e.g. 'studio', 'toyota tacoma', 'wordpress', 'macbook pro'). Leave empty to browse all listings in the selected category.

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

Paste any custom filtered Craigslist search URL (e.g. https://austin.craigslist.org/search/cto?min_price=5000).

## `listingUrls` (type: `array`):

Direct Craigslist post URLs (https://<city>.craigslist.org/.../<id>.html) for full detail extraction ('listing-detail').

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

Craigslist search sort order.

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

Optional minimum price filter.

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

Optional maximum price filter.

## `hasImage` (type: `boolean`):

Only return listings that include at least one photo.

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

Only return listings posted within the last 24 hours.

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

Visits each individual .html post page to extract full descriptionText, VIN, odometer, vehicle condition/title status, housing laundry/parking/pet attributes, and full gallery URLs ('listing-detail' event).

## `maxListingsPerCity` (type: `integer`):

Maximum unique listings extracted per city or search URL (up to 360 per API page).

## `maxTotalListings` (type: `integer`):

Hard ceiling on total billable Craigslist listings emitted across the entire run.

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

Apify Proxy configuration. Runs cleanly on standard Datacenter proxies out of the box.

## Actor input object example

```json
{
  "cities": [
    "newyork",
    "sfbay"
  ],
  "category": "apa",
  "searchQuery": "studio",
  "sortBy": "date",
  "hasImage": false,
  "postedToday": false,
  "includeDetails": false,
  "maxListingsPerCity": 30,
  "maxTotalListings": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `sourceReport` (type: `string`):

No description

# 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",
        "sfbay"
    ],
    "searchQuery": "studio",
    "maxListingsPerCity": 30,
    "maxTotalListings": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/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",
        "sfbay",
    ],
    "searchQuery": "studio",
    "maxListingsPerCity": 30,
    "maxTotalListings": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/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",
    "sfbay"
  ],
  "searchQuery": "studio",
  "maxListingsPerCity": 30,
  "maxTotalListings": 100
}' |
apify call foxlabs/craigslist-scraper --silent --output-dataset

```

## MCP server setup

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