# Craigslist API & Monitor — New Listings Only (`talowire/craigslist-monitor`) Actor

Craigslist API without code: paste any Craigslist search URL (housing, cars, for sale, jobs, gigs, services) and get clean JSON. Monitoring mode returns only new listings on each run — no duplicates, never billed for empty runs. Works with schedules, webhooks, n8n, Make, Zapier and AI agents (MCP).

- **URL**: https://apify.com/talowire/craigslist-monitor.md
- **Developed by:** [Talowire](https://apify.com/talowire) (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.50 / 1,000 listing delivereds

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 API & Monitor — New Listings Only

A ready-to-use **Craigslist API**: send any Craigslist search URL (apartments, cars & trucks, for sale, jobs, gigs, services…) in any city
and get clean, structured JSON back — no selectors to maintain, no HTML parsing, no proxies to manage.
Turn on monitoring mode and every run returns **only the listings you have never seen before**.

**Why this Actor**

- ✅ **Only new listings** — set a *Monitoring key*: the first run delivers the newest listings and sets a starting point, then every run returns (and bills) only listings posted after it. No backlog, no duplicates. Perfect for hourly or daily alerts.
- ✅ **Never billed for nothing** — an empty run returns 0 rows and costs $0 in listing charges. No placeholder rows, no "NO_RESULTS" items.
- ✅ **Your URL, exactly** — every filter in the URL you paste (price, bedrooms, keywords, sub-area, "has image", distance…) is respected. Invalid URLs fail with a clear message instead of silently scraping another city.
- ✅ **Fast and light** — uses the same data feed as the Craigslist website: ~1 request per 360 listings, no browser. A monitoring run with nothing new takes 1 request.
- ✅ **Real data** — title, price, location, coordinates, bedrooms/sqft, odometer, salary/company for jobs, all images (real URLs), posting date. Optional full details: description, attributes, street address, original post date.
- ✅ **Stops cleanly at your budget** — respects the *maximum cost per run* you set, and finishes as SUCCEEDED.

### How to use it

#### 1. One-off scrape

```json
{ "searchUrls": ["https://sfbay.craigslist.org/search/apa?min_price=2000&max_price=3000"], "maxItems": 500 }
```

#### 2. Monitoring (recommended)

```json
{
  "searchUrls": ["https://newyork.craigslist.org/search/cta?query=toyota&max_auto_miles=80000"],
  "stateKey": "nyc-toyotas",
  "maxItems": 200
}
```

Then create a **Schedule** (e.g. every hour) in Apify Console. Each run only delivers what's new since the previous run.
Connect a webhook, Slack, e-mail, Google Sheets, Make, Zapier or n8n integration to get alerts.

#### 3. Without URLs

```json
{ "cities": ["chicago", "sfbay/sfc"], "categories": ["sss"], "query": "road bike", "maxPrice": 800, "postedWithinHours": 24 }
```

### Use it as a Craigslist API

Every Apify Actor is an HTTP API. One call runs the search and returns the listings as JSON
(replace `YOUR_APIFY_TOKEN` with your token from Console → Settings → API & Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/talowire~craigslist-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchUrls": ["https://sfbay.craigslist.org/search/apa?min_price=2000&max_price=3000"], "maxItems": 100}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("talowire/craigslist-monitor").call(run_input={
    "searchUrls": ["https://newyork.craigslist.org/search/cta?query=toyota"],
    "stateKey": "nyc-toyotas",          # only new listings on every call
    "maxItems": 200,
})
for listing in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(listing["price"], listing["title"], listing["url"])
```

JavaScript/TypeScript works the same way with `apify-client` from npm.

### New-listing alerts without code (n8n, Make, Zapier)

1. Create a **Task** of this Actor with your search URL and a *Monitoring key*.
2. Add a **Schedule** (e.g. every 30 minutes).
3. In n8n, Make or Zapier, use the Apify trigger *"Watch task runs"* (or a webhook on *Run succeeded*), then *"Get dataset items"*.
4. Send each new listing to Slack, Discord, Telegram, e-mail or Google Sheets.

Because the Actor only returns listings you have never received, you get one alert per new listing — no duplicates to filter on your side.

### Use it from AI agents (MCP)

The Actor is available through the [Apify MCP server](https://mcp.apify.com), so Claude, Cursor, VS Code and other MCP clients
can search Craigslist for you ("find 2-bedroom apartments under $3,000 in Oakland posted today"). Add it to your MCP configuration
by including `talowire/craigslist-monitor` in the Actors list.

### Input

| Field | Description |
|---|---|
| `searchUrls` | Search URLs copied from Craigslist. All filters are kept. |
| `cities` / `categories` / `query` / `minPrice` / `maxPrice` / `hasPic` | Alternative to URLs. City = subdomain (`sfbay`, `newyork`, `losangeles`…), optionally `city/subarea` (`sfbay/sfc`). Category = 3-letter code (`apa`, `cta`, `sss`, `jjj`, `ggg`, `bbb`, `hhh`…). |
| `postedWithinHours` | Only listings posted in the last N hours. |
| `stateKey` | Monitoring key. Same key on every run → only new listings. |
| `stateTtlDays` | How long delivered listings are remembered (default 30). |
| `includeDetails` | Open each (new) listing for description, attributes, address, original post date. |
| `maxItems` | Hard cap of listings per run (default 500). |
| `proxyConfiguration` | Optional. Not needed for normal use. |

### Output

```json
{
  "id": "7998579105",
  "url": "https://www.craigslist.org/view/d/hayward-dry-sauna-gated-community/gawRGmfgo22wKejrh7TXik",
  "title": "Dry sauna, Gated community, Flexible lease terms",
  "price": 2489,
  "priceText": "$2,489",
  "currency": "USD",
  "postedAt": "2026-11-20T22:05:41+00:00",
  "city": "sfbay",
  "subarea": "eby",
  "location": "hayward / castro valley",
  "latitude": 37.6374,
  "longitude": -122.067,
  "category": "apa",
  "categoryName": "apartments / housing for rent",
  "bedrooms": 1,
  "sqft": 717,
  "images": ["https://images.craigslist.org/00I0I_bVFnw1FSJKi_0wg0jm_600x450.jpg"],
  "isNew": true,
  "description": "605 Orchard Avenue, Hayward, CA 94544 …",
  "attributes": { "…": "…" },
  "address": "605 Orchard Ave, Hayward, CA 94544",
  "firstPostedAt": "2026-11-10T14:05:41-08:00"
}
```

Jobs also include `company`, `salary`, `jobTitle`; vehicles include `odometer`. `description`, `attributes`, `tags`, `address`, `firstPostedAt`, `updatedAt` are added with *Include full details*.

### Pricing

Pay only for listings delivered:

| Event | Price |
|---|---|
| Listing | $1.50 / 1,000 |
| Listing with full details | $2.00 / 1,000 |
| Run start (Apify standard) | $0.00005 per run — $0.05 per 1,000 runs |

A monitoring run with nothing new costs $0.00005 — checking every 30 minutes for a month is about $0.07. You never pay for empty rows.

### FAQ

**Why not a generic scraping API?** Generic scraping APIs give you raw HTML of one page per request: you still write and maintain
selectors, handle pagination beyond the first ~360 results, store what you have already seen and remove duplicates.
This Actor does all of that and returns ready-to-use listings — you pay per listing delivered, not per request or per retry.

**How many results per search?** Up to 10,000 per search URL, which is the most the Craigslist website itself shows. For bigger areas, split by sub-area or price range.

**Will I get the same listing twice?** Not with a *Monitoring key*. Without a key, every run is an independent scrape.

**What does the first monitoring run return?** The newest listings of your search, up to *Max listings per run*. It also sets the starting point: from then on, each run returns only listings posted after the previous run (listings that Craigslist indexes a little late are still caught). Older listings are never delivered later, so you are never billed for a backlog. To start over, use a new *Monitoring key*.

**Reposted listings?** A repost gets a new Craigslist id and is treated as new. `duplicateGroup` groups listings that Craigslist identifies as duplicates.

**Is it legal?** The Actor only collects publicly visible listing data at a moderate rate. You are responsible for complying with Craigslist's terms and applicable laws in how you use the data. Do not use it to contact people in bulk.

**Something broke?** Open an issue: we monitor the Actor daily and answer within 24 h.

# Actor input Schema

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

Craigslist search URLs copied from your browser (all filters in the URL are respected), e.g. https://sfbay.craigslist.org/search/apa?min_price=2000\&max_price=3000

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

Craigslist city subdomains such as sfbay, newyork, chicago, losangeles. Use city/subarea (e.g. sfbay/sfc) to narrow down. Combined with categories and filters below.

## `categories` (type: `array`):

3-letter Craigslist category codes: apa (apartments for rent), cta (cars+trucks), sss (all for sale), jjj (jobs), ggg (gigs), bbb (services), hhh (all housing)…

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

Search keywords (used with Cities).

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

Used with Cities.

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

Used with Cities.

## `hasPic` (type: `boolean`):

Used with Cities.

## `postedWithinHours` (type: `integer`):

Only return listings posted in the last N hours.

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

Set any name (e.g. 'sf-apartments'). Every run with the same key returns and bills ONLY listings never delivered before. Leave empty for a one-off scrape.

## `stateTtlDays` (type: `integer`):

How long a delivered listing is remembered in monitoring mode.

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

Open each new listing to add description, attributes, street address and exact dates (slower, priced per detailed listing).

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

Hard cap on listings returned (and billed) per run.

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

Not needed in most cases. Enable Apify Proxy if you run very large or very frequent searches.

## Actor input object example

```json
{
  "searchUrls": [
    "https://sfbay.craigslist.org/search/apa?min_price=2000&max_price=3000"
  ],
  "categories": [
    "sss"
  ],
  "hasPic": false,
  "stateTtlDays": 30,
  "includeDetails": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Delivered records (only new ones in monitoring mode)

# 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 = {
    "searchUrls": [
        "https://sfbay.craigslist.org/search/apa?min_price=2000&max_price=3000"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("talowire/craigslist-monitor").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 = {
    "searchUrls": ["https://sfbay.craigslist.org/search/apa?min_price=2000&max_price=3000"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("talowire/craigslist-monitor").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 '{
  "searchUrls": [
    "https://sfbay.craigslist.org/search/apa?min_price=2000&max_price=3000"
  ],
  "maxItems": 50
}' |
apify call talowire/craigslist-monitor --silent --output-dataset

```

## MCP server setup

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

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/tdTUQ0CFqgqTHlrGm/builds/aVHGBijy1CnB4plHi/openapi.json
