/yelp/businesses/reviews
curl --request POST \
--url https://api.anysite.io/api/yelp/businesses/reviews \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"business": "<string>",
"count": 2,
"timeout": 300,
"sort_by": "relevance",
"ratings": [],
"query": "<string>",
"language": "en"
}
'import requests
url = "https://api.anysite.io/api/yelp/businesses/reviews"
payload = {
"business": "<string>",
"count": 2,
"timeout": 300,
"sort_by": "relevance",
"ratings": [],
"query": "<string>",
"language": "en"
}
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({
business: '<string>',
count: 2,
timeout: 300,
sort_by: 'relevance',
ratings: [],
query: '<string>',
language: 'en'
})
};
fetch('https://api.anysite.io/api/yelp/businesses/reviews', 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/reviews",
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([
'business' => '<string>',
'count' => 2,
'timeout' => 300,
'sort_by' => 'relevance',
'ratings' => [
],
'query' => '<string>',
'language' => 'en'
]),
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/reviews"
payload := strings.NewReader("{\n \"business\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort_by\": \"relevance\",\n \"ratings\": [],\n \"query\": \"<string>\",\n \"language\": \"en\"\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/reviews")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"business\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort_by\": \"relevance\",\n \"ratings\": [],\n \"query\": \"<string>\",\n \"language\": \"en\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/yelp/businesses/reviews")
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 \"business\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort_by\": \"relevance\",\n \"ratings\": [],\n \"query\": \"<string>\",\n \"language\": \"en\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "YelpReview",
"text": "<string>",
"language": "<string>",
"rating": 123,
"created_at": 123,
"author": {
"id": "<string>",
"@type": "YelpReviewAuthor",
"name": "<string>",
"location": "<string>",
"image": "<string>",
"review_count": 123,
"friend_count": 123,
"photo_count": 123,
"elite_year": "<string>",
"is_elite_all_star": true
},
"photos": [],
"helpful_count": 123,
"thanks_count": 123,
"love_count": 123,
"oh_no_count": 123,
"check_in_count": 123,
"is_first_review": true,
"expert_recognition": "<string>",
"reply": {
"@type": "YelpReviewReply",
"text": "<string>",
"author_name": "<string>",
"author_role": "<string>",
"created_at": 123
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/yelp
/yelp/businesses/reviews
Get Yelp reviews for a business by alias, business id or business page URL, ordered by relevance, date or rating and optionally narrowed to given star ratings or a text query. Returns review text, rating, timestamp, reviewer profile, attached photos, reaction counts and the business owner reply.
Price: 1 credit
⚠️ Common errors: 412: Business not found (well-formed identifier but no such Yelp business)
POST
/
api
/
yelp
/
businesses
/
reviews
/yelp/businesses/reviews
curl --request POST \
--url https://api.anysite.io/api/yelp/businesses/reviews \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"business": "<string>",
"count": 2,
"timeout": 300,
"sort_by": "relevance",
"ratings": [],
"query": "<string>",
"language": "en"
}
'import requests
url = "https://api.anysite.io/api/yelp/businesses/reviews"
payload = {
"business": "<string>",
"count": 2,
"timeout": 300,
"sort_by": "relevance",
"ratings": [],
"query": "<string>",
"language": "en"
}
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({
business: '<string>',
count: 2,
timeout: 300,
sort_by: 'relevance',
ratings: [],
query: '<string>',
language: 'en'
})
};
fetch('https://api.anysite.io/api/yelp/businesses/reviews', 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/reviews",
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([
'business' => '<string>',
'count' => 2,
'timeout' => 300,
'sort_by' => 'relevance',
'ratings' => [
],
'query' => '<string>',
'language' => 'en'
]),
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/reviews"
payload := strings.NewReader("{\n \"business\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort_by\": \"relevance\",\n \"ratings\": [],\n \"query\": \"<string>\",\n \"language\": \"en\"\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/reviews")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"business\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort_by\": \"relevance\",\n \"ratings\": [],\n \"query\": \"<string>\",\n \"language\": \"en\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/yelp/businesses/reviews")
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 \"business\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort_by\": \"relevance\",\n \"ratings\": [],\n \"query\": \"<string>\",\n \"language\": \"en\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "YelpReview",
"text": "<string>",
"language": "<string>",
"rating": 123,
"created_at": 123,
"author": {
"id": "<string>",
"@type": "YelpReviewAuthor",
"name": "<string>",
"location": "<string>",
"image": "<string>",
"review_count": 123,
"friend_count": 123,
"photo_count": 123,
"elite_year": "<string>",
"is_elite_all_star": true
},
"photos": [],
"helpful_count": 123,
"thanks_count": 123,
"love_count": 123,
"oh_no_count": 123,
"check_in_count": 123,
"is_first_review": true,
"expert_recognition": "<string>",
"reply": {
"@type": "YelpReviewReply",
"text": "<string>",
"author_name": "<string>",
"author_role": "<string>",
"created_at": 123
}
}
]{
"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:
x >= 1Required range:
20 <= x <= 1500Available options:
relevance, newest, oldest, highest_rated, lowest_rated, elites Required range:
1 <= x <= 5Required string length:
2 - 5Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I