"Yelp" (Service Connection)
Connect to the Yelp API using the Wolfram Language to search for restaurant and other business information.
Connecting & Authenticating
ServiceConnect["Yelp"] creates a connection to the Yelp API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.
Requests
ServiceExecute["Yelp","request",params] sends a request to the Yelp API, using parameters params. The following gives possible requests.
Search Businesses
"BusinessList" — a List of businesses filtered by location, phone number, or query term
"BusinessDataset" — a Dataset of businesses filtered by location, phone number, or query term
"Location" | (required) | GeoLocation or other place name | |
"Radius" | search radius | ||
"Query" | None | query terms | |
"Phone" | None | phone number | |
"SortBy" | "BestMatch" | sorting order ("Distance", "Rating", "BestMatch") | |
MaxItems | 20 | number of elements to return | |
"StartIndex" | 0 | index number of first result to return | |
"Categories" | None | category or list or categories to filter by | |
"InterpretEntities" | False | whether to use Interpreter to find canonical representations of cities, states, etc. |
Business Details
"BusinessInformation" — data about a specific business
"BusinessID" | (required) | business ID | |
"InterpretEntities" | False | whether to use Interpreter to find canonical representations of cities, states, etc. |
List categories
"Categories" — a list of valid categories
"Query" | None | query terms | |
"Parent" | None | used to filter by parent alias |