Craigslist craigslist Search API
Scrape the newest Craigslist listings near a US ZIP code. Call the Craigslist craigslist Search API for JSON. From 1 credit per call.
Request
zipCode is required.
Response
If successful, the response body contains the standard envelope.data.results[] contains the listings, newest first, each with its title, price, location and link.
The following example is a real response, truncated: each list shows one item and long strings are cut.
Optional parameters
Billing
A successful request consumes 1 credit per 10 listings, up to 36 credits. Requests that fail, or that return no items, are not billed. Setlimit to cap the number of items returned and billed.
Pagination
This method is not paginated. A single request returns the complete result.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Cut every text value in the response to this many characters. A value that was cut ends with …, and a page whose text was cut has isTruncated set to true. A screenshot is never cut. Leave it out to get the full text.
x >= 1Body
US ZIP code to search around (e.g., "94103")
^\d{5}$Search words (e.g., "road bike"). Leave out to list the newest in the category
1 - 200Miles around the ZIP code, 25 by default
1 <= x <= 250Which listings to search, forSale by default
forSale, carsAndTrucks, apartments, housing, jobs, gigs, services, free Lowest price in US dollars (e.g., 50)
0 <= x <= 100000000Highest price in US dollars (e.g., 500)
0 <= x <= 100000000Return at most this many listings. You pay 1 credit per 10 returned.
1 <= x <= 360