Scraper APICraigslist
craigslist.listing
A posting on Craigslist from its address: title, price, text, the facts listed beside its map, photos, address, map pin, category and when it was posted.
- Id
craigslist.listing- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/craigslist.listing/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
urlrequired | string | The address of the posting's page: https://www.craigslist.org/view/d/<title>/<id>, as craigslist.search returns it, or the older https://<site>.craigslist.org/<…>/<number>.html.Limit: at least 10 characters, at most 1000 characters. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
posting_id | string or null | Craigslist's number for the posting, as its page prints it (post id). |
url | string | The address of the posting's page on craigslist.org. |
title | string | The posting's title. |
price | number or null | The asking price, rent or pay as a number. Null when the page states none. |
price_text | string or null | The price as the page prints it, with its currency sign, e.g. $150, £200. |
currency | string or null | The ISO 4217 code of the price, e.g. USD, GBP, where the page states it or its sign names one (£, €); null for a bare $, which several countries use. |
location | string or null | The place the poster wrote beside the title, e.g. Carol Stream. |
company | string or null | For a job: the employer's name as the posting gives it. |
description | string or null | The posting's text, as plain text with its line breaks. |
attributes | array of object | The facts the page lists beside the map: condition, size, rent period, compensation, employment type and the like. |
label (in attributes[]) | string or null | The fact's name as the page prints it, e.g. condition; null for a fact printed without one, such as 0BR / 1Ba. |
value (in attributes[]) | string | The value as the page prints it, e.g. good, monthly, full-time. |
images | array of string | The addresses of the posting's photos. |
street_address | string or null | The street address, where the poster gave one. |
map_address | string or null | The place written under the map, e.g. 243 23rd St near Bissell. |
locality | string or null | The town or neighbourhood. |
region | string or null | The state, province or region. |
postal_code | string or null | The postal code, where stated. |
country | string or null | The two-letter country code, e.g. US, GB. |
latitude | number or null | The latitude of the posting's map pin, as rounded by Craigslist. |
longitude | number or null | The longitude of the posting's map pin, as rounded by Craigslist. |
bedrooms | integer or null | For housing: the number of bedrooms, where stated. |
bathrooms | number or null | For housing: the number of bathrooms, where stated. |
area | string or null | The Craigslist site the posting is on, e.g. new york. |
subarea | string or null | The part of that site, e.g. queens, where it has parts. |
section | string or null | The part of Craigslist: for sale, housing, jobs, services, gigs, community. |
category | string or null | The posting's category, e.g. bicycles - by owner. |
posted_at | string (date-time) or null | When the posting was first put up, with the posting's own time zone offset. |
updated_at | string (date-time) or null | When the poster last changed it, where the page says so. |
fetched_at | string (date-time) | When the page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/craigslist.listing/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.craigslist.org/view/d/carol-stream-local-truck-driver-cdl/cRuaoWodm15NLnZureb7WG"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("craigslist.listing", {
"url": "https://www.craigslist.org/view/d/carol-stream-local-truck-driver-cdl/cRuaoWodm15NLnZureb7WG",
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("craigslist.listing", {
url: "https://www.craigslist.org/view/d/carol-stream-local-truck-driver-cdl/cRuaoWodm15NLnZureb7WG",
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "craigslist.listing", map[string]any{"url": "https://www.craigslist.org/view/d/carol-stream-local-truck-driver-cdl/cRuaoWodm15NLnZureb7WG"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("craigslist.listing", Map.of("url", "https://www.craigslist.org/view/d/carol-stream-local-truck-driver-cdl/cRuaoWodm15NLnZureb7WG"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run craigslist.listing --input url=https://www.craigslist.org/view/d/carol-stream-local-truck-driver-cdl/cRuaoWodm15NLnZureb7WGInstall it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"url": "https://www.craigslist.org/view/d/carol-stream-local-truck-driver-cdl/cRuaoWodm15NLnZureb7WG"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "craigslist.listing",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"url": "https://www.craigslist.org/view/d/carol-stream-local-truck-driver-cdl/cRuaoWodm15NLnZureb7WG"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"posting_id": "8003183523",
"url": "https://www.craigslist.org/view/d/carol-stream-local-truck-driver-cdl/cRuaoWodm15NLnZureb7WG",
"title": "Local Truck Driver CDL A",
"price": null,
"price_text": null,
"currency": null,
"location": "Carol Stream",
"company": "FedEx Contractor",
"description": "We are hiring for a local, evening driving position out of Carol Stream, IL.\nPosition Details:\n-Mon-Friday (weekend work available for extra pay)\n-Hook-and-Drop (no loading or unloading)\n-Short, terminal-to-terminal trips\n-Minimal to no … [truncated]",
"attributes": [
{
"label": "compensation",
"value": "$1,400.00 weekly salary"
},
{
"label": "employment type",
"value": "full-time"
},
{
"label": "experience level",
"value": "mid level"
}
],
"images": [],
"street_address": null,
"map_address": "Gary Ave. near Della Ct.",
"locality": null,
"region": null,
"postal_code": null,
"country": null,
"latitude": 41.895232,
"longitude": -88.128247,
"bedrooms": null,
"bathrooms": null,
"area": "chicago",
"subarea": "west chicagoland",
"section": "jobs",
"category": "transport",
"posted_at": "2026-11-19T10:03:55-06:00",
"updated_at": null,
"fetched_at": "2026-11-19T18:07:39.700624Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
description: 541 characters, the first 236 shown. - Shortened:
attributes: 4 items, the first 3 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Craigslist scrapers are in their own section there.