Skip to main content
Piloterr
Back to library

Booking Countries API

Booking.com country index with hotel counts.

Active3 credits = 1 requestGET/v2/booking/destination/countries

Endpoint Overview

Detailed documentation, pricing, and usage examples.

OverviewLink to Overview

Queries Booking.com through an unlocked browser session and returns structured JSON. language is the Booking locale suffix (fr, en-gb, de, …), not a country domain. currency is an ISO 4217 code sent as selected_currency. One call returns one page.

Reads the country index. Each row is a country name, the two-letter code taken from /country/{code}, the canonical URL, and the hotel count printed on the block when Booking shows one. Pages are slices of 25.

QuickstartLink to Quickstart

https://api.piloterr.com/v2/booking/destination/countries?language=fr&page=1
https://api.piloterr.com/v2/booking/destination/countries?language=en-gb&page=2

ParametersLink to Parameters

Parameter Type Required Description
language string no Booking locale: fr, en-gb, en-us, de, es, it, pt-pt, nl, … Aliases: en, uk, gb, pt, zh, br.
page integer no Page number. Listings use 25 items per page when the source is paginated.

Response fieldsLink to Response fields

Field Type Description
results[].name string Country name in the requested language
results[].country_code string Two-letter code
results[].url string Country hub URL
results[].hotels_count number null
pagination object page, per_page, total_results, next

Use casesLink to Use cases

  • Build a country picker in the user’s language.
  • Rank countries by listed supply.
  • Link through to a country hub.

Error codesLink to Error codes

Code Description
400 Missing query, unknown language, bad currency, or checkout not after check-in.
404 The page was fetched but no matching records could be parsed.
500 The unlocked fetch failed or the page was blocked.

Related APIs

Expand your data capabilities with these complementary tools.

Booking Attraction Info/v2/booking/attraction/info

One Booking.com attraction page.

GET3 credits = 1 requestActive
Booking Attraction Search/v2/booking/attraction/search

Things to do on Booking.com for a city or an attractions search URL.

GET3 credits = 1 requestActive
Booking Car Search/v2/booking/car/search

Car rental city rates and suppliers from Booking.com cars pages.

GET3 credits = 1 requestActive
Booking Destination/v2/booking/destination/info

Booking hub for a country, region, city, district, landmark or airport URL.

GET3 credits = 1 requestActive
Booking Flight Search/v2/booking/flight/search

Flight offers for an IATA pair such as PAR-LON, or a Booking flights URL. On an IATA pair, dates are optional. A flights URL is fetched as-is and dates are not applied.

GET3 credits = 1 requestActive
Booking Hotel Info/v2/booking/hotel/info

Property page: description, facilities, coordinates and photos for a Booking hotel URL.

GET3 credits = 1 requestActive
Booking Hotel Reviews/v2/booking/hotel/reviews

Guest comments for a Booking hotel URL. Featured reviews on the property page are used when the review list is not rendered.

GET3 credits = 1 requestActive
Booking Hotel Search/v2/booking/hotel/search

Search Booking.com stays by city name, or by a city, region, district, landmark, airport or search URL. A hotel page URL belongs on hotel info.

GET3 credits = 1 requestActive
Booking Location Search/v2/booking/location/search

Autocomplete a place name, or a Booking city URL such as https://www.booking.com/city/fr/paris.fr.html. The URL is read as the place name. return_page_source is not supported and returns 400.

GET3 credits = 1 requestActive

Ready to get started?

Your web scraping API is one click away. Start with +500 credits, no infrastructure to set up, no proxies to manage, and no credit card required.

  • +500 credits
  • No credit card required
  • All endpoints included