Collectors · Travel
Booking.com scraper API in Python
Booking.com properties around a place or address for your dates — nightly price, discount, review score, stars. One POST from Python with check_in_date and check_out_date, rows back as JSON with 41 fields, $0.02 per delivered property. No proxies or parsers to maintain.

First call
Install, call, read the rows.
pip install requestsimport os, requests
r = requests.post(
"https://api.quanticdata.io/v1/scraper/collectors/booking_stays/run",
headers={"Authorization": f"Bearer {os.environ['QD_API_KEY']}"},
json={
"check_in_date": "<check_in_date>",
"check_out_date": "<check_out_date>",
},
timeout=120,
)
r.raise_for_status()
run = r.json()["payload"]
print(run["count"], "rows,", run["cost"]["usd"], "USD")
for row in run["results"]:
print(row.get("name"), row.get("property_id"), row.get("price"), row.get("price_value"))The key comes from an environment variable, never from the code. The run answers in the same request when it finishes in time; payload.results holds the rows and payload.cost what they cost.
Request parameters
What the collector takes.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
location | string | no | City, area or street address, e.g. "Roma, Italia" or "12 Marine Parade, Napier, New Zealand". Resolved to coordinates first; pass latitude/longitude instead to skip that step. |
latitude | number | no | Alternative to location. |
longitude | number | no | Alternative to location. |
check_in_date | string | yes | YYYY-MM-DD |
check_out_date | string | yes | YYYY-MM-DD (after check-in) |
adults | integer | no (default 2) | Guests (1-30). |
rooms | integer | no (default 1) | Rooms (1-10). |
currency | string | no | Price currency (EUR, USD, NZD...). |
country | string | no | ISO 3166-1 alpha-2 code — proxy exit geo and Google locale (gl). Omit for the default pool. |
lang | string | no | Interface language (hl), e.g. en, it, de. |
max_results | integer | no | How many properties to deliver at most (1–100). You pay only for delivered properties. |
Response fields
41 fields per property.
| Field | Type | What it holds |
|---|---|---|
rank | integer | 1-based position in Booking's order. |
name | string | Property name. |
property_id | integer | Booking's own property id. |
price | string | Nightly price as shown. |
price_value | number | Numeric price for the stay requested, taxes and fees included. |
currency | string | Currency of the price. |
strikethrough_value | number | Price before the discount, when Booking shows one. |
discount_pct | integer | Discount implied by the two prices. |
review_score | number | Guest score out of 10. |
review_word | string | Booking's word for that score. |
review_count | integer | Number of reviews. |
stars | integer | Star class; 0 on apartments and B&Bs that have none. |
room_type | string | The unit Booking recommends for this stay. |
area | string | Neighbourhood as Booking names it. |
distance_m | integer | Metres from the point you searched — how close this competitor actually is. |
distance_text | string | The distance as Booking phrases it. |
free_cancellation | boolean | Booking shows a free-cancellation badge on this offer. |
breakfast_included | boolean | Breakfast is included in this price. |
rooms_left_at_price | integer | Scarcity Booking declares: "we have N left at this price". |
taxes_included | boolean | Whether the price already includes taxes and charges — without it two prices are not comparable. |
sustainability | boolean | Property carries a sustainability certification. |
preferred | boolean | Booking "Preferred" partner. |
quality_class | integer | Booking's own 1-5 quality rating, for properties with no star class. |
latitude | number | Property latitude. |
longitude | number | Property longitude. |
country | string | Country code. |
checkin_from | string | Earliest check-in time. |
checkout_until | string | Latest check-out time. |
photo | string | Main photo URL. |
photos | string[] | Every photo Booking returned for the card. |
check_in_date | string | Echo of the request. |
check_out_date | string | Echo of the request. |
nights | integer, nullable | Nights of the stay. |
price_per_night | number, nullable | Stay total divided by the nights. |
unit_type | string, nullable | Kind of unit from the room label: "Entire apartment", "Private room", "Private suite", "Hotel room"… |
size_m2 | number, nullable | Unit size in m² when the label states it. |
beds | integer, nullable | Beds in the recommended unit. |
bedrooms | integer, nullable | Bedrooms, when the label states them. |
bathrooms | integer, nullable | Bathrooms, when the label states them. |
photo_large | string, nullable | The main photo at up to 1024×768. |
url | string, nullable | Link that opens the property on booking.com for the same dates and guests. |
Add ?format=csv to the runs endpoint to get the same rows as CSV.
Long runs
Run in the background, then poll.
A run that needs more time can go to the background: send "async": true, get 202 with the run id, and poll the runs endpoint until the status is done. Reading a run is free.
import os, time, requests
H = {"Authorization": f"Bearer {os.environ['QD_API_KEY']}"}
r = requests.post("https://api.quanticdata.io/v1/scraper/collectors/booking_stays/run", headers=H,
json={**{"check_in_date":"<check_in_date>","check_out_date":"<check_out_date>"}, "async": True}, timeout=30)
run_id = r.json()["payload"]["run_id"]
while True:
run = requests.get(f"https://api.quanticdata.io/v1/scraper/collectors/runs/{run_id}", headers=H, timeout=30).json()["payload"]
if run["status"] in ("done", "failed"):
break
time.sleep(5)
print(run["status"], run["count"])Errors
What can come back, and what is billed.
| Status | Meaning | Billed |
|---|---|---|
400 | The input does not match the collector (payload.errors) | No |
401 | Missing or wrong API key | No |
402 | Balance and free credit do not cover the run: top up | No |
422 | The input can never resolve; retrying the same input cannot help | No |
424 | The run failed at the source (blocked, timed out, layout changed); safe to retry | No |
429 | Rate limit or a per-account brake; wait for Retry-After | No |
Only delivered rows are billed: a run that delivers nothing costs nothing.
Price
$0.02 per delivered property.
| Rows | Cost |
|---|---|
| 1 | $0.02 |
| 1,000 | $20.00 |
| 10,000 | $200.00 |
Up to 100 properties per run; split larger jobs into several runs. The $2 free credit every month covers about 100 properties. No subscription; paid tiers lower the unit price. All collector prices: collector pricing.
Before you run it
Questions developers ask
Is there a free Booking.com stays API?
Every account gets $2 of free usage each month, about 100 properties of this collector at $0.02 each, with no card.
Do I have to handle proxies, retries or blocks?
No. The collector runs on our network and handles them; a run blocked at the source returns 424 and is not billed.
How many rows can one run return?
Up to 100 properties per run (the max_results input, where the collector has one).
Can an AI agent run it?
Yes: the MCP server exposes it as the run_collector tool, with the same input and price. See the MCP server.
Run it on the free credit.
Create an API key, export it as QD_API_KEY and run the example. $0.02 per delivered property, no subscription.