# Craigslist Scraper - Listings, Prices & Photos (`blackfalcondata/craigslist-scraper`) Actor

Scrape craigslist.org listings across for-sale, housing, jobs, gigs and services. Get structured data with precise GPS coordinates on every listing, powerful category and price filters, and scheduled monitoring that returns only new posts.

- **URL**: https://apify.com/blackfalcondata/craigslist-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### What does Craigslist Scraper do?

Craigslist Scraper extracts structured listings from [craigslist.org](https://craigslist.org) across for-sale, housing, jobs, gigs and services — title, price, description, photos, category, posting date and precise GPS coordinates on every listing. Filter by category, price range, condition, seller type and location (or paste start URLs), and run incrementally to capture only new posts.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctaplain) and use the included $5 monthly platform credit to test this actor.

### Key features

<!-- KEY_FEATURES:START -->
- **📍 Geo-coordinates on every listing** — every listing carries `latitude` + `longitude` (plus region, sub-area and neighborhood when details are on) — map-ready without geocoding. Pulled straight from Craigslist's own data, no proxies needed.
- **♻️ Incremental mode** — daily runs emit only listings that are new or whose price/condition changed since last run. Perfect for inventory-diff dashboards and competitive pricing alerts. Saves 80–95% on recurring monitoring.
- **🎛️ Full Craigslist filter set** — filter by price range, seller type (owner/dealer), condition, photos, free stuff, posted-today, ZIP + distance radius, and full housing filters (bedrooms, bathrooms, sqft, cats/dogs OK) — plus keyword, titles-only, sort, and any of 24 categories across for-sale, housing, jobs, gigs, services and community.
- **📋 Detail enrichment** — two-stage scraping — list first, then enrich each listing with the full detail-page payload. One input toggle controls the depth.
- **🔗 Paste-mode** — paste any craigslist.org URL — single-listing pages, search-results, or category SEO URLs. Build the filter you want in the browser, copy, paste; the actor parses every query param.
- **📧 Contact + attribute extraction** — with details on, each listing gains a cleaned description plus structured `attributes`, `condition`, `bedrooms`/`bathrooms`/`sqft`, and best-effort `contactEmail` / `contactPhone` parsed from the body (`hasContactInfo` flags when a poster left reachable contact details).
- **🎯 Batch searches** — run multiple search variants in one job — shared dedup, single dataset for compare/diff downstream.
- **🔔 Notifications** — telegram / Slack / Discord / WhatsApp / webhook alerts on each run. Combine with incremental to ping only when prices or inventory actually move.
- **📦 Compact mode** — light payload with core fields only — comparable rows across listings without HTML or metadata overhead. Perfect for pricing dashboards.
- **🔌 MCP connectors** — export your results into Notion via Apify's MCP connectors — a clean run-summary page, no glue code. Opt-in via the App connector field; deterministic field-mapping, no AI. Built on Apify's connector framework, so more destinations open up as their catalog grows.
- **📝 Description format selection** — pick a single description representation — `text`, `html`, or `markdown` — and the unused variants are dropped from each record. Halves payload size when your pipeline only consumes one format.
<!-- KEY_FEATURES:END -->

### What data can you extract from craigslist.org?

Each result includes Core listing fields (`listingId`, `postingUuid`, `postingId`, `title`, `category`, `categoryCode`, `section`, and `region`, and more), detail fields when enrichment is enabled (`description`, `descriptionText`, `descriptionHtml`, `descriptionMarkdown`, and `detailFetched`), and contact information (`contactEmail`, `contactPhone`, and `hasContactInfo`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as full descriptions and contact information where the source provides them.

### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Keyword(s) to search for (e.g. "mountain bike"). Leave empty to browse the newest listings in the chosen region + category. Paste a JSON array like ["sofa","desk"] to run several searches.
- **`region`** — Craigslist region — a city subdomain (e.g. "newyork", "losangeles", "sfbay", "chicago", "london"), an area abbreviation ("nyc"), or a full Craigslist URL. Paste a JSON array to scrape several regions. Defaults to newyork.
- **`category`** — What to scrape. Broad sections (All For Sale / All Housing / All Jobs) or a specific category. (default: `"sss"`)
- **`sort`** — How to order results before scraping. (default: `"newest"`)
- **`startUrls`** — Paste Craigslist search URLs (e.g. https://newyork.craigslist.org/search/apa?min_price=1500). Each URL becomes its own scrape task with its region, category and filters parsed from the URL. When provided, these REPLACE the fields above. (default: `[]`)
- **`priceMin`** — Only listings priced at or above this (USD).
- **`priceMax`** — Only listings priced at or below this (USD).
- **`sellerType`** — For-sale listings: by owner, by dealer, or both. (default: `"all"`)
- **`condition`** — For-sale item condition. (default: `"any"`)
- **`hasImage`** — Only listings that include at least one photo. (default: `false`)
- **`freeOnly`** — Only listings priced at $0 (free stuff). Ignored if a Max Price is set. (default: `false`)
- **`postedToday`** — Only listings posted today. (default: `false`)
- ...and 34 more parameters

### Input examples

**Search a category by keyword** — Match a free-text keyword within a region and category.

→ Listing records with title, price, geo-coordinates, photos, and canonical URL.

```json
{
  "region": "newyork",
  "category": "bik",
  "query": "mountain bike",
  "priceMin": 100,
  "hasImage": true,
  "maxResults": 100
}
````

**Apartments with full details** — Browse the newest rentals in a region with detail enrichment on.

→ Housing records with bedrooms, bathrooms, sqft, neighborhood, attributes, and full description.

```json
{
  "region": "losangeles",
  "category": "apa",
  "priceMax": 3000,
  "minBedrooms": 2,
  "includeDetails": true,
  "maxResults": 150
}
```

**Paste Craigslist search URLs** — Build the search you want on craigslist.org, copy the results URL, and paste it here. Add several to run them in one job.

→ Every pasted search is scraped and merged into one dataset, deduplicated by listing ID.

```json
{
  "startUrls": [
    "https://newyork.craigslist.org/search/cta?max_price=15000&auto_transmission=1",
    "https://sfbay.craigslist.org/search/sss?query=standing+desk"
  ],
  "maxResults": 300
}
```

**Daily new-listing monitor** — Re-run on a schedule to capture only new and changed listings since the previous run.

→ Records tagged NEW / UPDATED against prior state; pair with notifications for alerts.

```json
{
  "region": "chicago",
  "category": "sss",
  "query": "vintage camera",
  "incrementalMode": true,
  "maxResults": 200
}
```

### Output

Each run produces a dataset of structured listing records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example listing record

```json
{
  "listingId": "cf5c2c348076b09553e064222f519a29ccd2e9162430f18c90b258e98a4136c7",
  "postingUuid": "bugM7qnJAZDkhQ21zKB56g",
  "postingId": 7913097045,
  "title": "Blue Shark NV105 Upright Vacuum",
  "category": "household items - by owner",
  "categoryCode": "hsh",
  "section": "for sale",
  "region": "newyork",
  "areaName": "new york",
  "subArea": "manhattan",
  "neighborhood": "Battery Park",
  "latitude": 40.7105,
  "longitude": -74.0163,
  "description": "It works well and have no damages, functional nor cosmetic. About 3 yrs old and lightly used. Selling due to downsizing. 45.2\" x 13.5\" x 11.3\" A powerful, lightweight upright with swivel steering for...",
  "descriptionText": "It works well and have no damages, functional nor cosmetic. About 3 yrs old and lightly used. Selling due to downsizing. 45.2\" x 13.5\" x 11.3\" A powerful, lightweight upright with swivel steering for...",
  "descriptionHtml": "It works well and have no damages, functional nor cosmetic. About 3 yrs old and lightly used.<br>\nSelling due to downsizing.<br>\n<br>\n45.2\" x 13.5\" x 11.3\"<br>\n<br>\nA powerful, lightweight upright wit...",
  "descriptionMarkdown": "It works well and have no damages, functional nor cosmetic. About 3 yrs old and lightly used.\n\nSelling due to downsizing.\n\n45.2\" x 13.5\" x 11.3\"\n\nA powerful, lightweight upright with swivel steering f...",
  "priceText": "$36",
  "priceValue": 36,
  "priceCurrency": "USD",
  "publishedAt": "2026-07-17T10:48:48.000Z",
  "updatedAt": "2026-07-17T10:43:48.000Z",
  "url": "https://www.craigslist.org/view/d/new-york-blue-shark-nv105-upright-vacuum/bugM7qnJAZDkhQ21zKB56g",
  "portalUrl": "https://www.craigslist.org/view/d/new-york-blue-shark-nv105-upright-vacuum/bugM7qnJAZDkhQ21zKB56g",
  "imageUrl": "https://images.craigslist.org/00z0z_7V3xe4fBr1b_06I0po_600x450.jpg",
  "galleryUrls": [
    "https://images.craigslist.org/00z0z_7V3xe4fBr1b_06I0po_600x450.jpg",
    "https://images.craigslist.org/00f0f_hxu02I1Txo4_0aX0aX_600x450.jpg"
  ],
  "attributes": [
    "condition: excellent",
    "make / manufacturer: Shark",
    "model name / number: NV105"
  ],
  "condition": "excellent",
  "hasContactInfo": true,
  "repostOfPostingId": 7651854281,
  "contentQuality": "full",
  "detailFetched": true,
  "scrapedAt": "2026-07-17T10:49:03.192Z",
  "source": "craigslist.org"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`. Craigslist's search only surfaces a window of the newest current listings, so a listing that has merely scrolled out of that window can't be told apart from one that's actually gone — this actor tracks new and changed listings but never claims one is gone for good.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape craigslist.org

1. Go to [Craigslist Scraper](https://apify.com/blackfalcondata/craigslist-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need full descriptions, contact info.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract listing data from craigslist.org for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed listings on scheduled runs without processing the full dataset every time.
- Build outreach lists using contact details and apply URLs from listings.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape craigslist.org?

Craigslist Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.00005 per run
- **Per result:** $0.001 per listing record

Example costs:

- 10 results: **$0.01**
- 25 results: **$0.025**
- 100 results: **$0.1**
- 200 results: **$0.2**
- 500 results: **$0.5**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of listings that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.25 | $0.01 | $0.24 (95%) | $0.38 |
| 15% — moderate broad query | $0.25 | $0.04 | $0.21 (85%) | $1.13 |
| 30% — high-volume aggregator | $0.25 | $0.08 | $0.17 (70%) | $2.25 |

Full re-scrape monthly cost at daily polling: $7.50. First month with incremental costs $0.61 / $1.34 / $2.43 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from craigslist.org?

The number of results depends on the search query and available listings on craigslist.org. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Craigslist Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed listings on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Craigslist Scraper with other apps?

Yes. Craigslist Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Craigslist Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Craigslist Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape craigslist.org?

This actor extracts publicly available data from craigslist.org. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/craigslist-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Airbnb Realtime API — Live Listing, Reviews & Search Lookups](https://apify.com/blackfalcondata/airbnb-realtime?fpr=1h3gvi) — Real-time Airbnb lookups via a persistent standby server — fetch a single listing, its reviews.
- [Airbnb Scraper — Listings, Prices, Reviews & Host Data](https://apify.com/blackfalcondata/airbnb-scraper?fpr=1h3gvi) — Scrape Airbnb stays — listings with price, ratings, amenities, host info, photos, GPS and full.
- [Airbnb URL Scraper — Fast, Cheap Listing URL Discovery](https://apify.com/blackfalcondata/airbnb-url-scraper?fpr=1h3gvi) — Discover every Airbnb listing URL for a city, neighborhood or search — the cheapest way to.
- [HAR Texas Real Estate Scraper](https://apify.com/blackfalcondata/har-scraper?fpr=1h3gvi) — Scrape har.com — the largest Texas MLS portal — for homes for sale, rent and sold in every Texas.
- [Harcourts Property Scraper — buy, rent, sold & leased](https://apify.com/blackfalcondata/harcourts-scraper?fpr=1h3gvi) — Scrape harcourts.net property listings across Australia, New Zealand and Fiji — price, bedrooms,.
- [Idealista Scraper — Listings, Phone & Agency Data](https://apify.com/blackfalcondata/idealista-scraper?fpr=1h3gvi) — Scrape Idealista listings across Spain, Portugal, and Italy with full pricing, photos, GPS, agent.
- [Immowelt Scraper — German Real Estate Listings](https://apify.com/blackfalcondata/immowelt-scraper?fpr=1h3gvi) — Scrape immowelt.de — one of Germany's largest residential property portals — and pull every active.
- [LeBonCoin Real Estate Scraper - Property Listings](https://apify.com/blackfalcondata/leboncoin-real-estate-scraper?fpr=1h3gvi) — Scrape LeBonCoin real estate listings with property type, surface, rooms, bedrooms, price, DPE.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctaplain) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

# Actor input Schema

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

Keyword(s) to search for (e.g. "mountain bike"). Leave empty to browse the newest listings in the chosen region + category. Paste a JSON array like \["sofa","desk"] to run several searches.

## `region` (type: `string`):

Craigslist region — a city subdomain (e.g. "newyork", "losangeles", "sfbay", "chicago", "london"), an area abbreviation ("nyc"), or a full Craigslist URL. Paste a JSON array to scrape several regions. Defaults to newyork.

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

What to scrape. Broad sections (All For Sale / All Housing / All Jobs) or a specific category.

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

How to order results before scraping.

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

Paste Craigslist search URLs (e.g. https://newyork.craigslist.org/search/apa?min\_price=1500). Each URL becomes its own scrape task with its region, category and filters parsed from the URL. When provided, these REPLACE the fields above.

## `priceMin` (type: `integer`):

Only listings priced at or above this (USD).

## `priceMax` (type: `integer`):

Only listings priced at or below this (USD).

## `sellerType` (type: `string`):

For-sale listings: by owner, by dealer, or both.

## `condition` (type: `string`):

For-sale item condition.

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

Only listings that include at least one photo.

## `freeOnly` (type: `boolean`):

Only listings priced at $0 (free stuff). Ignored if a Max Price is set.

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

Only listings posted today.

## `searchTitlesOnly` (type: `boolean`):

Match the keyword against listing titles only (not the full body).

## `postalCode` (type: `string`):

Center a distance search on this ZIP code. Combine with Search Distance.

## `searchDistance` (type: `integer`):

Radius in miles around the ZIP code. Requires a ZIP / Postal Code.

## `minBedrooms` (type: `integer`):

Housing only: minimum bedrooms.

## `maxBedrooms` (type: `integer`):

Housing only: maximum bedrooms.

## `minBathrooms` (type: `integer`):

Housing only: minimum bathrooms.

## `maxBathrooms` (type: `integer`):

Housing only: maximum bathrooms.

## `minSqft` (type: `integer`):

Housing only: minimum square footage.

## `maxSqft` (type: `integer`):

Housing only: maximum square footage.

## `catsOk` (type: `boolean`):

Housing only: cats allowed.

## `dogsOk` (type: `boolean`):

Housing only: dogs allowed.

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

Fetch each listing's full page: description body, all attributes (condition, make/model, etc.), precise location, contact phone/email found in the text, and repost info. Slower but far richer.

## `imageSize` (type: `string`):

Resolution of the image URLs returned.

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

Maximum total listings to return (0 = as many as the search returns). Each region + category returns up to 360 newest matches per run; add more regions/categories/queries for broader coverage.

## `compact` (type: `boolean`):

Return core fields only (id, title, price, geo, url) — ideal for AI-agent / MCP workflows.

## `descriptionMaxLength` (type: `integer`):

Truncate the description to N characters. 0 = no truncation.

## `descriptionFormat` (type: `string`):

Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Only return NEW and UPDATED listings compared to the previous run of this same search. Ideal for monitoring — schedule it and get only fresh listings each time. State is keyed to the search inputs automatically.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search. Leave empty to auto-generate from the search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip listings that are reposts of content seen (and expired) in a prior run.

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "14155551234"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## Actor input object example

```json
{
  "query": "mountain bike",
  "region": "newyork",
  "category": "sss",
  "sort": "newest",
  "startUrls": [],
  "sellerType": "all",
  "condition": "any",
  "hasImage": false,
  "freeOnly": false,
  "postedToday": false,
  "searchTitlesOnly": false,
  "catsOk": false,
  "dogsOk": false,
  "includeDetails": false,
  "imageSize": "600x450",
  "maxResults": 20,
  "compact": false,
  "descriptionMaxLength": 0,
  "descriptionFormat": "all",
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false
}
```

# Actor output Schema

## `results` (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 = {
    "query": "mountain bike",
    "region": "newyork",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/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": "mountain bike",
    "region": "newyork",
    "maxResults": 20,
}

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

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

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

```

## CLI example

```bash
echo '{
  "query": "mountain bike",
  "region": "newyork",
  "maxResults": 20
}' |
apify call blackfalcondata/craigslist-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blackfalcondata/craigslist-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Craigslist Scraper - Listings, Prices & Photos",
        "description": "Scrape craigslist.org listings across for-sale, housing, jobs, gigs and services. Get structured data with precise GPS coordinates on every listing, powerful category and price filters, and scheduled monitoring that returns only new posts.",
        "version": "0.1",
        "x-build-id": "Egkc4Bn4y84bmllFv"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~craigslist-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-craigslist-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blackfalcondata~craigslist-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-craigslist-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blackfalcondata~craigslist-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-craigslist-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "title": "🔍 Search Term(s)",
                        "type": "string",
                        "description": "Keyword(s) to search for (e.g. \"mountain bike\"). Leave empty to browse the newest listings in the chosen region + category. Paste a JSON array like [\"sofa\",\"desk\"] to run several searches."
                    },
                    "region": {
                        "title": "📍 Region / City",
                        "type": "string",
                        "description": "Craigslist region — a city subdomain (e.g. \"newyork\", \"losangeles\", \"sfbay\", \"chicago\", \"london\"), an area abbreviation (\"nyc\"), or a full Craigslist URL. Paste a JSON array to scrape several regions. Defaults to newyork."
                    },
                    "category": {
                        "title": "🗂️ Category",
                        "enum": [
                            "sss",
                            "cta",
                            "ela",
                            "fua",
                            "hsh",
                            "zip",
                            "bik",
                            "tls",
                            "gms",
                            "mca",
                            "vga",
                            "wan",
                            "apa",
                            "rea",
                            "roo",
                            "sub",
                            "hhh",
                            "jjj",
                            "ggg",
                            "bbb",
                            "ccc",
                            "rrr",
                            "eee",
                            "pet"
                        ],
                        "type": "string",
                        "description": "What to scrape. Broad sections (All For Sale / All Housing / All Jobs) or a specific category.",
                        "default": "sss"
                    },
                    "sort": {
                        "title": "↕️ Sort Order",
                        "enum": [
                            "newest",
                            "oldest",
                            "price_asc",
                            "price_desc",
                            "relevant"
                        ],
                        "type": "string",
                        "description": "How to order results before scraping.",
                        "default": "newest"
                    },
                    "startUrls": {
                        "title": "🔗 Start URLs (optional)",
                        "type": "array",
                        "description": "Paste Craigslist search URLs (e.g. https://newyork.craigslist.org/search/apa?min_price=1500). Each URL becomes its own scrape task with its region, category and filters parsed from the URL. When provided, these REPLACE the fields above.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "priceMin": {
                        "title": "💵 Min Price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only listings priced at or above this (USD)."
                    },
                    "priceMax": {
                        "title": "💵 Max Price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only listings priced at or below this (USD)."
                    },
                    "sellerType": {
                        "title": "🧑‍💼 Seller Type",
                        "enum": [
                            "all",
                            "owner",
                            "dealer"
                        ],
                        "type": "string",
                        "description": "For-sale listings: by owner, by dealer, or both.",
                        "default": "all"
                    },
                    "condition": {
                        "title": "🏷️ Condition",
                        "enum": [
                            "any",
                            "new",
                            "like-new",
                            "excellent",
                            "good",
                            "fair",
                            "salvage"
                        ],
                        "type": "string",
                        "description": "For-sale item condition.",
                        "default": "any"
                    },
                    "hasImage": {
                        "title": "🖼️ Only With Photos",
                        "type": "boolean",
                        "description": "Only listings that include at least one photo.",
                        "default": false
                    },
                    "freeOnly": {
                        "title": "🆓 Only Free Listings",
                        "type": "boolean",
                        "description": "Only listings priced at $0 (free stuff). Ignored if a Max Price is set.",
                        "default": false
                    },
                    "postedToday": {
                        "title": "📆 Posted Today",
                        "type": "boolean",
                        "description": "Only listings posted today.",
                        "default": false
                    },
                    "searchTitlesOnly": {
                        "title": "🔤 Search Titles Only",
                        "type": "boolean",
                        "description": "Match the keyword against listing titles only (not the full body).",
                        "default": false
                    },
                    "postalCode": {
                        "title": "📮 ZIP / Postal Code",
                        "type": "string",
                        "description": "Center a distance search on this ZIP code. Combine with Search Distance."
                    },
                    "searchDistance": {
                        "title": "📏 Search Distance (miles)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Radius in miles around the ZIP code. Requires a ZIP / Postal Code."
                    },
                    "minBedrooms": {
                        "title": "🛏️ Min Bedrooms",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Housing only: minimum bedrooms."
                    },
                    "maxBedrooms": {
                        "title": "🛏️ Max Bedrooms",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Housing only: maximum bedrooms."
                    },
                    "minBathrooms": {
                        "title": "🛁 Min Bathrooms",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Housing only: minimum bathrooms."
                    },
                    "maxBathrooms": {
                        "title": "🛁 Max Bathrooms",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Housing only: maximum bathrooms."
                    },
                    "minSqft": {
                        "title": "📐 Min Sqft",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Housing only: minimum square footage."
                    },
                    "maxSqft": {
                        "title": "📐 Max Sqft",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Housing only: maximum square footage."
                    },
                    "catsOk": {
                        "title": "🐱 Cats OK",
                        "type": "boolean",
                        "description": "Housing only: cats allowed.",
                        "default": false
                    },
                    "dogsOk": {
                        "title": "🐶 Dogs OK",
                        "type": "boolean",
                        "description": "Housing only: dogs allowed.",
                        "default": false
                    },
                    "includeDetails": {
                        "title": "📋 Include Full Details",
                        "type": "boolean",
                        "description": "Fetch each listing's full page: description body, all attributes (condition, make/model, etc.), precise location, contact phone/email found in the text, and repost info. Slower but far richer.",
                        "default": false
                    },
                    "imageSize": {
                        "title": "🖼️ Image Size",
                        "enum": [
                            "300x300",
                            "600x450",
                            "1200x900"
                        ],
                        "type": "string",
                        "description": "Resolution of the image URLs returned.",
                        "default": "600x450"
                    },
                    "maxResults": {
                        "title": "💯 Max Results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum total listings to return (0 = as many as the search returns). Each region + category returns up to 360 newest matches per run; add more regions/categories/queries for broader coverage.",
                        "default": 100
                    },
                    "compact": {
                        "title": "📦 Compact Output",
                        "type": "boolean",
                        "description": "Return core fields only (id, title, price, geo, url) — ideal for AI-agent / MCP workflows.",
                        "default": false
                    },
                    "descriptionMaxLength": {
                        "title": "✂️ Description Max Length",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Truncate the description to N characters. 0 = no truncation.",
                        "default": 0
                    },
                    "descriptionFormat": {
                        "title": "Description format",
                        "enum": [
                            "all",
                            "text",
                            "html",
                            "markdown"
                        ],
                        "type": "string",
                        "description": "Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others.",
                        "default": "all"
                    },
                    "excludeEmptyFields": {
                        "title": "Exclude empty fields from output",
                        "type": "boolean",
                        "description": "Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "♻️ Incremental Mode",
                        "type": "boolean",
                        "description": "Only return NEW and UPDATED listings compared to the previous run of this same search. Ideal for monitoring — schedule it and get only fresh listings each time. State is keyed to the search inputs automatically.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "🔑 State Key",
                        "type": "string",
                        "description": "Optional. Stable identifier for the tracked search. Leave empty to auto-generate from the search inputs."
                    },
                    "skipReposts": {
                        "title": "🚫 Skip Reposts",
                        "type": "boolean",
                        "description": "When incremental, skip listings that are reposts of content seen (and expired) in a prior run.",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "🔑 Telegram Bot Token",
                        "type": "string",
                        "description": "Telegram bot token (from @BotFather). Required for Telegram notifications."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram Chat ID",
                        "type": "string",
                        "description": "Telegram chat or channel ID (e.g. \"-100123456789\"). Required when telegramToken is set."
                    },
                    "discordWebhookUrl": {
                        "title": "🎮 Discord Webhook URL",
                        "type": "string",
                        "description": "Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook."
                    },
                    "slackWebhookUrl": {
                        "title": "💼 Slack Webhook URL",
                        "type": "string",
                        "description": "Slack incoming webhook URL. api.slack.com/messaging/webhooks."
                    },
                    "notificationLimit": {
                        "title": "📊 Max Listings Per Notification",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of listings included in each notification message (1–20).",
                        "default": 5
                    },
                    "notifyOnlyChanges": {
                        "title": "🔄 Notify Only New/Updated",
                        "type": "boolean",
                        "description": "When Incremental Mode is on, only send notifications for NEW and UPDATED listings.",
                        "default": false
                    },
                    "whatsappAccessToken": {
                        "title": "📱 WhatsApp Access Token",
                        "type": "string",
                        "description": "WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h."
                    },
                    "whatsappPhoneNumberId": {
                        "title": "📞 WhatsApp Phone Number ID",
                        "type": "string",
                        "description": "Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set."
                    },
                    "whatsappTo": {
                        "title": "📲 WhatsApp Recipient",
                        "type": "string",
                        "description": "Recipient phone in E.164 format without + (e.g. \"14155551234\"). Recipient must have messaged your business number within last 24h."
                    },
                    "webhookUrl": {
                        "title": "🪝 Generic Webhook URL",
                        "type": "string",
                        "description": "Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends."
                    },
                    "webhookHeaders": {
                        "title": "📋 Webhook Headers",
                        "type": "object",
                        "description": "Optional JSON object of custom headers (e.g. {\"Authorization\":\"Bearer ...\"})."
                    },
                    "appConnector": {
                        "title": "Send results to a connected app",
                        "type": "string",
                        "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog."
                    },
                    "mcpIssueTeam": {
                        "title": "Issue tracker team",
                        "type": "string",
                        "description": "Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
