API · Booking.com
GET /booking/hotel
One Booking.com property: address, stars, review score, facilities, rooms and photos.
| Request | GET /v1/booking/hotel |
| Operation id | booking.hotel.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One Booking.com property: address, stars, review score, facilities, rooms and photos.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | no | Booking.com hotel id. Example: 280149. |
url | string | no | A property link, https://www.booking.com/hotel/<cc>/<name>.html. Example: https://www.booking.com/hotel/gb/the-savoy.html. |
currency | string | no | ISO currency for prices (default USD). Example: EUR. |
language | string | no | Booking.com language for texts (en-us, en-gb, de, fr, …). Example: en-gb. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The property. | BookingHotelResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No Booking.com property or destination by that id, link or name. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Booking.com is temporarily unavailable. Retryable; nothing was charged. | Error |
BookingHotelResponse fields
| Field | Type | Description |
|---|---|---|
hotel | BookingHotel |
Errors use one shape everywhere; see Errors for every code and what to do.