CleanedWeb

Tutorial · Jobs

Scrape Craigslist job listings by city

Get Craigslist job posts for any city area, searched by keyword, category or employment type: title, employer, compensation, location, posting date and the full description. Watch a market for new openings or collect local pay data.

What you get

Each result is one record. The main fields:

A real record from a run on 26 November 2026, shortened:

{
  "job_title": "Senior Software Engineer, DevOps",
  "employer": "IXL Learning",
  "compensation": "$130,000 to $200,000 + equity + benefits",
  "employment_type": "full-time",
  "location": "san mateo",
  "category": "software",
  "posted": "2026-11-23T15:20:43-0800",
  "description": "IXL Learning, a global edtech leader with personalized learning products used by millions of students worldwide, is expanding our softwar...",
  "url": "https://www.craigslist.org/view/d/san-mateo-senior-software-engineer/vFRedE3ZPZPhrSM1vRnaiW"
}

The API page lists every field with its type.

Try it without code

  1. Open the API page

    Go to the Craigslist Job Listings API in the catalog and check its sample records.

  2. Run it live

    Pick the inputs and click Run live. A live run in the page returns up to 3 records and needs no account; sign up to run more. New accounts get 5,000 free records.

  3. Download the records

    Copy the JSON, or turn it into a spreadsheet with the free JSON to CSV converter.

Run it from code

Create an API key under API keys in the console with the run scope, then send one request. area is the Craigslist site name, such as sfbay, newyork or london. search takes keywords, category a job category code such as sof (software), and is_telecommuting keeps remote jobs.

curl https://api.cleanedweb.com/v1/catalog/public/apis/generated_b581d79d01f0efb6f094c4d7/endpoints/generated_b581d79d01f0efb6f094c4d7_search/run \
  -H "Authorization: Bearer $CLEANEDWEB_API_KEY" \
  -H "Idempotency-Key: craigslist-jobs-$(date +%s)" \
  -H "Content-Type: application/json" \
  -d '{"input":{"area":"sfbay","search":"software"},"max_items":100}'

The same run in Python. A run that takes longer than the request waits answers 202; the loop reads its result with the same idempotency key, so nothing runs twice.

import os, time, uuid, requests

API = "https://api.cleanedweb.com/v1/catalog/public/apis/generated_b581d79d01f0efb6f094c4d7/endpoints/generated_b581d79d01f0efb6f094c4d7_search"
headers = {"Authorization": f"Bearer {os.environ['CLEANEDWEB_API_KEY']}",
           "Idempotency-Key": str(uuid.uuid4())}

r = requests.post(f"{API}/run", headers=headers, timeout=120,
                  json={"input": {"area":"sfbay","search":"software"}, "max_items": 100})
while r.status_code == 202:  # still running: read the result with the same key
    time.sleep(int(r.headers.get("Retry-After", 10)))
    r = requests.get(f"{API}/result", headers=headers, timeout=120)
r.raise_for_status()

for record in r.json()["records"]:
    print(record.get("employer"), record["title"], record.get("compensation"))

Runs are charged per record delivered ($1 per 1,000); a run that returns nothing costs nothing. See Run a catalog API for every option and scheduled runs to run it every day.

Use it from AI assistants and automation tools

Questions

Which cities are covered?

Any Craigslist area: pass its site name as area. The contract lists every accepted value.

Why do some records have fewer fields?

Posts differ: compensation and employer appear only when the post states them. With enrich_records off, records keep only the list fields.

Is it legal to scrape this data?

CleanedWeb reads public pages only, without signing in. Whether you may collect and reuse the data depends on the site's terms and the law where you operate, so check both, and handle any personal data accordingly. CleanedWeb is not affiliated with the site.

What happens when the site changes?

The API is maintained: CleanedWeb checks it and repairs the extraction when the site's pages change, and keeps the fields stable within a major version. See source changes.

More tutorials

All tutorials

Need data from another site?

Browse the catalog of maintained website APIs, or ask for a site it does not cover yet. 5,000 records are free once; after that you pay per record delivered.