Booking.com property endpoint
https://api.scrapereviews.com/v1/booking/hotels/{hotel_id}1 creditThe Booking.com property endpoint returns a hotel, an apartment or any other property as a unified Entity of type place: name, URL, guest score out of 10 (rating_scale 10), number of reviews, country and description.
Booking.com-only fields are in extra: numeric property id, address and coordinates, star rating, accommodation type, the aspect scores guests give (staff, facilities, cleanliness, comfort, value for money, location...), how many reviews fall in each score band, and how many reviews are written in each language.
A property is identified by its numeric id (537945) or its handle, both returned by the search: the handle is the country code and the page name in its URL, so booking.com/hotel/fr/ibis-budget-paris-porte-de-bercy.html is fr-ibis-budget-paris-porte-de-bercy.
Parameters
Path parameters
| Parameter | Type | Description |
|---|---|---|
| hotel_id | string | Numeric id of the property (537945) or its handle, the country code and page name as in its URL (fr-ibis-budget-paris-porte-de-bercy); both are in the search results |
This endpoint takes no parameters.
Authenticate with your API key in the X-API-Key header or as Authorization: Bearer (see authentication).
Example request
curl "https://api.scrapereviews.com/v1/booking/hotels/fr-ibis-budget-paris-porte-de-bercy" \
-H "X-API-Key: sr_your_api_key"Response
{ "data": Entity, "meta": BaseMeta }{
"data": {
"source": "booking", "type": "place", "id": "537945", "handle": "fr-ibis-budget-paris-porte-de-bercy",
"name": "ibis budget Paris Porte de Bercy", "url": "https://www.booking.com/hotel/fr/ibis-budget-paris-porte-de-bercy.html",
"rating": 7.5, "rating_scale": 10, "review_count": 7658, "country": "FR",
"extra": { "hotel_id": 537945, "city": "Paris", "star_rating": 2,
"sub_scores": [{ "name": "hotel_staff", "label": "Staff", "score": 8.2, "count": 7514 }],
"score_distribution": { "superb": 2417, "good": 3508, "passable": 1097, "poor": 349, "very_poor": 287 },
"review_languages": { "fr": 4106, "en": 1292 } }
},
"meta": { "credits_used": 1, "cache_hit": false }
}Every field is described in the response models. Successful responses also carry the X-Credits-Used header.
Cost
Property details cost 1 credit per call. Answers are cached for 24 hours; a cached answer costs the same and is marked meta.cache_hit = true.
Only successful calls are billed: every error costs 0 credits. You get 30 free calls every month; see pricing for credit packs.
Errors
Errors come with an HTTP status and this JSON body: branch on detail.error, show detail.message to humans.
{
"detail": {
"error": "entity_not_found",
"message": "No Booking.com property found for 'fr-no-such-hotel'"
}
}| HTTP | error | Meaning |
|---|---|---|
| 400 | invalid_parameter | A parameter is invalid: bad domain, stars, language or date, missing query, limit out of range... |
| 401 | missing_api_key | No API key in X-API-Key or Authorization: Bearer. |
| 401 | invalid_api_key | The key does not exist or has been revoked. |
| 402 | insufficient_credits | Your credit balance is 0. |
| 404 | entity_not_found | No location, property, business or product with this id on Tripadvisor, Booking.com, Yelp, G2 or Capterra (the source is named in the message). |
| 429 | rate_limit_exceeded | Too many requests per minute. |
| 429 | insufficient_credits_retry_later | The balance ran out on recent calls and the key is cooling down. |
| 502 | upstream_changed | The source (Trustpilot, App Store or Google Play, named in the message) changed its format and the response could not be read. |
| 503 | upstream_blocked | The source is temporarily blocking requests. |
| 503 | feature_disabled | The endpoint is temporarily switched off by us (detail.feature names it). The call is not billed. |
| 504 | upstream_timeout | The source did not answer in time. |
What to do for each code: error handling.
Use cases
- Track the guest score and the aspect scores of your properties and of the ones around them.
- Enrich a list of hotels with coordinates, stars and review languages.
Related endpoints
- Booking.com reviews GET /v1/booking/hotels/{hotel_id}/reviews: Guest reviews of a property (scores out of 10), with sort, language, score, traveller type and season filters.
- Booking.com search GET /v1/booking/hotels/search: Properties Booking.com shows for a destination or a property name.
ScrapeReviews is an independent service and is not affiliated with or endorsed by Booking.com.