The Yelp Search API allows users to get results from the Yelp search page. This API enables searching for businesses by keyword and location.

Get Your API Key

Sign in at hasdata.com, go to your account settings, and copy your API key. All requests must include your key in the x-api-key header.

Make Your First Request

curl --request GET \
  --url 'https://api.hasdata.com/scrape/yelp/search?keyword=McDonald'\''s&location=New%20York%2C%20NY' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <your-api-key>'

API Parameters

ParameterDefault ValueRequiredDescription
keywordMcDonald’sYesThe search term for which to get the search results.
locationNew York, NYYesThe location where to search for businesses with the given keyword.
domain-NoYelp domain to use. Default is www.yelp.com.
start-NoResult offset for pagination (e.g., 0 for the first page, 10 for the 2nd page, etc.).