/booking/hotels/reviews
curl --request POST \
--url https://api.anysite.io/api/booking/hotels/reviews \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"hotel": "<string>",
"count": 2,
"timeout": 300,
"sort": "most_relevant",
"text": "<string>",
"review_languages": [],
"topic_ids": [],
"language": "en-us"
}
'import requests
url = "https://api.anysite.io/api/booking/hotels/reviews"
payload = {
"hotel": "<string>",
"count": 2,
"timeout": 300,
"sort": "most_relevant",
"text": "<string>",
"review_languages": [],
"topic_ids": [],
"language": "en-us"
}
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({
hotel: '<string>',
count: 2,
timeout: 300,
sort: 'most_relevant',
text: '<string>',
review_languages: [],
topic_ids: [],
language: 'en-us'
})
};
fetch('https://api.anysite.io/api/booking/hotels/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/booking/hotels/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([
'hotel' => '<string>',
'count' => 2,
'timeout' => 300,
'sort' => 'most_relevant',
'text' => '<string>',
'review_languages' => [
],
'topic_ids' => [
],
'language' => 'en-us'
]),
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/booking/hotels/reviews"
payload := strings.NewReader("{\n \"hotel\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort\": \"most_relevant\",\n \"text\": \"<string>\",\n \"review_languages\": [],\n \"topic_ids\": [],\n \"language\": \"en-us\"\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/booking/hotels/reviews")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hotel\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort\": \"most_relevant\",\n \"text\": \"<string>\",\n \"review_languages\": [],\n \"topic_ids\": [],\n \"language\": \"en-us\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/booking/hotels/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 \"hotel\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort\": \"most_relevant\",\n \"text\": \"<string>\",\n \"review_languages\": [],\n \"topic_ids\": [],\n \"language\": \"en-us\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"hotel_id": 123,
"@type": "BookingHotelReview",
"score": 123,
"review_title": "<string>",
"positive_text": "<string>",
"negative_text": "<string>",
"language": "<string>",
"created_at": 123,
"helpful_vote_count": 123,
"author_name": "<string>",
"author_country": "<string>",
"author_country_code": "<string>",
"author_type": "<string>",
"author_image": "<string>",
"author_review_count": 123,
"author_joined_at": 123,
"traveller_type": "<string>",
"room_id": 123,
"room_name": "<string>",
"checkin_date": "<string>",
"checkout_date": "<string>",
"night_count": 123,
"stay_status": "<string>",
"partner_reply": "<string>",
"photos": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/booking
/booking/hotels/reviews
List guest reviews of a Booking.com property
Price: 5 credits per 25 results
⚠️ Common errors: 412: Property not found, 422: A requested topic id does not exist for this property in the requested language
POST
/
api
/
booking
/
hotels
/
reviews
/booking/hotels/reviews
curl --request POST \
--url https://api.anysite.io/api/booking/hotels/reviews \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"hotel": "<string>",
"count": 2,
"timeout": 300,
"sort": "most_relevant",
"text": "<string>",
"review_languages": [],
"topic_ids": [],
"language": "en-us"
}
'import requests
url = "https://api.anysite.io/api/booking/hotels/reviews"
payload = {
"hotel": "<string>",
"count": 2,
"timeout": 300,
"sort": "most_relevant",
"text": "<string>",
"review_languages": [],
"topic_ids": [],
"language": "en-us"
}
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({
hotel: '<string>',
count: 2,
timeout: 300,
sort: 'most_relevant',
text: '<string>',
review_languages: [],
topic_ids: [],
language: 'en-us'
})
};
fetch('https://api.anysite.io/api/booking/hotels/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/booking/hotels/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([
'hotel' => '<string>',
'count' => 2,
'timeout' => 300,
'sort' => 'most_relevant',
'text' => '<string>',
'review_languages' => [
],
'topic_ids' => [
],
'language' => 'en-us'
]),
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/booking/hotels/reviews"
payload := strings.NewReader("{\n \"hotel\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort\": \"most_relevant\",\n \"text\": \"<string>\",\n \"review_languages\": [],\n \"topic_ids\": [],\n \"language\": \"en-us\"\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/booking/hotels/reviews")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hotel\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort\": \"most_relevant\",\n \"text\": \"<string>\",\n \"review_languages\": [],\n \"topic_ids\": [],\n \"language\": \"en-us\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/booking/hotels/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 \"hotel\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sort\": \"most_relevant\",\n \"text\": \"<string>\",\n \"review_languages\": [],\n \"topic_ids\": [],\n \"language\": \"en-us\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"hotel_id": 123,
"@type": "BookingHotelReview",
"score": 123,
"review_title": "<string>",
"positive_text": "<string>",
"negative_text": "<string>",
"language": "<string>",
"created_at": 123,
"helpful_vote_count": 123,
"author_name": "<string>",
"author_country": "<string>",
"author_country_code": "<string>",
"author_type": "<string>",
"author_image": "<string>",
"author_review_count": 123,
"author_joined_at": 123,
"traveller_type": "<string>",
"room_id": 123,
"room_name": "<string>",
"checkin_date": "<string>",
"checkout_date": "<string>",
"night_count": 123,
"stay_status": "<string>",
"partner_reply": "<string>",
"photos": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Minimum string length:
3Required range:
x >= 1Required range:
20 <= x <= 1500Available options:
most_relevant, newest_first, oldest_first, highest_scores, lowest_scores Available options:
families, couples, groups_of_friends, solo_travellers, business_travellers Available options:
wonderful_9_plus, good_7_to_9, fair_5_to_7, poor_3_to_5, very_poor_1_to_3 Available options:
march_to_may, june_to_august, september_to_november, december_to_february Available options:
ar, bg, ca, cs, da, de, el, en-gb, en-us, es, es-ar, es-mx, et, fi, fr, he, hi, hr, hu, id, is, it, ja, ko, lt, lv, ms, nl, no, pl, pt-br, pt-pt, ro, ru, sk, sl, sr, sv, th, tl, tr, uk, vi, zh-cn, zh-tw Response
Successful Response