"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

Request:

"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

Parameters:
  • "Location"(required)GeoLocation or other place name
    "Radius"search radius
    "Query"Nonequery terms
    "Phone"Nonephone number
    "SortBy""BestMatch"sorting order ("Distance", "Rating", "BestMatch")
    MaxItems20number of elements to return
    "StartIndex"0index number of first result to return
    "Categories"Nonecategory or list or categories to filter by
    "InterpretEntities"Falsewhether to use Interpreter to find canonical representations of cities, states, etc.
  • Business Details

    Request:

    "BusinessInformation" data about a specific business

    Parameters:
  • "BusinessID"(required)business ID
    "InterpretEntities"Falsewhether to use Interpreter to find canonical representations of cities, states, etc.
  • List categories

    Request:

    "Categories" a list of valid categories

    Parameters:
  • "Query"Nonequery terms
    "Parent"Noneused to filter by parent alias
  • Examples

    Basic Examples  (1)

    Creating a connection to Yelp:

    Search for Peruvian food in San Francisco:

    Get detailed information about a business:

    Search for categories:

    Search places by category: