![Booking.com](/assets/logos/booking_logo-969b834a106c6ad6762aecd0a339aa8b19e60c9309450fe90f0d97391fa4b6d8.png) ![BigQuery](/assets/logos/bigquery_logo-787bc9ff96e08ab027e965abf8ad49b14d506ae82ec1762ede1ba8c4ff5d1785.svg) 

# Get Booking.com rates into BigQuery.

One endpoint call, the BigQuery setup steps, and a field-to-column map. Then keep it refreshing on a schedule.

[Start free with 50 requests](/users/sign_up)

50 free requests on signupNo credit card

Trusted by hospitality teams at

 ![EHL](/assets/logos/ehl-51e6ac832bd7a1b8c1f3c17ea48e7f7464f2aaead02a54b7cab2f2ee05b06c86.png) ![Skyscanner](/assets/logos/skyscanner-47f9fed400d4f828b0499892968e393aa1435240b8a573988d36fceb7f0433ae.png) ![Mews](/assets/logos/mews-e52288ca26c3e8d5e3878b522b92b521916a7df9c07556910102ad7bebbd216b.svg) ![CBRE](/assets/logos/cbre-f38211cf61a47f45d021ab25957f592fb2043bcff716539e3f2f54fd7fde91be.png) ![Ripe](/assets/logos/ripe-9fec989e25c3a18f2fec0357610bc743f12bf0e96cfa4824f457c4aa2c95db60.svg)

The pieces
## One source, one destination.

  ![Booking.com](/assets/logos/booking_logo-969b834a106c6ad6762aecd0a339aa8b19e60c9309450fe90f0d97391fa4b6d8.png) Booking.com

Booking.com carries the largest structured review corpus in hospitality: numeric sub-scores, reviewer country, stay type, and dated text on every property. Rates and rooms sit behind the same hotel\_id. This guide points that pricing at BigQuery, refreshed on your schedule.

  ![BigQuery](/assets/logos/bigquery_logo-787bc9ff96e08ab027e965abf8ad49b14d506ae82ec1762ede1ba8c4ff5d1785.svg) BigQuery

BigQuery wants rows, not API calls. A small scheduled job fetches the JSON, flattens the fields you care about, and appends them to a table, so history accumulates and SQL does the rest. Below you wire it to the Booking.com rates endpoint in a few steps.

The call
## One endpoint returns Booking.com rates.

The Hotel Prices endpoint returns clean JSON for one hotel. Send your key in the `X-API-Key` header. See the [endpoint docs](/docs/endpoints/booking/hotel-prices) for every parameter.

[GET Hotel Prices /v1/booking/hotel/prices https://api.stayapi.com/v1/booking/hotel/prices?hotel\_id=346648&check\_in=2026-05-01&check\_out=2026-05-03](/docs/endpoints/booking/hotel-prices)

Setup
## Wire BigQuery to the endpoint.

1. 
01

Create a StayAPI account and copy your API key from the dashboard.

2. 
02

Create a dataset and table with the schema below.

3. 
03

Run the Python script below on a schedule (Cloud Run jobs and Cloud Scheduler work well).

4. 
04

Query the table or point your BI layer at it.

Config
## Python: fetch and insert.

This uses the real endpoint URL with the example Angsana Laguna Phuket id. Swap in your hotel id and your API key.

load.py

```
import requests, psycopg2

URL = "https://api.stayapi.com/v1/booking/hotel/prices?hotel_id=346648&check_in=2026-05-01&check_out=2026-05-03"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(URL, headers=HEADERS, timeout=30)
resp.raise_for_status()
body = resp.json()
records = body.get("data", {}).get("reviews") or body.get("reviews") or body.get("rooms") or []

conn = psycopg2.connect(dsn="YOUR_CONNECTION_STRING")
cur = conn.cursor()
for r in records:
    cur.execute(
        "INSERT INTO stay_data (block_id, room_name, is_refundable, total_price) VALUES (%s, %s, %s, %s)",
        (r.get("block_id"), r.get("room_name"), r.get("is_refundable"), r.get("total_price")),
    )
conn.commit()
cur.close()
conn.close()
```

[Grab your API key](/users/sign_up)

50 free requests on signup, no card.

Field mapping
## Response fields to columns.

Each field from the Hotel Prices response, and a suggested column name.

Response fieldColumn

hotel\_idhotel\_id

block\_idblock\_id

room\_nameroom\_name

is\_refundableis\_refundable

total\_pricetotal\_price

available\_rooms\_countavailable\_rooms\_count

is\_soldoutis\_soldout

inventory\_scopeinventory\_scope

requires\_sign\_inrequires\_sign\_in

labelslabels

genius\_discount\_pctgenius\_discount\_pct

is\_mobile\_rateis\_mobile\_rate

fits\_requested\_occupancyfits\_requested\_occupancy

effective\_marketeffective\_market

Result
## What it looks like in BigQuery.

The fields from the mapping above land as columns: hotel\_id, block\_id, room\_name, is\_refundable. Refreshed on the schedule you set.

### The columns you get

Every row is one hotel record from the Hotel Prices response. These fields become columns:

- hotel\_id
- block\_id
- room\_name
- is\_refundable
- total\_price
- available\_rooms\_count

![BigQuery showing Booking.com rates](/assets/pseo/screenshots/booking-rates-to-bigquery-dd54ec37c2df1c0f5c9a229b1e65f40aa9e2787f7222d3ed3f71ca67b7b6a7e8.webp)

Keep going
## More Booking.com pipelines.

Other destinations

[Booking.com rates to Google Sheets](/integrations/booking-rates-to-google-sheets)[Booking.com rates to Looker Studio](/integrations/booking-rates-to-looker-studio)[Booking.com rates to Power BI](/integrations/booking-rates-to-power-bi)

More Booking.com pipelines

[Booking.com reviews to Google Sheets](/integrations/booking-reviews-to-google-sheets)[Booking.com reviews to Looker Studio](/integrations/booking-reviews-to-looker-studio)[Booking.com reviews to Power BI](/integrations/booking-reviews-to-power-bi)[Booking.com reviews to BigQuery](/integrations/booking-reviews-to-bigquery)

Build with the API

[Hotel Prices endpoint docs](/docs/endpoints/booking/hotel-prices)[The full Booking.com API](/apis/booking)

## Get your key.

Sign up, copy your key into the snippet above, and pull live Booking.com rates into BigQuery.

01 · the fast path

### Try it free

50 free requests on signup. Fastest way to see if the schema fits.

[Start free](/users/sign_up)
- Live data in about a minute
- No credit card required
- Same schema as paid

02 · talk to us

### Talk through your pipeline

15 minutes. Volume, endpoint mix, and where the data lands. Walk out with a quote.

[Book a call](/book-demo)
- Quote on the call, not after
- Engineering, not sales
- No deck, no slides
