Hotel API: Expedia, Booking.com and Google Hotels
A hotel API returns hotels for a place and dates as JSON, with prices, ratings and an ID you can use for room-level calls. Perceptlayer has three: Expedia, Booking.com and Google Hotels, every endpoint at 1 credit per successful call. They differ most in how prices arrive. Expedia gives plain numbers with a currency field, Google Hotels gives both a display string and a number, and Booking.com gives strings you have to parse. This post compares their recorded Paris responses and the cost of tracking a hotel's price per night.
Which hotel endpoints does each source have?
Each source has a search, a way to resolve a place name, and one or more per-hotel endpoints, but the split differs. Expedia has 4 endpoints, Booking.com 11 and Google Hotels 3. All are GET except Booking.com's bulk-prices, which is a POST that takes a searches list.
| Job | Expedia | Booking.com | Google Hotels |
|---|---|---|---|
| Resolve a place | destinations (query) |
destinations (q) |
autocomplete (q) |
| Hotels for a place and dates | hotels-search |
search, prices, bulk-prices |
search |
| One hotel's details | hotels-detail (property_id) |
hotel, facilities, photos |
none listed |
| Rooms and rate plans | hotels-rooms (property_id) |
rooms |
none listed |
| Reviews | none listed | reviews, review-scores |
reviews (property_token) |
| Credits per call | 1 | 1 | 1 |
Booking.com's per-hotel endpoints take a hotel url, or a country and slug. Expedia keys everything on property_id. Google Hotels uses a property_token.
How do the three hotel APIs compare?
The three sources answer the same question with different inputs and different shapes, and the table below sets them side by side. The parameter names come from the catalogue; the response fields and page sizes are what appeared in the recorded Paris searches, not a guarantee of every response.
| Expedia | Booking.com | Google Hotels | |
|---|---|---|---|
| Search endpoint | GET /v1/expedia/hotels-search |
GET /v1/booking/prices |
GET /v1/google-hotels/search |
| Place input | region_id (required), region_name |
ss (required), dest_id, dest_type |
q (required) |
| Date parameters | check_in, check_out |
checkin, checkout |
check_in_date, check_out_date |
| Guests | adults, children |
group_adults, group_children, no_rooms |
adults, children, children_ages[] |
| Price in response | Numbers: total_price, price_per_night, plus currency |
String: price |
String and number: rate_per_night.lowest, extracted_lowest |
| Rating in response | guest_rating (number), guest_rating_label |
review_score (string) |
overall_rating (number), reviews, reviews_breakdown |
| ID for the next call | property_id |
url |
property_token |
| Hotels in the recorded call | 10 per call with limit=10, total_results 500 |
total_prices 25 |
current_from 1 to current_to 20 |
| Paging | offset, next_offset |
not shown in the recording | next_page_token |
| Other parameters | sort, limit, offset |
lang, currency |
min_price, max_price, hotel_class, rating, free_cancellation, sort_by and more |
Google Hotels has the longest parameter list on search. Expedia has the cleanest price fields. Booking.com has the most per-hotel endpoints.
How does each source give the price?
Price format decides how much parsing code you write, so look at it before anything else. Expedia returns numbers, Google Hotels returns a string and a number side by side, and Booking.com returns strings only. All three recordings are for Paris; the excerpts below are trimmed with ….
Expedia: numbers and a currency field
curl "https://api.perceptlayer.com/v1/expedia/hotels-search?region_id=2734®ion_name=Paris%2C+France&check_in=2026-11-20&check_out=2026-11-23&adults=2&limit=10" \
-H "X-API-Key: $API_KEY"
{
"success": true,
"data": {
"region_id": "2734",
"check_in": "2026-11-20",
"check_out": "2026-11-23",
"hotels": [
{
"property_id": "564660",
"position": 1,
"name": "Mercure Paris Centre Tour Eiffel",
"guest_rating": 8,
"guest_rating_label": "Very good",
"review_count": 1000,
"total_price": 690,
"price_per_night": 230,
"free_cancellation": false,
"sponsored": true,
"currency": "EUR",
…
},
{
"property_id": "994215",
"position": 2,
"name": "L’Hôtel du Collectionneur Paris",
"total_price": 1203,
"original_price": 1329,
"price_per_night": 401,
…
}
],
"total_results": 500,
"offset": 0,
"has_more": true,
"next_offset": 10
},
…
}
total_price is 690 for a three-night stay and price_per_night is 230, which is 690 ÷ 3. The second hotel also has original_price, so you can see a discount without parsing text. Both recorded results have sponsored: true; keep that field if you analyse ranking position.
Google Hotels: a string and a number
curl "https://api.perceptlayer.com/v1/google-hotels/search?q=Paris%2C+France&check_in_date=2026-12-15&check_out_date=2026-12-18¤cy=EUR&gl=fr" \
-H "X-API-Key: $API_KEY"
{
"properties": [
{
"type": "hotel",
"name": "Novotel Paris Porte de Versailles",
"property_token": "ChkI5rWisq2xuMNRGg0vZy8xMWhfa18xc2w4EAE",
"rate_per_night": {
"lowest": "€136",
"extracted_lowest": 136,
"before_taxes_fees": "€136",
"extracted_before_taxes_fees": 135.76042
},
"total_rate": {
"lowest": "€408",
"extracted_lowest": 408,
…
},
"overall_rating": 4.6,
"reviews": 4337,
"hotel_class": "4-star hotel",
"extracted_hotel_class": 4,
…
},
…
],
"pagination": {
"current_from": 1,
"current_to": 20,
"next_page_token": "gho_jRZtj7WKgqLkF8eP.Q0JJPQ",
…
},
…
}
Read the extracted_ fields and you never parse a currency string. The request set currency=EUR, and the strings carry the euro sign. total_rate.extracted_lowest of 408 is 136 × 3 nights.
Booking.com: strings to parse
curl "https://api.perceptlayer.com/v1/booking/prices?ss=Paris&checkin=2026-11-20&checkout=2026-11-23&group_adults=2&dest_id=-1456928&dest_type=city" \
-H "X-API-Key: $API_KEY"
{
"success": true,
"data": {
"title": "Booking.com: hotels in Paris",
"prices": [
{
"name": "Royal Saint Michel",
"url": "https://www.booking.com/hotel/fr/royal-saint-michel.html",
"price": "$351.05",
"review_score": "8.8",
"location": "3 Boulevard Saint Michel, Paris",
…
},
{
"name": "Ibis Styles Paris Batignolles",
"url": "https://www.booking.com/hotel/fr/mirific.html",
"price": "$146.46",
"review_score": "8.3",
…
}
],
"total_prices": 25,
"parsed": true
},
…
}
The request didn't set currency, and the prices came back with a dollar sign for a Paris search. Set currency explicitly and check the symbol in each string before you store it. The recording doesn't say whether price covers one night or the whole stay, so compare it against a rooms call for the same dates before you rely on either reading.
A parser for all three
This function turns one hotel from any of the three search responses into the same row, reading only fields that appear in the recordings:
import re
def parse_amount(text):
m = re.search(r"([^\d\s.,]+)?\s*([\d,]+(?:\.\d+)?)", text or "")
if not m:
return None, None
return float(m.group(2).replace(",", "")), m.group(1)
def hotel_row(source, h):
if source == "expedia":
return {"name": h.get("name"), "id": h.get("property_id"),
"nightly": h.get("price_per_night"), "total": h.get("total_price"),
"currency": h.get("currency"), "rating": h.get("guest_rating")}
if source == "google-hotels":
return {"name": h.get("name"), "id": h.get("property_token"),
"nightly": (h.get("rate_per_night") or {}).get("extracted_lowest"),
"total": (h.get("total_rate") or {}).get("extracted_lowest"),
"currency": None, "rating": h.get("overall_rating")}
amount, symbol = parse_amount(h.get("price"))
score = h.get("review_score")
return {"name": h.get("name"), "id": h.get("url"),
"nightly": None, "total": None, "price": amount,
"currency": symbol, "rating": float(score) if score else None}
Google Hotels rows carry no currency field in the recording, so take it from the currency you sent. Booking.com rows keep the parsed figure in price until you've confirmed what it covers. Note the rating scales differ too: Expedia's 8 and Booking.com's "8.8" look like scores out of 10, Google's 4.6 like stars out of 5, so don't average them without rescaling.
How do you get from a search result to rooms?
Two of the three sources have a recorded search-to-hotel chain, where a value from the search response appears in the parameters of the next recorded call. Google Hotels has a matching parameter name but no recorded follow-up. This matters for monitoring, because a room-level call is how you track one hotel precisely.
Expedia: property_id
Hotel 564660 in the search above is the property_id in the recorded hotels-rooms call, for the same dates and two adults:
curl "https://api.perceptlayer.com/v1/expedia/hotels-rooms?property_id=564660&check_in=2026-11-20&check_out=2026-11-23&adults=2" \
-H "X-API-Key: $API_KEY"
{
"success": true,
"data": {
"property_id": "564660",
"currency": "EUR",
"rooms": [
{
"unit_id": "226385",
"name": "Classic Room, 1 Double Bed",
"rate_plans": [
{
"rate_plan_id": "397104173",
"total_price": 690,
"price_per_night": 230
},
{
"rate_plan_id": "397104181",
"total_price": 825,
"price_per_night": 275
}
],
…
},
…
]
},
…
}
The cheapest rate plan, 690 total and 230 a night, matches the price on the search result.
Booking.com: the hotel url
The search result's url is https://www.booking.com/hotel/fr/royal-saint-michel.html. The recorded rooms call used country=fr and slug=royal-saint-michel, the two parts of that path:
curl "https://api.perceptlayer.com/v1/booking/rooms?country=fr&slug=royal-saint-michel&checkin=2026-11-20&checkout=2026-11-23&group_adults=2" \
-H "X-API-Key: $API_KEY"
{
"success": true,
"data": {
"canonical_url": "https://www.booking.com/hotel/fr/royal-saint-michel.html",
"rooms": [
{
"name": "Attic Single Room",
"price": "€ 978 € 588 Original price € 978 Current price € 588 € 326.12 × 3 nights € 978.35 Limited-time Deal - € 390.73 You're getting a discount because—for a limited t…",
"occupancy": "1 adult",
"beds": "1 twin bed",
"available": true
}
],
"total_rooms": 1,
"parsed": true
},
…
}
The room price is page text with several figures in it: an original price, a current price, a per-night amount times three nights, and a discount. Don't run the simple parser above on it. If you need a single number from Booking.com rooms, write a parser against your own recorded responses and test it on every room type you track.
Google Hotels: property_token
Each property in the search response has a property_token. The reviews endpoint requires a parameter of the same name, and search accepts it as an optional parameter. There's no recorded follow-up call, so check the result in the playground on the Google Hotels API page before you build on it.
What does tracking one hotel per night cost?
Every call is 1 credit, so the cost per hotel per night depends on how many hotels one call covers. A room-level call covers one hotel for one stay: 1 credit per hotel per date. A search call covers a page of hotels for one stay; in the recordings that was 10 hotels on Expedia (with limit=10), 25 on Booking.com and 20 on Google Hotels.
Worked example: you track 40 Paris hotels for the next 30 check-in dates, once a day.
| Approach | Calls a day | Credits a month (30 days) |
|---|---|---|
Expedia hotels-rooms per hotel per date |
40 × 30 = 1,200 | 1,200 × 30 = 36,000 |
| One search page per date, one source | 30 | 30 × 30 = 900 |
| Rooms calls on two sources | 2,400 | 72,000 |
The room-level plan fits the Build pack's 50,000 credits. The search plan runs for 3 days on the 100 free credits (3 × 30 = 90) and for 11 months on a 10,000-credit Starter pack (10,000 ÷ 900), but only covers the hotels that appear on the page you fetch, which depends on the sort and the dates. Two sources at room level need 72,000 credits, which is past the Build pack and inside the Growth pack's 200,000. Free accounts get 1 request a second and paid accounts at least 5, so 1,200 calls take about 4 minutes at 5 a second. See pricing and the rate limits docs.
Which hotel API should you use?
Pick by what you'll do with the price, because parsing effort and ID handling differ more than coverage of a single city. Every option below costs 1 credit per successful call.
- A price tracker or rate-shopping job: Expedia. Numeric
total_priceandprice_per_night, acurrencyfield, and a recorded chain fromproperty_idtohotels-roomsrate plans. - A city-wide market view with filters: Google Hotels.
searchtakesmin_price,max_price,hotel_classandrating, and returnsextracted_numbers, ratings andreviews_breakdownby topic. - Reviews and review scores alongside prices: Booking.com, which has
reviewsandreview-scoresendpoints next topricesandrooms. Booking.com Reviews API covers those. Budget time for string parsing. - Many searches at once: look at Booking.com's bulk-prices endpoint, a
POSTwith asearcheslist. - An agent answering "where should I stay": Google Hotels search through the MCP server, since one call returns price, rating and class. The AI agents docs cover setup.
Run the Paris searches above in the playground on the Expedia API, Booking.com API and Google Hotels pages with your own dates, then get a free API key. More travel sources are on the travel APIs page.
APIs in this post
Frequently asked questions
How much does a hotel API call cost?
Every endpoint on Expedia, Booking.com and Google Hotels costs 1 credit per successful call. A failed call costs nothing and returns X-Credits-Used: 0. Every account gets 100 free credits after verifying an email address, enough to check 40 hotels on 2 dates once at room level (40 × 2 = 80 credits). Paid credits come in prepaid packs; pricing has what they cost.
Which hotel API returns prices as numbers?
Expedia returns total_price and price_per_night as numbers with a separate currency field. Google Hotels returns display strings plus numeric extracted_lowest values inside rate_per_night and total_rate. Booking.com's prices endpoint returns price as a string such as "$351.05", so you parse the amount and currency symbol yourself.
How do I get room-level prices for one hotel?
On Expedia, pass the property_id from hotels-search to hotels-rooms with check_in and check_out; it returns rooms with rate_plans. On Booking.com, call rooms with the hotel's url, or its country and slug, plus dates. Google Hotels has no rooms endpoint in the catalogue. Each call costs 1 credit.
Why do prices differ between the three sources?
Each response reflects its own site at the time of the call, and the recorded fields don't mean the same thing. Expedia gives a total and a nightly figure, Google Hotels a lowest rate and a before_taxes_fees rate, and Booking.com a single string. Compare like with like: same dates, same guests, same currency.
What happens if a hotel call fails?
The call returns an HTTP status and a JSON error with a code, a message and a request_id, and costs nothing. A rate_limited (429) or temporarily_unavailable (503) response carries a Retry-After header with the seconds to wait. A source_error (502) is worth one retry later. The errors docs list every code.