curl --request POST \
--url https://api.scrapeunblocker.com/local/yelp \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/local/yelp"
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/local/yelp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape Yelp businesses (search + detail)
Two modes. Search (mode=search): give find_desc (a keyword or category) and find_loc (a city/area) and get the businesses as JSON - name, rating, reviewCount, priceRange, categories, address, neighborhoods, url, businessId, image and isAd. Filter with sort, price (1-4) and open_now, and collect up to max_results across pages. Detail (mode=detail): give a business url and get a rich object - phone, full address, website, hours, attributes, categories, specialties, review highlights, photos and popular dishes.
curl --request POST \
--url https://api.scrapeunblocker.com/local/yelp \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/local/yelp"
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/local/yelp', 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
'search' (find businesses) or 'detail' (one business).
Search keyword or category, e.g. 'coffee' or 'plumbers'.
Location to search, e.g. 'San Francisco, CA' or '94109'.
Detail mode: a Yelp business URL or /biz alias, e.g. 'https://www.yelp.com/biz/gary-danko-san-francisco'.
Search ordering: recommended, rating, review_count, distance.
Price filter 1-4 ($ to $$$$); combine like '1,2'.
Search: only businesses open now.
Search: how many businesses to collect across pages (10 per page).
1 <= x <= 240Search: result offset to start from.
x >= 0Exit-IP country (ISO-2). Defaults to a US exit for Yelp.
Response
JSON with a businesses array (search) or a business object (detail).

