Yelp
Yelp Business Details API
One Yelp business in full as JSON: rating with the per-star histogram, review count, price band, categories, address and coordinates, phone, website and menu links, hours and holidays, amenities, photos and videos, popular items, health inspections, Q&A, licences and claim status — plus the first page of reviews at no extra cost. Costs 2 credits.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonbusiness_idstringWhich business, 1-500 characters. Accepts the human-readable alias (desnudo-coffee-austin-2), the opaque encid Yelp uses internally, or a yelp.com/biz URL. The Search endpoint returns both business_id and alias on every row. Either this or url is required.
Example: mozarts-coffee-roasters-austin
urlstringA yelp.com/biz URL, 1-1000 characters, as an alternative to business_id. Either this or business_id is required.
Example: https://www.yelp.com/biz/mozarts-coffee-roasters-austin
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
biz = client.yelp.business(business_id="mozarts-coffee-roasters-austin")
d = biz["data"]
print(d["name"], d["rating"], d["rating_distribution"])
print("hidden by Yelp's filter:", d["not_recommended_review_count"])
# The first page of reviews rides along - do NOT call /reviews with page=1
for review in d["reviews"]:
print(review["rating"], review["author"], review["text"][:80])Response