Hotel direct rates API for prices on the hotel’s own website
Send a hotel’s homepage and a stay. The API finds the booking link, works out which booking engine runs it and returns every room and rate plan the hotel sells direct, with public and member prices kept apart.
{
"search_parameters": {
"engine": "/v1/official",
"source_url": "https://www.ihg.com/intercontinental/hotels/us/en/new-york/nychc/hoteldetail",
"booking_url": "https://www.ihg.com/intercontinental/hotels/us/en/new-york/nychc/hoteldetail",
"check_in_date": "2027-04-09",
"check_out_date": "2027-04-10",
"adults": 2,
"currency": "USD"
},
"source_url": "https://www.ihg.com/intercontinental/hotels/us/en/new-york/nychc/hoteldetail",
"booking_url": "https://www.ihg.com/intercontinental/hotels/us/en/new-york/nychc/hoteldetail",
"collection_id": "ratecol_0123456789abcdef0123456789abcdef",
"observed_at": "2026-08-07T01:23:45.678Z",
"property_ref": "NYCHC",
…Rate parity starts with the direct price: what the hotel charges on its own website, the figure every OTA is measured against. Getting it is hard because there is no common format. A hotel’s site hands bookings to a booking-engine vendor or to its chain’s own site, and each one answers differently. This API reads the engine the hotel actually uses and returns its rooms and rates in one shape, whichever engine answered.
You never name the vendor. The API follows the booking link from the homepage, through tracking redirects, and works out which booking engine runs it. It supports over 50 booking engines, with more added regularly, chain sites included. Member and loyalty prices are labelled with access_type and kept out of cheapest_rate, so the headline stays comparable with what a signed-out guest sees on an OTA.
What you get
- booking_url
- the booking page the rates were read from
- rooms[]
- each room with its name, code, maximum occupancy, availability and cheapest rate
- rooms[].rates[]
- price, stay total, currency, rate plan name and whether tax is included
- rates[].access_type
- public, member, points or points and cash, from the hotel’s own labels
- cheapest_rate, cheapest_member_rate
- the lowest public price, for parity, and the lowest member price beside it
- loyalty
- the loyalty program, the best public, member and points rates, and the member discount against public
- comparison
- on the OTA comparison: lowest price, spread and whether the sources can be compared
One call, structured JSON
POST /v1/official, from 4 credits per successful call.

curl -X POST "https://api.scrapercompany.com/v1/official" \
-H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.ihg.com/intercontinental/hotels/us/en/new-york/nychc/hoteldetail",
"check_in": "2027-01-24",
"nights": 1,
"currency": "USD"
}'{
"search_parameters": {
"engine": "/v1/official",
"source_url": "https://www.ihg.com/intercontinental/hotels/us/en/new-york/nychc/hoteldetail",
"booking_url": "https://www.ihg.com/intercontinental/hotels/us/en/new-york/nychc/hoteldetail",
"check_in_date": "2027-04-09",
"check_out_date": "2027-04-10",
"adults": 2,
"currency": "USD"
},
"source_url": "https://www.ihg.com/intercontinental/hotels/us/en/new-york/nychc/hoteldetail",
"booking_url": "https://www.ihg.com/intercontinental/hotels/us/en/new-york/nychc/hoteldetail",
"collection_id": "ratecol_0123456789abcdef0123456789abcdef",
"observed_at": "2026-08-07T01:23:45.678Z",
"property_ref": "NYCHC",
"check_in": "2027-04-09",
"check_out": "2027-04-10",
"nights": 1,
"currency": "USD",
"sold_out": false,
"cheapest_rate": 631,
"cheapest_member_rate": 612.07,
"member_rates_returned": 2,
"rooms_returned": 1,
"elapsed_s": 1,
"rooms": [
{
"name": "Premium Room",
"code": "CDXG",
"max_occupancy": 2,
"quantity": 9,
"available": true,
"cheapest_rate": 631,
"rates": [
{
"currency": "USD",
"rate_plan": "Reward Nights",
"rate_code": "IVANI",
"rate_category": "points",
"rate_category_source": "brand_flag",
"refundable": true,
"access_type": "points",
"loyalty_points": 123000,
"loyalty_program": "IHG One Rewards",
"points": 123000,
"points_basis": "stay",
"is_discounted": false
},
{
"price": 79,
"currency": "USD",
"rate_plan": "Reward Nights (points + cash)",
"rate_code": "IVANI",
"rate_category": "points",
"rate_category_source": "brand_flag",
"refundable": true,
"access_type": "points_and_cash",
"loyalty_points": 113000,
"loyalty_cash": 79,
"loyalty_program": "IHG One Rewards",
"points": 113000,
"points_basis": "stay",
"cash_component": 79,
"is_discounted": false
}
]
}
],
"loyalty": {
"program": "IHG One Rewards",
"exposed_unauthenticated": {
"program": "IHG One Rewards",
"member": true,
"points": true,
"points_and_cash": true,
"login_required_for": []
},
"rates_by_access_type": {
"public": 2,
"member": 2,
"points": 1,
"points_and_cash": 2,
"corporate": 0,
"qualified": 0
},
"public_best": {
"room": "Premium Room",
"room_code": "CDXG",
"rate_plan": "Early Saver Rate",
"price": 631,
"currency": "USD"
},
"member_best": {
"room": "Premium Room",
"room_code": "CDXG",
"rate_plan": "Early Saver Member Exclusive",
"price": 612.07,
"currency": "USD",
"discount_vs_public": {
"amount": 18.93,
"percent": 3,
"public_price": 631,
"public_rate_plan": "Early Saver Rate",
"currency": "USD",
"basis": "room_cheapest_public"
}
},
"points_best": {
"room": "Premium Room",
"room_code": "CDXG",
"rate_plan": "Reward Nights",
"access_type": "points",
"points": 123000,
"points_basis": "stay"
},
"points_plus_cash_best": {
"room": "Premium Room",
"room_code": "CDXG",
"rate_plan": "Reward Nights (points + cash)",
"access_type": "points_and_cash",
"points": 103000,
"points_basis": "stay",
"cash_component": 149,
"currency": "USD"
},
"points_value_cents_per_point": {
"value": 0.513,
"unit": "cents_per_point",
"derivation": "derived",
"formula": "(public_cash - cash_component) / points * 100",
"currency": "USD",
"room": "Premium Room",
"public_cash": 631,
"public_rate_plan": "Early Saver Rate",
"cash_component": 0,
"points": 123000,
"points_rate_plan": "Reward Nights",
"points_access_type": "points",
"public_price_basis": "stay"
}
}
}Every field, documented before you buy
What one POST /v1/official call returns: 31 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 |
|---|---|---|---|
| source_url | string | "https://www.ihg.com/intercontinental/ho…" | |
| booking_url | string | "https://www.ihg.com/intercontinental/ho…" | The booking page the rates were read from |
| collection_id | string | "ratecol_0123456789abcdef0123456789abcdef" | One id shared by every price collected in this response, for joining rows later. |
| observed_at | string | "2026-08-07T01:23:45.678Z" | When the data was read, in UTC (ISO 8601). |
| property_ref | string | "NYCHC" | The booking page's own property id (may be empty). |
| check_in | string (date) | "2027-04-09" | Check-in date (YYYY-MM-DD). |
| check_out | string (date) | "2027-04-10" | Check-out date (YYYY-MM-DD). |
| nights | integer | 1 | Nights in the stay. |
| currency | string | "USD" | ISO 4217 currency code of the prices. |
| sold_out | boolean | false | True when nothing can be booked for these dates. |
| cheapest_rate | number | null | 631 | Cheapest public rate across available rooms. |
| cheapest_member_rate | number | null | 612.07 | The lowest public price, for parity, and the lowest member price beside it |
| member_rates_returned | integer | 2 | |
| rooms_returned | integer | 1 | |
| rooms | array of object | Each room with its name, code, maximum occupancy, availability and cheapest rate | |
| rooms[].name | string | "Premium Room" | Name as the site shows it. |
| rooms[].code | string | "CDXG" | |
| rooms[].max_occupancy | integer | null | 2 | |
| rooms[].quantity | integer | null | 9 | |
| rooms[].available | boolean | true | Whether it can be booked. |
| rooms[].cheapest_rate | number | null | 631 | Cheapest PUBLIC rate in rates. |
| rooms[].rates | array of object | Price, stay total, currency, rate plan name and whether tax is included | |
| loyalty | object | The loyalty program, the best public, member and points rates, and the member discount against public | |
| loyalty.program | string | "IHG One Rewards" | |
| loyalty.exposed_unauthenticated | object | ||
| loyalty.rates_by_access_type | object | ||
| loyalty.public_best | object | ||
| loyalty.member_best | object | ||
| loyalty.points_best | object | ||
| loyalty.points_plus_cash_best | object | ||
| loyalty.points_value_cents_per_point | object |
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 |
|---|---|---|---|
| url | string | Required | The hotel's public homepage or property page.Min length 8. |
| check_in | string (date) | Required | First night of the stay, YYYY-MM-DD. |
| check_out | string (date) | null | Optional | Departure date. |
| 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. |
| rooms | integer | Optional | Rooms requested.Default 1. Min 1, max 8. |
| currency | string | Optional | ISO 4217 code for the returned prices.Default USD. |
| qualified_rates | array of string | Optional | Also shop these eligibility-restricted rates where the hotel's engine offers them (Hilton, Marriott, Radisson): aaa, senior, government.Max items 3. |
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 |
|---|---|---|---|
| Direct rates POST /v1/official | Rooms and rate plans from the hotel’s own booking engine for one stay | from 4 credits | from $8.00 – $2.39 |
| OTA comparison POST /v1/ota/compare | The same stay on Booking.com, Expedia, Hotels.com and Agoda, side by side | 30 credits | $60.00 – $17.94 |
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/official
Put the key in the
x-api-keyheader and passurlandcheck_in. Every other input is optional and listed above. - 03
Read the JSON
The answer is one JSON object with
source_url,booking_url,collection_id,observed_atandproperty_ref, typed and named the same way on every call. A failed call costs 0 credits, so retrying is free.
Limits and coverage
- Official hotel websites: where it works
- Worldwide, wherever a supported booking engine runs
- OTA rate comparison: where it works
- Booking.com, Hotels.com, Agoda and Expedia
- Up to 30 nights per stay (
nights) - Up to 8 adults per call (
adults) - Up to 8 rooms per call (
rooms) - Official hotel websites: Most calls answer in a few seconds; a call can take up to a minute.
- Official hotel websites: Pair it with the OTA sources for rate parity monitoring.
- OTA rate comparison: comparison.comparable is false for a single priced source, mixed currencies or mixed price bases; minima and spreads are then left out rather than guessed.
- OTA rate comparison: GET /v1/ota/sources lists what each OTA can answer and what it costs, for free.
Is it legal to scrape hotel websites?
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 a hotel’s website 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 the site.
No personal data in the answer
These answers carry no information about people, so privacy laws such as the GDPR do not come into it until you join the data to people yourself.
The site’s terms, and ours
A site’s terms of use 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.
Frequently asked questions
Read next
- Official site rates guide
- Rate parity monitoring
- Compare OTA rates guide
- Free rate parity check for your hotel
- Hotel price API
Guides
Is this an official API from hotels or booking engines?
No. It is independent of the hotels and of the booking-engine vendors. It reads the public booking page a guest would use, without signing in, so it returns the rates any visitor can book.
Which booking engines are supported?
The API supports over 50 booking engines, with more added regularly, from independent booking-engine vendors to hotel-chain sites. You never name the vendor: it is detected from the hotel’s website. Most calls answer in a few seconds; a call can take up to a minute.
What happens if the hotel’s engine is not supported?
The call returns a 422 saying no supported booking engine was found. If the hotel’s website refuses the request for now, as some firewalls do, it returns a 503 with Retry-After instead. Neither costs anything, because failed calls are free.
How do I check rate parity with this API?
Get the direct price from POST /v1/official and the OTA prices for the same stay from POST /v1/ota/compare, then compare cheapest_rate with each OTA. Check the price basis first: each direct rate says whether tax is included, and the comparison flags OTA prices quoted on different bases and groups them by basis.
Are member and loyalty rates included?
Yes, when the hotel shows them to a signed-out guest. Each rate carries access_type, and member rates show their discount against the public rate. cheapest_rate stays public-only, so parity checks are not skewed by members-only prices.
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.
Hotels.com APIFind 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.
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.
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