Scrape Craigslist search
curl --request POST \
--url https://api.scrapeunblocker.com/marketplace/craigslist-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/marketplace/craigslist-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/marketplace/craigslist-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Plugins
Scrape Craigslist search
Searches Craigslist for query in a given metro (site) and section (category) and returns the listings as JSON: pid, title, url, price, currency, location and image. Filter with min_price/max_price and cap the count with max_results. Results are merged from the gallery DOM and the embedded JSON-LD ItemList.
Scrape Craigslist search
curl --request POST \
--url https://api.scrapeunblocker.com/marketplace/craigslist-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/marketplace/craigslist-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/marketplace/craigslist-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
What to search, e.g. 'bicycle' or 'sofa'.
Metro subdomain, e.g. 'newyork', 'sfbay', 'chicago'.
Craigslist code: sss=for sale, cta=cars+trucks, apa=housing, jjj=jobs.
Lowest price to include (USD).
Required range:
x >= 0Highest price to include (USD).
Required range:
x >= 0How many listings to return (1-500).
Required range:
1 <= x <= 500Exit-IP country (ISO-2). Defaults to a US exit.
Response
JSON with a listings array.

