Booking.com property endpoint

GEThttps://api.scrapereviews.com/v1/booking/hotels/{hotel_id}1 credit

The 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

ParameterTypeDescription
hotel_idstringNumeric 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

Shape
{ "data": Entity, "meta": BaseMeta }
Example (shortened)
{
  "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.

Example error
{
  "detail": {
    "error": "entity_not_found",
    "message": "No Booking.com property found for 'fr-no-such-hotel'"
  }
}
HTTPerrorMeaning
400invalid_parameterA parameter is invalid: bad domain, stars, language or date, missing query, limit out of range...
401missing_api_keyNo API key in X-API-Key or Authorization: Bearer.
401invalid_api_keyThe key does not exist or has been revoked.
402insufficient_creditsYour credit balance is 0.
404entity_not_foundNo location, property, business or product with this id on Tripadvisor, Booking.com, Yelp, G2 or Capterra (the source is named in the message).
429rate_limit_exceededToo many requests per minute.
429insufficient_credits_retry_laterThe balance ran out on recent calls and the key is cooling down.
502upstream_changedThe source (Trustpilot, App Store or Google Play, named in the message) changed its format and the response could not be read.
503upstream_blockedThe source is temporarily blocking requests.
503feature_disabledThe endpoint is temporarily switched off by us (detail.feature names it). The call is not billed.
504upstream_timeoutThe 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.