Scraper APIBooking.com
booking.hotel
A property's page on Booking.com: description, address, class, review scores, facilities, house rules, photos, and room prices for a stay.
- Id
booking.hotel- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/booking.hotel/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 |
|---|---|---|
propertyrequired | string | The property's page on booking.com, e.g. https://www.booking.com/hotel/pt/browns-downtown.html (the url of a booking.search record), or just its country and name: pt/browns-downtown.Limit: at least 4 characters, at most 500 characters. |
checkin | string | The first night, YYYY-MM-DD. Without dates the rooms 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 the page, 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". |
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 |
|---|---|---|
property_id | integer | Booking's numeric id of the property. booking.reviews takes it. |
name | string | The property's name. |
url | string | The property's page on booking.com, without tracking parameters. |
property_type | string or null | The kind of property as Booking classes it, in English and lower case, e.g. hotel, apartment, villa, hostel. |
description | string or null | The property's description, in the language asked for, one line per paragraph. |
address | string or null | The full postal address, as the page writes it. |
postal_code | string or null | The postal code. |
district | string or null | The district or neighbourhood, when Booking names one. |
city | string or null | The city or town. |
country | string or null | The country's name. |
country_code | string or null | The two-letter country code, in lower case. |
latitude | number or null | The latitude of the property's map pin, in decimal degrees. |
longitude | number or null | The longitude of the property's map pin, in decimal degrees. |
star_class | number or null | The property's class, 1 to 5; 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_scores | array of object | The score per review category, as the page lists them. |
category (in review_scores[]) | string | The category, in the page's language, e.g. Cleanliness, Location, Value for money. |
score (in review_scores[]) | number | The guests' average score for it, 1 to 10. |
popular_facilities | array of string | The facilities the page lists as most popular, in the language asked for. |
checkin | string (date) or null | The first night of the stay the rooms are priced for; null when no dates were asked. |
checkout | string (date) or null | The day of departure. |
available | boolean or null | For a stay: true when the page offers at least one room for it, false when it says it has nothing. Null when no dates were asked. |
rooms | array of object | The room types: with a stay, the ones the page offers for it and their prices; without, the property's room types with no offers. |
room_id (in rooms[]) | integer or null | Booking's id of the room type. |
name (in rooms[]) | string | The room type's name, as the page shows it. |
offers (in rooms[]) | array of object | The ways the room can be booked for the stay, cheapest terms first as the page lists them. Empty without dates, and for a room with nothing left. |
price (in rooms[].offers[]) | object | The price of the stay for one unit of the room on these terms, as the page's table states it to a visitor in the United States: before taxes and fees. |
amount (in rooms[].offers[].price) | number | The amount, as Booking states it. |
currency (in rooms[].offers[].price) | string | The ISO currency code of the amount, e.g. USD. |
max_guests (in rooms[].offers[]) | integer or null | How many guests the offer is for. |
cancellation (in rooms[].offers[]) | string or null | The cancellation terms as Booking codes them: free_cancellation, non_refundable or special_conditions. |
meal_plan (in rooms[].offers[]) | string or null | The meals in the price as Booking codes them, e.g. breakfast, half board; null when none is included. |
member_rate (in rooms[].offers[]) | boolean | True when Booking marks the price as its members' rate (Genius), which it shows to every visitor on some properties.Default: false. |
house_rules | array of object | The page's "House rules": check-in and check-out times, cancellation, children and beds, pets and the rest, in the page's order. |
name (in house_rules[]) | string | What the rule is about, as the page heads it, e.g. Check-in, Pets, Children & Beds. |
text (in house_rules[]) | string | What the page says about it, one line per paragraph. |
fine_print | string or null | The page's "fine print": what the property wants guests to know before booking. |
photos | array of string | The photos of the page's gallery, largest size, in the gallery's order. |
fetched_at | string (date-time) | When the page was 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.hotel/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"property":"https://www.booking.com/hotel/pt/browns-downtown.html"}}'
# 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.hotel", {
"property": "https://www.booking.com/hotel/pt/browns-downtown.html",
})
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.hotel", {
property: "https://www.booking.com/hotel/pt/browns-downtown.html",
});
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.hotel", map[string]any{"property": "https://www.booking.com/hotel/pt/browns-downtown.html"})
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.hotel", Map.of("property", "https://www.booking.com/hotel/pt/browns-downtown.html"));
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.hotel --input property=https://www.booking.com/hotel/pt/browns-downtown.htmlInstall 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": {
"property": "https://www.booking.com/hotel/pt/browns-downtown.html"
}
}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.hotel",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"property": "https://www.booking.com/hotel/pt/browns-downtown.html"
},
"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": [
{
"property_id": 315442,
"name": "Browns Downtown Hotel",
"url": "https://www.booking.com/hotel/pt/browns-downtown.html",
"property_type": "hotel",
"description": "These trendy rooms in the center of Lisbon include hi-tech work stations with iMac computers. All are individually decorated, including coffee station and flat-screen TVs. Wi-Fi is free of charge.\nWith a tasteful mixture of textures and … [truncated]",
"address": "Rua Dos Sapateiros 69-79, Santa Maria Maior, 1100-579 Lisbon, Portugal",
"postal_code": "1100-579",
"district": "Santa Maria Maior",
"city": "Lisbon",
"country": "Portugal",
"country_code": "pt",
"latitude": 38.71053976958895,
"longitude": -9.138137251138687,
"star_class": 3,
"review_score": 9,
"review_count": 2672,
"review_scores": [
{
"category": "Staff",
"score": 9.5
},
{
"category": "Facilities",
"score": 9
},
{
"category": "Cleanliness",
"score": 9.3
}
],
"popular_facilities": [
"Free Wifi",
"Airport shuttle",
"Non-smoking rooms"
],
"checkin": null,
"checkout": null,
"available": null,
"rooms": [
{
"room_id": 31544201,
"name": "Small Double Room",
"offers": []
},
{
"room_id": 31544202,
"name": "Superior Double Room",
"offers": []
}
],
"house_rules": [
{
"name": "Check-in",
"text": "From 3:00 PM\nGuests are required to show a photo ID and credit card at check-in."
},
{
"name": "Check-out",
"text": "Until 12:00 PM"
},
{
"name": "Cancellation/ prepayment",
"text": "Cancellation and prepayment policies vary according to accommodation type. Enter your stay dates and check the conditions of your selected option."
}
],
"fine_print": "Please note that the buffet breakfast is served every morning at the Brown's Brasserie between 7:30 and 11:00.\nPlease note that reservations for more than 3 rooms, different policies and additional supplements may apply.\nGuests are required … [truncated]",
"photos": [
"https://cf.bstatic.com/xdata/images/hotel/max1280x900/594514309.jpg?k=77a82eaeb0e54004da40f660aafa6420c5c03221ea461d0e7e0da285c98f1d99&o=&hp=1",
"https://cf.bstatic.com/xdata/images/hotel/max1280x900/594240624.jpg?k=74f011db86d50c719d0e8f67b77f55dac09fb8344ea9425a83e32744e2335a5c&o=&hp=1",
"https://cf.bstatic.com/xdata/images/hotel/max1280x900/594244824.jpg?k=c3bb170caef34fbbaed96d340fdd7dc1bacd30d91c1f20807964e0e8d9b95bb7&o=&hp=1"
],
"fetched_at": "2026-11-19T18:07:39.201815Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
description: 1,082 characters, the first 236 shown. - Shortened:
review_scores: 7 items, the first 3 shown. - Shortened:
popular_facilities: 10 items, the first 3 shown. - Shortened:
rooms: 4 items, the first 2 shown. - Shortened:
house_rules: 8 items, the first 3 shown. - Shortened:
fine_print: 416 characters, the first 240 shown. - Shortened:
photos: 45 items, the first 3 shown.
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.