# Craigslist Classifieds & Listings Scraper (`wyle/craigslist-classifieds-scraper`) Actor

Search Craigslist classifieds across any city or direct search URL for for-sale items, apartments, and jobs. Collect prices, locations, descriptions, and full image galleries cleanly.

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

## Pricing

from $1.50 / 1,000 results

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

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

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

## How to integrate an Actor?

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

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

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

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

# README

## Craigslist Classifieds & Listings Scraper

Extract public Craigslist postings across any city, category, or direct search URL—covering for-sale items, apartments, jobs, cars, services, and gigs. Built for fast, lightweight runs with zero browser overhead and no Craigslist account required.

### Modes

| Mode | Input | What you get |
|---|---|---|
| Direct Search URLs | `searchUrls` | Scrapes exact Craigslist search URLs with their embedded region, category, keyword, and filter settings (overrides `areas`, `category`, and `query`) |
| City & Category Search | `areas` + `category` + optional `query` | Searches one or more Craigslist city slugs with price, ZIP/postal code, radius, image, and today-only filters |

### Supported Regions & Categories

- **Global Regions**: Supports Craigslist city and area slugs across North America, Europe, and Asia-Pacific (such as `sfbay`, `newyork`, `losangeles`, `chicago`, `seattle`, `miami`, `toronto`, `vancouver`, `london`, `berlin`, `tokyo`).
- **All Major Categories**:
  - `sss`: For Sale (electronics, furniture, general goods)
  - `apa`: Apartments & Housing
  - `cta`: Cars & Trucks
  - `jjj`: Jobs
  - `bbb`: Services
  - `ggg`: Gigs
  - `ccc`: Community (`eee` Events, `rrr` Resumes also supported)

### Output Modes & Proxy Tips

- **Summary vs. Full Details (`includeDetails`)**: Keeping `includeDetails` set to `false` delivers rapid search-level extraction (`postingId`, `title`, `price`, `location`, `coordinates`, `postedAt`, `images`, and category metadata like `bedrooms`, `sqft`, `salary`, `autoMiles`). Enable `includeDetails` when you also need the full `description` text, `attributes` list, `postalCode`, and `updatedAt` from each individual posting page.
- **Zero-null output**: Missing fields default cleanly to empty strings (`""`), `0`, or `[]` for reliable downstream parsing.
- **Proxies & concurrency**: Direct runs work well for small searches. For multi-city scrapes, high `maxItems` (up to `10,000` per search), or `includeDetails: true`, enable Apify Residential proxies and adjust `maxConcurrency` (`1`–`20`) to avoid rate limits.

### Use Cases

1. **Local Resale & Arbitrage Alerts**: Monitor undervalued electronics, vehicles, furniture, or collectibles across target metro areas.
2. **Real Estate & Rental Tracking**: Track apartment rents, square footage, bedrooms, and neighborhood availability over time.
3. **Regional Job & Gig Intelligence**: Aggregate local hiring demand, hourly/salary postings, and gig listings by city.
4. **AI Market & Classifieds Feeds**: Power price-benchmarking tools and RAG assistants with clean, zero-null listing records.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchUrls` | Array | `[]` | Direct Craigslist search URLs (overrides `areas`, `category`, and `query` when provided). |
| `areas` | Array | `["sfbay"]` | Craigslist city/area slugs to search when `searchUrls` is empty. |
| `category` | String | `"sss"` | Craigslist category code (`sss`, `apa`, `jjj`, `cta`, `bbb`, `ggg`, `ccc`, `eee`, `rrr`). |
| `query` | String | `"iphone"` | Optional search keyword (leave empty to browse all listings in the category). |
| `minPrice` | Integer | `null` | Minimum price filter. |
| `maxPrice` | Integer | `null` | Maximum price filter. |
| `postal` | String | `""` | ZIP or postal code for localized searches. |
| `searchDistance` | Integer | `null` | Search radius from the postal code (`0` to `500`). |
| `hasImageOnly` | Boolean | `false` | Return only listings that include photos. |
| `postedTodayOnly` | Boolean | `false` | Return only listings posted today. |
| `sortBy` | String | `"date"` | Sort order: `date`, `rel`, `dateoldest`, `priceasc`, `pricedsc`. |
| `maxItems` | Integer | `100` | Maximum listings per search target (`1` to `10,000`). |
| `includeDetails` | Boolean | `false` | Visit each listing page for full description, attributes, postal code, and updated timestamp. |
| `maxConcurrency` | Integer | `8` | Concurrent requests for search batches and detail pages (`1` to `20`). |
| `proxyConfiguration` | Object | `{"useApifyProxy": false}` | Optional Apify Proxy configuration (Residential recommended for heavy volume). |

### Sample Output

```json
{
  "postingId": "7938428925",
  "postingUuid": "vyW4Q2852MkEJRsyQc8qf6",
  "url": "https://www.craigslist.org/view/d/san-jose-new-sealed-apple-iphone-air/vyW4Q2852MkEJRsyQc8qf6",
  "title": "🍎 NEW SEALED Apple iPhone Air MagSafe Battery - Genuine Apple 🍎",
  "price": 75,
  "priceText": "$75",
  "currency": "USD",
  "category": "ela",
  "categoryId": 96,
  "area": "sfbay",
  "subarea": "sby",
  "location": "san jose east",
  "neighborhood": "san jose east",
  "postalCode": "95127",
  "latitude": 37.3692,
  "longitude": -121.8208,
  "postedAt": "2026-11-12T08:07:44+00:00",
  "updatedAt": "2026-11-12T00:02:44-0800",
  "images": [
    "https://images.craigslist.org/01717_9mSe072WVIY_0lM0t2_600x450.jpg",
    "https://images.craigslist.org/00101_4KMA3FFrfQ_0CI0t2_600x450.jpg",
    "https://images.craigslist.org/00P0P_b0T6ZADPoP3_0lM0t2_600x450.jpg"
  ],
  "description": "Factory Sealed Genuine Apple iPhone Air MagSafe Battery in original packaging.",
  "attributes": [
    "condition: new",
    "make / manufacturer: Apple"
  ],
  "bedrooms": "",
  "sqft": "",
  "salary": "",
  "company": "",
  "jobTitle": "",
  "autoMiles": "",
  "monthlyPayment": "",
  "sortBy": "date",
  "scrapedAt": "2026-11-12T08:45:41.605166+00:00"
}
```

# Actor input Schema

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

Optional direct Craigslist search URLs (e.g., https://sfbay.craigslist.org/search/sss?query=iphone or https://www.craigslist.org/search/area/newyork?cat=apa). When provided, URLs override areas, category, and query.

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

List of Craigslist city or area slugs to search when searchUrls is empty (e.g., 'sfbay', 'newyork', 'losangeles', 'chicago', 'london', 'toronto').

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

Craigslist category abbreviation: 'sss' (for sale), 'apa' (apartments/housing), 'jjj' (jobs), 'cta' (cars+trucks), 'bbb' (services), 'ggg' (gigs), 'ccc' (community), 'eee' (events), 'rrr' (resumes).

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

Optional search keyword (leave empty to browse all listings in the category).

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

Optional minimum price filter.

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

Optional maximum price filter.

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

Optional ZIP or postal code filter for localized searches.

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

Optional radius distance from the specified postal code.

## `hasImageOnly` (type: `boolean`):

When enabled, return only listings that include images.

## `postedTodayOnly` (type: `boolean`):

When enabled, return only listings posted today.

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

Sort order for Craigslist search results.

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

Maximum number of listings to extract per search target (up to 10,000).

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

When enabled, visits each listing page to extract full description text, attributes, postal code, and updated timestamp.

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

Maximum concurrent requests for search batches and optional detail pages.

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

Apify Proxy configuration. Direct connections work for small runs; enable Apify Proxy (Residential recommended) for heavy volume or detail enrichment.

## Actor input object example

```json
{
  "areas": [
    "sfbay"
  ],
  "category": "sss",
  "query": "iphone",
  "postal": "",
  "hasImageOnly": false,
  "postedTodayOnly": false,
  "sortBy": "date",
  "maxItems": 100,
  "includeDetails": false,
  "maxConcurrency": 8,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "areas": [
        "sfbay"
    ],
    "category": "sss",
    "query": "iphone",
    "postal": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/craigslist-classifieds-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 = {
    "areas": ["sfbay"],
    "category": "sss",
    "query": "iphone",
    "postal": "",
}

# Run the Actor and wait for it to finish
run = client.actor("wyle/craigslist-classifieds-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 '{
  "areas": [
    "sfbay"
  ],
  "category": "sss",
  "query": "iphone",
  "postal": ""
}' |
apify call wyle/craigslist-classifieds-scraper --silent --output-dataset

```

## MCP server setup

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