Skip to main content
POST
Scrape Booking.com search results with prices
Scrape Booking.com search results with prices.

Request

query is required.

Response

If successful, the response body contains the standard envelope. data.results[] contains the hotels, each with its price, taxes, review score and address. The following example is a real response, truncated: each list shows one item and long strings are cut.
For every field, see the response schema on this page.

Optional parameters

Billing

Each successful request consumes 1 credit, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.

Pagination

Results are paginated. To retrieve the next page, pass the value of data.cursor as cursor in a subsequent request. A response that omits cursor is the last page.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

maxTextLength
integer

Cut every text value in the response to this many characters. A value that was cut ends with …, and a page whose text was cut has isTruncated set to true. A screenshot is never cut. Leave it out to get the full text.

Required range: x >= 1

Body

application/json
query
string
required

Where to stay: a city, region or landmark, like Lisbon.

Required string length: 2 - 200
checkIn
string<date>

Defaults to tomorrow.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
checkOut
string<date>

Defaults to one night after checkIn.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
adults
integer
default:2

Adults across all rooms. Prices are for the whole group.

Required range: 1 <= x <= 30
rooms
integer
default:1

Rooms to book, at most one per adult. Prices are for all rooms together.

Required range: 1 <= x <= 30
currency
string
default:USD

ISO 4217 currency code, e.g. USD.

Pattern: ^[A-Z]{3}$
sort
enum<string>
default:relevance

Booking.com's own Sort by: relevance (Our top picks) or distance (closest to the center of the place first).

Available options:
relevance,
distance
cursor
string

The cursor from the previous response. Send it as is.

Minimum string length: 1

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required