WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center
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" 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

    Request:

    "BusinessInformation" data about a specific business

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

    Request:

    "Categories" a list of valid categories

    Parameters:
  • "Query" None query terms
    "Parent" None used 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:

    See Also

    ServiceExecute   ServiceConnect   GeoGraphics

    Top [フレーム]

    AltStyle によって変換されたページ (->オリジナル) /