Hotels.com API for hotel prices, rate plans and reviews
Find a hotel’s Hotels.com id by name, then read what a guest on the Hotels.com site for their country sees: the headline price for a stay, every room type and rate plan, and the guest reviews.
{
"property_id": "12570",
"market": "US",
"check_in": "2027-04-16",
"check_out": "2027-04-17",
"nights": 1,
"currency": "USD",
"requested_currency": "USD",
"currency_verified": true,
"available": true,
"sold_out": false,
"availability": "available",
"is_soldout": false,
"cheapest_rate": 475,
"rooms": [
…Hotels.com is an Expedia Group brand with separate sites for many countries, so a hotel’s price there can differ from Expedia’s and from one Hotels.com site to the next. Teams that watch rate parity or a competitive set track it as its own channel. Hotels.com has no developer API for reading prices, so this API returns the public Hotels.com result as data.
Two things make Hotels.com easy to get wrong. The number in many hotel page URLs is a legacy id that does not price, and the headline price on the US and German sites is the stay total, not a nightly rate. The search endpoint returns the id that does price, and the headline price comes with a label saying whether it is a stay total or a nightly figure. Each call prices one stay of up to 30 nights on the Hotels.com site you choose: the US, UK, Canada, Ireland, Germany, France and others.
What you get
- recommended_match.property_id
- the hotel’s numeric Hotels.com id from a name and city search, with a confidence level
- price_per_night, price_per_night_is
- the headline price, and whether it is the stay total or a nightly figure
- total, nightly
- the stay total and nightly price, when Hotels.com labels them
- rooms[].rate_plans[]
- price per rate plan, with total, nightly and taxes_and_fees
- refundable, cancellation_text
- whether the plan can be cancelled for free, and Hotels.com’s wording
- payment_model, pay_now
- pay now or pay at the property
- availability
- available, sold out or a minimum stay
- reviews[]
- rating out of 10, text, date, length of stay and labels such as Verified review
One call, structured JSON
POST /v1/ota/hotels/rooms, 12 credits per successful call.
curl -X POST "https://api.scrapercompany.com/v1/ota/hotels/rooms" \
-H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"property_id": "12570",
"check_in": "2027-01-24",
"nights": 1,
"market": "US"
}'{
"property_id": "12570",
"market": "US",
"check_in": "2027-04-16",
"check_out": "2027-04-17",
"nights": 1,
"currency": "USD",
"requested_currency": "USD",
"currency_verified": true,
"available": true,
"sold_out": false,
"availability": "available",
"is_soldout": false,
"cheapest_rate": 475,
"rooms": [
{
"name": "Room, 2 Double Beds",
"unit_id": "16572",
"cheapest_rate": 635,
"rate_plans": [
{
"plan_id": "266071193",
"price": 635,
"price_text": "$635 total",
"currency": "USD",
"refundable": false,
"refundable_until": "",
"pay_now": true,
"rate_code": "266071193",
"rate_category": "advance_purchase",
"rate_category_source": "brand_flag",
"rate_code_scope": "room",
"provenance": {
"schema_version": 1,
"observation_id": "rateobs_0123456789abcdef0123456789abcdef",
"collection_id": "ratecol_0123456789abcdef0123456789abcdef",
"observed_at": "2026-08-07T01:23:45.678Z",
"source": "hotels_com",
"source_kind": "ota_rate_plan",
"source_property_id": "12570",
"requested_market": "US",
"requested_currency": "USD",
"returned_currency": "USD",
"price_basis": "stay_rate_plan",
"derivation": "upstream",
"upstream_rate_id": "266071193"
},
"room_type_id": "16572",
"payment_model": "PAY_NOW",
"hotel_collect": false,
"total": 635,
"nightly": 509,
"taxes_and_fees": 126,
"taxes_and_fees_provenance": {
"schema_version": 1,
"observation_id": "rateobs_0123456789abcdef0123456789abcdef",
"collection_id": "ratecol_0123456789abcdef0123456789abcdef",
"observed_at": "2026-08-07T01:23:45.678Z",
"source": "hotels_com",
"source_kind": "ota_rate_plan",
"source_property_id": "12570",
"requested_market": "US",
"requested_currency": "USD",
"returned_currency": "USD",
"price_basis": "taxes_and_fees_combined",
"derivation": "total_minus_nightly_times_nights",
"upstream_rate_id": "266071193"
},
"total_text": "$635 total",
"nightly_text": "$509 nightly",
"taxes_and_fees_included": true,
"cancellation_text": "Non-Refundable",
"extras_text": "No extras",
"member_only": false,
"inventory_type": "MERCHANT",
"business_model": "EXPEDIA_COLLECT"
},
{
"plan_id": "266071191",
"price": 742,
"price_text": "$742 total",
"currency": "USD",
"refundable": true,
"refundable_until": "Nov 14",
"pay_now": false,
"room_type_id": "16572",
"payment_model": "PAY_LATER",
"hotel_collect": true,
"total": 742,
"nightly": 599,
"taxes_and_fees": 143,
"total_text": "$742 total",
"nightly_text": "$599 nightly",
"taxes_and_fees_included": true,
"cancellation_text": "Fully refundable before Nov 14",
"extras_text": "No extras",
"member_only": false,
"inventory_type": "DIRECT_AGENCY",
"business_model": "HOTEL_COLLECT"
}
]
},
{
"name": "Suite, Multiple Beds, Non Smoking",
"unit_id": "325392434",
"rate_plans": []
}
]
}Every field, documented before you buy
What one POST /v1/ota/hotels/rooms call returns: 18 fields with their type and a value from the example above, then every input the call takes.
In the response
| Field | Type | Example | What it is |
|---|---|---|---|
| property_id | string | "12570" | |
| market | string | "US" | |
| check_in | string (date) | "2027-04-16" | Check-in date (YYYY-MM-DD). |
| check_out | string (date) | "2027-04-17" | Check-out date (YYYY-MM-DD). |
| nights | integer | 1 | Nights in the stay. |
| currency | string | "USD" | ISO 4217 currency code of the prices. |
| requested_currency | string | "USD" | |
| currency_verified | boolean | true | |
| available | boolean | true | Whether it can be booked. |
| sold_out | boolean | false | True when nothing can be booked for these dates. |
| availability | string | "available" | Available, sold out or a minimum stay |
| is_soldout | boolean | false | True when nothing can be booked for this date. |
| cheapest_rate | number | null | 475 | |
| rooms | array of object | ||
| rooms[].name | string | "Room, 2 Double Beds" | Name as the site shows it. |
| rooms[].unit_id | string | "16572" | |
| rooms[].cheapest_rate | number | null | 635 | |
| rooms[].rate_plans | array of object | Price per rate plan, with total, nightly and taxes_and_fees |
Arrays show their first item; every item has the same fields. Full schema in the API reference
In the request
| Input | Type | Required | What it does |
|---|---|---|---|
| property_id | string | Required | Numeric id returned by POST /v1/ota/hotels/search, or from hotels.com/h38766175.Hotel-Information (not the legacy ho… number).Min length 1. |
| check_in | string (date) | Required | First night of the stay, YYYY-MM-DD. |
| nights | integer | Optional | Length of stay.Default 1. Min 1, max 30. |
| adults | integer | Optional | Adults in the room.Default 2. Min 1, max 8. |
| market | string | Optional | Point-of-sale; also selects the currency.Default US. |
Endpoints and price per call
Credits per successful call, and what 1,000 calls cost: from a credit pack down to the Scale plan. Failed requests cost nothing.
| Endpoint | What it returns | Credits | Per 1,000 calls |
|---|---|---|---|
| Hotel search POST /v1/ota/hotels/search | Hotels.com property id for a hotel name and city, with match confidence | 2 credits | $4.00 – $1.20 |
| Headline price POST /v1/ota/hotels | The lead price for one stay, with labelled total and nightly figures | 12 credits | $24.00 – $7.18 |
| Rooms and rate plans POST /v1/ota/hotels/rooms | Every room type and rate plan for one stay | 12 credits | $24.00 – $7.18 |
| Reviews POST /v1/ota/hotels/reviews | Guest reviews, newest first, up to 25 per page | 2 credits | $4.00 – $1.20 |
Your first call in three steps
- 01
Get an API key
Create an account and verify your email, then copy a key from the dashboard. The free trial is 500 free calls, once, no card needed.
- 02
Send POST /v1/ota/hotels/rooms
Put the key in the
x-api-keyheader and passproperty_idandcheck_in. Every other input is optional and listed above. - 03
Read the JSON
The answer is one JSON object with
property_id,market,check_in,check_outandnights, typed and named the same way on every call. A failed call costs 0 credits, so retrying is free.
Limits and coverage
- Where it works
- Point-of-sale specific prices
- Up to 30 nights per stay (
nights) - Up to 8 adults per call (
adults)
Is it legal to scrape Hotels.com?
It depends on what you collect and what you do with it. Here is what the API does, and what stays with you once the data is yours.
Public pages only
The API reads what Hotels.com shows anyone who opens the page without signing in. It uses no account and opens nothing behind a paywall.
Facts are not the same as content
A price on a date, a rating or a count is a fact, and copyright does not protect facts. Review text, photos, descriptions and transcripts belong to their authors or the site. Counting, scoring or summarising them is a different use from republishing them, and republishing usually needs permission.
Databases have their own right in the EU and UK
Whoever invested in building a database there can stop others taking a substantial part of it, and repeated extraction of small parts can add up to a substantial part. Collect the fields and dates you need, not a copy of Hotels.com.
Personal data is yours to handle
Guest reviews carry reviewer names, home countries and sometimes photos; host names appear on rental listings. If you keep it, the GDPR and UK GDPR apply to people in Europe and the UK, and other places have their own privacy laws: you need a lawful basis, must tell people you hold their data unless an exemption applies, should collect no more than you need, and should delete it on a schedule. The simplest route is not to keep it: drop names and handles before you store anything. A hashed name is still personal data.
The site’s terms, and ours
The terms of use of Hotels.com may limit automated access to it or reuse of its data. Our Terms make you responsible for how you use the data you collect, for following the terms of the sites it comes from, for data protection law, and for having the rights you need.
This is general information, not legal advice. For a specific use, ask a lawyer where you operate. Hotels.com is a trademark of its owner. ScraperCompany is independent: not affiliated with or endorsed by Hotels.com, and this is not an official Hotels.com API.
Frequently asked questions
Read next
Guides
Does Hotels.com have a public API?
Hotels.com does not publish a developer API of its own. It is an Expedia Group brand, and Expedia Group’s partner APIs are open by application to businesses that sell its inventory or supply rooms. ScraperCompany is independent of Expedia Group: this API reads the prices, rooms and reviews the public Hotels.com sites show.
How do I find a hotel’s Hotels.com property id?
Send the hotel name and city to the hotel search endpoint and store recommended_match.property_id. In a URL like hotels.com/h38766175.Hotel-Information, the id is 38766175. Many page URLs carry an older number after /ho instead; the price endpoints read that as an unknown hotel and answer that no rooms are available, so use the search endpoint’s id.
Why is price_per_night sometimes the price of the whole stay?
It is the headline price as Hotels.com shows it, and on the US and German sites that headline is the stay total including taxes and fees. price_per_night_is says whether it is a stay total, a nightly price or unknown. Use total and nightly when you need a figure with a fixed meaning.
Can I compare Hotels.com prices across countries?
Not directly. Each Hotels.com site sets its own currency and shows prices on its own basis, so converting one site’s price into another currency does not give the other site’s price. Pick one market per comparison.
Are Hotels.com reviews the same as Expedia’s?
No. Both are Expedia Group brands, but each site keeps its own guest reviews. Use the Hotels.com reviews endpoint for Hotels.com and the Expedia reviews endpoint for Expedia.
Do failed requests cost credits?
No. A failed or blocked call (any 4xx or 5xx response) costs 0 credits, and so does a search page that comes back empty. You pay only for successful results.
How do I get an API key?
Create an account on the sign-up page and verify your email. You get a free trial of 500 free calls, once, no card needed; for everything else, and after the trial, buy a credit pack (from $20) or pick a plan. You create and rotate keys yourself in the dashboard.
More APIs on the same key
All APIsLook a hotel up by name, then read what Booking.com shows a guest: a nightly price calendar, each room type with its rate plans, and the reviews with the property’s replies. Structured JSON, priced per call.
Expedia APILook a hotel up by name, then read what Expedia shows a guest for one stay: every room type and rate plan with its total, nightly price and cancellation terms, and the guest reviews with the property’s replies.
Agoda APILook a hotel up by name, then read every room type and rate plan Agoda shows a guest for one stay, with the stay total, discounts, meal plan and cancellation terms, in any of 23 currencies.
Tripadvisor APISend a hotel’s Tripadvisor id and a stay, and get the offers Tripadvisor lists from Booking.com, Expedia, Hotels.com and other sites, each with what its price means. Read the hotel’s guest reviews and management replies from the same id.
Airbnb APISearch Airbnb by destination or map area and get each listing with its trip price and breakdown. Then read a listing’s calendar: availability, stay rules and the price Airbnb itself quotes for the nights you choose. Structured JSON, priced per call.
Vrbo APISearch Vrbo for a destination and stay, then quote any rental for exact dates: Vrbo’s nightly figure, its fee-inclusive total, the payment model and whether the dates can be booked. Structured JSON, priced per call.
Start with 500 free calls
Create an account and verify your email: your own API keys and 500 free calls, once, no card needed. When you need more, pay $20 as you go or pick a plan from $39 a month.
No card needed. Then $20 for 10,000 credits, or plans from $39 a month.
- Failed calls cost 0 credits
- Cancel anytime
- Unused pack credits refundable for 60 days
- Public status page
- Talk to salesVolume, custom terms, invoices
- Read the quickstartFirst call in five minutes