A quick demo might save your team weeks of engineering work.
Products
Solutions
Resources
Free Tools
One endpoint call, the BigQuery setup steps, and a field-to-column map. Then keep it refreshing on a schedule.
Trusted by hospitality teams at
Best We Hotel adds Jin Jiang's China-focused hotel catalogue, bilingual property content, guest reviews, and direct CNY room rates for teams that need stronger mainland coverage. Here the reviews endpoint pours that text into BigQuery as sortable rows.
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. On this page it holds Best We Hotel reviews, refreshed from one endpoint call.
The Best We Hotel Reviews endpoint returns clean JSON for one hotel. Send your key in the X-API-Key header. See the
endpoint docs for every parameter.
Create a StayAPI account and copy your API key from the dashboard.
Create a dataset and table with the schema below.
Run the Python script below on a schedule (Cloud Run jobs and Cloud Scheduler work well).
Query the table or point your BI layer at it.
This uses the real endpoint URL with the example Jin Jiang Tower Shanghai id. Swap in your hotel id and your API key.
import requests, psycopg2 URL = "https://api.stayapi.com/v1/bestwe/hotel/reviews?property_id=JJ1089" 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 (rating, total, filter, filter_counts) VALUES (%s, %s, %s, %s)", (r.get("rating"), r.get("total"), r.get("filter"), r.get("filter_counts")), ) conn.commit() cur.close() conn.close()
50 free requests on signup, no card.
Each field from the Best We Hotel Reviews response, and a suggested column name.
The fields from the mapping above land as columns: property_id, rating, total, filter. Refreshed on the schedule you set.
Every row is one hotel record from the Best We Hotel Reviews response. These fields become columns:
Sign up, copy your key into the snippet above, and pull live Best We Hotel reviews into BigQuery.
50 free requests on signup. Fastest way to see if the schema fits.
Start free15 minutes. Volume, endpoint mix, and where the data lands. Walk out with a quote.
Book a demo