Scraper APIBooking.com
booking.search
The properties Booking.com lists for a destination and a stay: prices for the dates, review scores, class, location and photo.
- Id
booking.search- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/booking.search/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
destinationrequired | string | Where to stay, as typed into Booking's search box: a city, a region, a district or a landmark, e.g. Lisbon or Lake Como, Italy. Add the country when the name is ambiguous.Limit: at least 1 characters, at most 200 characters. |
checkin | string | The first night, YYYY-MM-DD. Without dates the records carry no prices.Limit: matches ^\d{4}-\d{2}-\d{2}$. |
checkout | string | The day of departure, YYYY-MM-DD, after checkin and at most 90 nights later.Limit: matches ^\d{4}-\d{2}-\d{2}$. |
adults | integer | The number of adults.Limit: 1 to 30. Default: 2. |
children_ages | array of integer | One age (0 to 17) per child travelling, e.g. [4, 9]. |
rooms | integer | The number of rooms.Limit: 1 to 30. Default: 1. |
currency | string | The currency prices are shown in, as an ISO code, e.g. USD, EUR, GBP.Limit: matches ^[A-Za-z]{3}$. Default: "USD". |
language | string | The language of names and wording, as Booking's code in lower case, e.g. en-us, en-gb, de, fr, pt-br.Limit: matches ^[a-z]{2}(-[a-z]{2})?$. Default: "en-us". |
sort | "top_picks" | "price_low_to_high" | "price_high_to_low" | "class_high_to_low" | "class_low_to_high" | "review_score" | "distance" | "homes_first" | The order of the results; top_picks is Booking's own default order.Default: "top_picks". |
page | integer | The results page, from 1; 25 properties a page, and Booking serves at most 40.Limit: 1 to 40. Default: 1. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
position | integer | The property's place on this results page, from 1.Limit: at least 1. |
page | integer | The results page the property was on.Limit: at least 1. |
property_id | integer | Booking's numeric id of the property. booking.reviews takes it. |
name | string | The property's name, as the results show it. |
url | string | The property's page on booking.com, without tracking parameters. booking.hotel takes it. |
address | string or null | The street address. |
city | string or null | The city, as Booking writes it (often in the local language). |
country_code | string or null | The two-letter country code, in lower case as Booking gives it. |
area | string or null | The district and city the card shows, e.g. Santa Maria Maior, Lisbon. |
distance | string or null | The distance line of the card, in Booking's words, e.g. 0.2 miles from downtown. |
latitude | number or null | The latitude of the property, in decimal degrees. |
longitude | number or null | The longitude of the property, in decimal degrees. |
star_class | number or null | The property's class, 1 to 5: official hotel stars, or Booking's own rating for a home or apartment. Null when it has none. |
review_score | number or null | The guest review score, 1 to 10. Null when the property has no score yet. |
review_count | integer or null | The number of guest reviews behind the score. |
review_word | string or null | Booking's word for the score, e.g. Wonderful. |
checkin | string (date) or null | The first night of the stay the prices are for; null for a search without dates. |
checkout | string (date) or null | The day of departure. |
nights | integer or null | The length of the stay in nights. |
price | object or null | The price the card shows for the whole stay, for the guests and rooms asked for, as Booking shows it to a visitor in the United States: before taxes and fees. It includes the discounts listed in discounts. Null for a search without dates, or when the property has nothing left for the stay. |
amount (in price) | number | The amount, as Booking states it. |
currency (in price) | string | The ISO currency code of the amount, e.g. USD. |
price_per_night | object or null | The same price per night, as Booking averages it. |
amount (in price_per_night) | number | The amount, as Booking states it. |
currency (in price_per_night) | string | The ISO currency code of the amount, e.g. USD. |
price_before_discount | object or null | The struck-through price of the stay, when the card shows one. |
amount (in price_before_discount) | number | The amount, as Booking states it. |
currency (in price_before_discount) | string | The ISO currency code of the amount, e.g. USD. |
taxes_and_fees | object or null | The taxes and fees Booking states for the stay that are not in price. |
amount (in taxes_and_fees) | number | The amount, as Booking states it. |
currency (in taxes_and_fees) | string | The ISO currency code of the amount, e.g. USD. |
discounts | array of object | The discounts already taken off price, as Booking lists them. A Genius discount is the rate Booking gives its signed-in members and shows to every visitor on some properties. |
name (in discounts[]) | string | What Booking calls the discount, e.g. Genius discount or Limited-time Deal. |
amount (in discounts[]) | object or null | What it takes off the price of the stay. |
amount (in discounts[].amount) | number | The amount, as Booking states it. |
currency (in discounts[].amount) | string | The ISO currency code of the amount, e.g. USD. |
description (in discounts[]) | string or null | Booking's own sentence about the discount, when it gives one. |
room | string or null | The room or unit the price is for, e.g. Interior Double Room. |
meal_plan | string or null | The meals in the price, in Booking's words, e.g. Breakfast included; null when it states none. |
free_cancellation | boolean or null | True when the card says the offer can be cancelled free of charge. |
no_prepayment | boolean or null | True when the card says nothing is paid in advance. |
availability_note | string or null | The card's scarcity line, e.g. We have 3 left at this price. |
sold_out | boolean | True when Booking lists the property as having nothing left for the stay.Default: false. |
sponsored | boolean | True when the card is marked as an advertisement.Default: false. |
image | string or null | The card's main photo. |
fetched_at | string (date-time) | When the results were read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/booking.search/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"destination":"Lisbon","checkin":"2027-01-12","checkout":"2027-01-14","adults":2}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("booking.search", {
"destination": "Lisbon",
"checkin": "2027-01-12",
"checkout": "2027-01-14",
"adults": 2,
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("booking.search", {
destination: "Lisbon",
checkin: "2027-01-12",
checkout: "2027-01-14",
adults: 2,
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "booking.search", map[string]any{"destination": "Lisbon", "checkin": "2027-01-12", "checkout": "2027-01-14", "adults": 2})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("booking.search", Map.of("destination", "Lisbon", "checkin", "2027-01-12", "checkout", "2027-01-14", "adults", 2));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run booking.search --input destination=Lisbon --input checkin=2027-01-12 --input checkout=2027-01-14 --input adults=2Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"destination": "Lisbon",
"checkin": "2027-01-12",
"checkout": "2027-01-14",
"adults": 2
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "booking.search",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"destination": "Lisbon",
"checkin": "2027-01-12",
"checkout": "2027-01-14",
"adults": 2
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"position": 2,
"page": 1,
"property_id": 10131840,
"name": "MASA Hotel & Spa Campo Grande Collection",
"url": "https://www.booking.com/hotel/pt/masa-campo-grande.html",
"address": "Campo Grande 56",
"city": "Lisboa",
"country_code": "pt",
"area": "Alvalade, Lisbon",
"distance": "2.6 miles from downtown",
"latitude": 38.750851,
"longitude": -9.148746,
"star_class": 4,
"review_score": 8.5,
"review_count": 11673,
"review_word": "Very Good",
"checkin": "2027-01-12",
"checkout": "2027-01-14",
"nights": 2,
"price": {
"amount": 167.76,
"currency": "USD"
},
"price_per_night": {
"amount": 83.88,
"currency": "USD"
},
"price_before_discount": {
"amount": 209.7,
"currency": "USD"
},
"taxes_and_fees": {
"amount": 27.67,
"currency": "USD"
},
"discounts": [
{
"name": "Bonus savings",
"amount": {
"amount": 41.94,
"currency": "USD"
},
"description": "You’re getting a reduced rate because this property is offering a discount."
}
],
"room": "Standard Double or Twin Room",
"meal_plan": "Breakfast included",
"free_cancellation": true,
"no_prepayment": false,
"availability_note": null,
"sold_out": false,
"sponsored": false,
"image": "https://cf.bstatic.com/xdata/images/hotel/square600/535564893.jpg?k=e7a60ec8e804b0be59a40ec440854ad50d0cfa8dc2316bed0e97f443d03c8412&o=",
"fetched_at": "2026-11-19T18:07:39.213234Z"
}
],
"next_cursor": null
}A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Booking.com scrapers are in their own section there.