Description Usage Arguments Value Examples
search businesse on yelp
1 2 |
api_key |
string |
location |
string. Required if either latitude or longitude is not provided. Specifies the combination of "address, neighborhood, city, state or zip, optional country" to be used when searching for businesses |
latitude |
decimal. Required if location is not provided. Latitude of the location you want to search nearby |
longitude |
decimal. Required if location is not provided. Longitude of the location you want to search nearby |
term |
string. Optional search term (e.g. "food", "restaurants"). If term isn’t included we search everything. The term keyword also accepts business names such as "Starbucks" |
... |
optional paramters More |
List with the following elements:
total: Total number of business Yelp finds based on the search criteria. Sometimes, the value may exceed 1000. In such case, you still can only get up to 1000 businesses. total may be limited to 40 for non-default sorts such as "distance" and "review_count"
businesses: List of business Yelp finds based on the search criteria
region: Suggested area in a map to display results in
1 2 3 4 5 | # search businesses with keyword 'food' in New York
key <- "######"
business_search(key,
location = 'New York',
term = "chinese")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.