/yelp/businesses/search
curl --request POST \
--url https://api.anysite.io/api/yelp/businesses/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"location": "<string>",
"count": 120,
"timeout": 300,
"term": "<string>",
"category": "<string>",
"sort_by": "recommended",
"price": [],
"features": [],
"dietary_restrictions": [],
"open_now": false,
"open_time": "<string>",
"include_ads": false
}
'import requests
url = "https://api.anysite.io/api/yelp/businesses/search"
payload = {
"location": "<string>",
"count": 120,
"timeout": 300,
"term": "<string>",
"category": "<string>",
"sort_by": "recommended",
"price": [],
"features": [],
"dietary_restrictions": [],
"open_now": False,
"open_time": "<string>",
"include_ads": False
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
location: '<string>',
count: 120,
timeout: 300,
term: '<string>',
category: '<string>',
sort_by: 'recommended',
price: [],
features: [],
dietary_restrictions: [],
open_now: false,
open_time: '<string>',
include_ads: false
})
};
fetch('https://api.anysite.io/api/yelp/businesses/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/yelp/businesses/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'location' => '<string>',
'count' => 120,
'timeout' => 300,
'term' => '<string>',
'category' => '<string>',
'sort_by' => 'recommended',
'price' => [
],
'features' => [
],
'dietary_restrictions' => [
],
'open_now' => false,
'open_time' => '<string>',
'include_ads' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/yelp/businesses/search"
payload := strings.NewReader("{\n \"location\": \"<string>\",\n \"count\": 120,\n \"timeout\": 300,\n \"term\": \"<string>\",\n \"category\": \"<string>\",\n \"sort_by\": \"recommended\",\n \"price\": [],\n \"features\": [],\n \"dietary_restrictions\": [],\n \"open_now\": false,\n \"open_time\": \"<string>\",\n \"include_ads\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/yelp/businesses/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"location\": \"<string>\",\n \"count\": 120,\n \"timeout\": 300,\n \"term\": \"<string>\",\n \"category\": \"<string>\",\n \"sort_by\": \"recommended\",\n \"price\": [],\n \"features\": [],\n \"dietary_restrictions\": [],\n \"open_now\": false,\n \"open_time\": \"<string>\",\n \"include_ads\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/yelp/businesses/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"location\": \"<string>\",\n \"count\": 120,\n \"timeout\": 300,\n \"term\": \"<string>\",\n \"category\": \"<string>\",\n \"sort_by\": \"recommended\",\n \"price\": [],\n \"features\": [],\n \"dietary_restrictions\": [],\n \"open_now\": false,\n \"open_time\": \"<string>\",\n \"include_ads\": false\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "YelpSearchBusiness",
"alias": "<string>",
"url": "<string>",
"name": "<string>",
"image": "<string>",
"images": [],
"rating": 123,
"review_count": 123,
"price_range": "<string>",
"phone": "<string>",
"address": {
"@type": "YelpBusinessAddress",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"region_code": "<string>",
"postal_code": "<string>",
"country_code": "<string>"
},
"latitude": 123,
"longitude": 123,
"categories": [],
"highlights": [],
"licenses": [],
"review_snippet": "<string>",
"ranking": 123,
"is_ad": false
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/yelp
/yelp/businesses/search
Search Yelp businesses by location and term or category, with the full on-site filter surface: price level, business features, dietary restrictions, open now or open at a given time, search radius and result ordering. Returns businesses with name, rating, review count, price range, phone, address, coordinates, categories, business highlights, verified trade licences and a matching review snippet.
Price: 20 credits per 10 results
POST
/
api
/
yelp
/
businesses
/
search
/yelp/businesses/search
curl --request POST \
--url https://api.anysite.io/api/yelp/businesses/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"location": "<string>",
"count": 120,
"timeout": 300,
"term": "<string>",
"category": "<string>",
"sort_by": "recommended",
"price": [],
"features": [],
"dietary_restrictions": [],
"open_now": false,
"open_time": "<string>",
"include_ads": false
}
'import requests
url = "https://api.anysite.io/api/yelp/businesses/search"
payload = {
"location": "<string>",
"count": 120,
"timeout": 300,
"term": "<string>",
"category": "<string>",
"sort_by": "recommended",
"price": [],
"features": [],
"dietary_restrictions": [],
"open_now": False,
"open_time": "<string>",
"include_ads": False
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
location: '<string>',
count: 120,
timeout: 300,
term: '<string>',
category: '<string>',
sort_by: 'recommended',
price: [],
features: [],
dietary_restrictions: [],
open_now: false,
open_time: '<string>',
include_ads: false
})
};
fetch('https://api.anysite.io/api/yelp/businesses/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/yelp/businesses/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'location' => '<string>',
'count' => 120,
'timeout' => 300,
'term' => '<string>',
'category' => '<string>',
'sort_by' => 'recommended',
'price' => [
],
'features' => [
],
'dietary_restrictions' => [
],
'open_now' => false,
'open_time' => '<string>',
'include_ads' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/yelp/businesses/search"
payload := strings.NewReader("{\n \"location\": \"<string>\",\n \"count\": 120,\n \"timeout\": 300,\n \"term\": \"<string>\",\n \"category\": \"<string>\",\n \"sort_by\": \"recommended\",\n \"price\": [],\n \"features\": [],\n \"dietary_restrictions\": [],\n \"open_now\": false,\n \"open_time\": \"<string>\",\n \"include_ads\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/yelp/businesses/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"location\": \"<string>\",\n \"count\": 120,\n \"timeout\": 300,\n \"term\": \"<string>\",\n \"category\": \"<string>\",\n \"sort_by\": \"recommended\",\n \"price\": [],\n \"features\": [],\n \"dietary_restrictions\": [],\n \"open_now\": false,\n \"open_time\": \"<string>\",\n \"include_ads\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/yelp/businesses/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"location\": \"<string>\",\n \"count\": 120,\n \"timeout\": 300,\n \"term\": \"<string>\",\n \"category\": \"<string>\",\n \"sort_by\": \"recommended\",\n \"price\": [],\n \"features\": [],\n \"dietary_restrictions\": [],\n \"open_now\": false,\n \"open_time\": \"<string>\",\n \"include_ads\": false\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "YelpSearchBusiness",
"alias": "<string>",
"url": "<string>",
"name": "<string>",
"image": "<string>",
"images": [],
"rating": 123,
"review_count": 123,
"price_range": "<string>",
"phone": "<string>",
"address": {
"@type": "YelpBusinessAddress",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"region_code": "<string>",
"postal_code": "<string>",
"country_code": "<string>"
},
"latitude": 123,
"longitude": 123,
"categories": [],
"highlights": [],
"licenses": [],
"review_snippet": "<string>",
"ranking": 123,
"is_ad": false
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Minimum string length:
1Required range:
1 <= x <= 240Required range:
20 <= x <= 1500Available options:
recommended, rating, review_count Available options:
1, 2, 3, 4 Available options:
accepts_credit_cards, accepts_apple_pay, accepts_cryptocurrency, open_to_all, by_appointment_only, dogs_allowed, good_for_kids, good_for_groups, gender_neutral_restrooms, wheelchair_accessible, outdoor_seating, open_24_hours, hot_and_new, happy_hour, has_tv, coat_check, waiter_service, takes_reservations, online_reservations, online_waitlist, online_booking, spa_booking, service_booking, request_a_quote, offers_delivery, offers_takeout, free_delivery, cheap_delivery, fast_delivery, flower_delivery, offers_military_discount, full_bar, beer_and_wine, good_for_breakfast, good_for_brunch, good_for_lunch, good_for_dinner, good_for_dessert, good_for_late_night, garage_parking, lot_parking, street_parking, valet_parking, validated_parking, music_dj, music_jukebox, music_karaoke, music_live, smoking_no, smoking_outdoor, smoking_yes, free_wifi, paid_wifi, liked_by_twenties, liked_by_thirties, liked_by_forties, liked_by_vegetarians Available options:
halal, vegan, vegetarian Pattern:
^([01]\d|2[0-3]):[0-5]\d$Available options:
four_blocks, one_mile, two_miles, five_miles, birds_eye Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes