# Craigslist Search Pro (`red.cars/craigslist-search-pro`) Actor

Search any Craigslist city for listings with title, price, location and link, then open each post for the full description, attributes, photos and posted date. Multi-city runs in one input, deduped into one dataset.

- **URL**: https://apify.com/red.cars/craigslist-search-pro.md
- **Developed by:** [AutomateLab](https://apify.com/red.cars) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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

## Craigslist Search Pro

Search any Craigslist city for listings with titles, prices, locations and links, then open each post to pull the full description, attributes, photos and posted date. Run one city or a list of cities in a single run.

### Why this over the alternatives

- [solidcode/craigslist-scraper](https://apify.com/solidcode/craigslist-scraper): the category leader, single-site searches, listing rows only.
- [ivanvs/craigslist-scraper-pay-per-result](https://apify.com/ivanvs/craigslist-scraper-pay-per-result): pay-per-result at $8.00-15.00 per 1,000 results.
- This actor adds multi-city runs in one input, full post details (description, attributes, images, posted date), and prices in line with the cheapest cluster.

### Input

| Field | Type | Description |
| --- | --- | --- |
| query | string | Keywords to search, e.g. `iphone`, `skid steer`. |
| sites | string | Comma-separated Craigslist city codes, e.g. `newyork, chicago`. |
| category | select | `sss` for sale, `ela` electronics, `mob` phones, `ehh` household, `cta` cars, `rto` rentals, `reb` real estate for sale, `jjj` jobs, `gig` gigs, `egr` heavy equipment, `fdo` free. |
| priceMin / priceMax | integer | Optional price window. |
| sortBy | select | `date`, `relevance`, `priceasc`, `pricedesc`. |
| includeDetails | boolean | Open each listing for description, attributes, images and posted date. Default true. |
| maxResults | integer | Cap across all sites, up to 5,000. |

### Output

Each item carries:

| Field | Description |
| --- | --- |
| title | Listing title. |
| price | Asking price as shown. |
| location | Neighborhood or city label. |
| url | Link to the live post. |
| site, category | Source site code and category. |
| postedAt | Post date when details are on. |
| description | Full post body when details are on. |
| attributes | Label/value pairs (condition, make, model, size) when present. |
| images | Up to 10 photo URLs when present. |
| geo | Latitude and longitude when the post exposes it. |

### Use cases

- Flipper and reseller deal feeds: watch for-sale prices across several cities at once.
- Real-estate scouting: rentals and sale listings with full descriptions and coordinates.
- Parts and equipment sourcing: heavy equipment, vehicles, electronics with attributes.
- Lead-gen sweeps: gigs and jobs boards by city.

### Pricing

Pay per event: $0.005 per run plus $0.0015 per listing ($1.50 per 1,000). A 500-listing multi-city run costs about $0.76.

### FAQ

**How many cities can I run at once?** Any number as a comma-separated list; each city runs its own search and results merge, deduped, in one dataset.

**Do I get the full post text?** Yes with `includeDetails` on: description, attributes, photos, posted date.

**Can I filter by price?** Yes, `priceMin` and `priceMax` pass straight to Craigslist search.

**Which categories are supported?** The eleven in the category list: for sale, electronics, phones, household, cars, rentals, real estate for sale, jobs, gigs, heavy equipment, and free stuff.

# Actor input Schema

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

Keywords to search for, e.g. iphone, skid steer, 2 bedroom.

## `sites` (type: `string`):

Comma-separated Craigslist site codes (city subdomains), e.g. newyork, losangeles, chicago. One search runs per site.

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

Craigslist category to search.

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

Optional minimum price filter.

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

Optional maximum price filter.

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

Sort order of results.

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

Open each listing to add full description, attributes, images and posted date.

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

Maximum number of listings to return across all sites.

## Actor input object example

```json
{
  "query": "iphone",
  "sites": "newyork",
  "category": "sss",
  "sortBy": "date",
  "includeDetails": true,
  "maxResults": 10
}
```

# Actor output Schema

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

URL to the dataset with the listings.

# 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": "iphone",
    "sites": "newyork",
    "category": "sss",
    "sortBy": "date",
    "includeDetails": true,
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("red.cars/craigslist-search-pro").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": "iphone",
    "sites": "newyork",
    "category": "sss",
    "sortBy": "date",
    "includeDetails": True,
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("red.cars/craigslist-search-pro").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "query": "iphone",
  "sites": "newyork",
  "category": "sss",
  "sortBy": "date",
  "includeDetails": true,
  "maxResults": 10
}' |
apify call red.cars/craigslist-search-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,red.cars/craigslist-search-pro"
        }
    }
}
```

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/i6ClTAQFGKbpTDU2i/builds/KXvRZVAVRHoPKliPO/openapi.json
