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:
job_titleThe job title.employerThe employer, when the post names one.compensationPay as written in the post.employment_typefull-time, part-time, contract and so on.locationNeighborhood or town.postedWhen it was posted.descriptionThe post's text.
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
-
Open the API page
Go to the Craigslist Job Listings API in the catalog and check its sample records.
-
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.
-
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
- Claude Connect CleanedWeb and ask: “Find software jobs posted on Craigslist in the SF Bay Area this week and list the ones that state a salary.”
- ChatGPT Add the connector and ask the same question in a chat.
- n8n Run the API from the verified CleanedWeb node, one item per record, on a schedule.
- Agent prompts Ready-made prompts for this API, such as an export to a spreadsheet.
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.
Related
- Y Combinator startup jobs Jobs at YC startups by city.
- Craigslist APIs Cars, gigs and items for sale.
More tutorials
-
Y Combinator startup jobs
Jobs at YC startups with batch, salary and equity ranges.
-
Scrape Steam reviews
Every review of a game, with recommendation, votes and playtime.
-
Track Steam's most played games
Rank, current players and today's peak for the top games.
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.