Tripadvisor API for hotel prices and reviews
Send 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.
{
"search_parameters": {
"engine": "tripadvisor_property",
"location_id": "17768161",
"check_in_date": "2027-03-26",
"check_out_date": "2027-03-30",
"nights": 4,
"adults": 2,
"rooms": 1,
"currency": "USD"
},
"property": {
"location_id": "17768161",
"hotel_id": "17768161",
"price_per_night": 337,
…Tripadvisor is both a review site and a hotel metasearch: one hotel page lists offers from several booking sites next to the hotel’s traveller reviews. Teams read it to see which site shows the lowest price for a stay and to follow what guests write on a 5-point scale. Tripadvisor’s official API is a content API for locations, photos and reviews; this API returns the offers and reviews on the hotel’s public page.
Prices on Tripadvisor are not all the same kind. Tripadvisor picks a pricing mode for each hotel, so the lead price can be nightly or for the whole stay, before or after taxes. Every offer comes back with its mode and an all-in stay total, so offers can be compared. Offers can arrive over several seconds; the API waits for them and says whether the list is complete, and it refuses a reply for a different stay rather than return it. Each call prices one stay of up to 30 nights, without room types or cancellation terms.
What you get
- offers[].provider
- the booking site behind each offer, such as Booking.com or Expedia
- price, pricing_mode
- the lead price and what it means: nightly or whole stay, before or after taxes
- total
- the all-in stay total for the offer
- nightly, taxes_included
- the nightly price before taxes, and whether the lead price includes them
- is_member_rate
- whether the offer is a member price
- property.price_per_night
- the cheapest offer’s nightly price before taxes
- complete, provider_statuses
- whether every provider answered, and how many had a price
- reviews[]
- rating out of 5, title, text, trip type, month of stay, language and the management reply
One call, structured JSON
POST /v1/ota/tripadvisor, 12 credits per successful call.
curl -X POST "https://api.scrapercompany.com/v1/ota/tripadvisor" \
-H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"check_in": "2027-01-24",
"nights": 1,
"currency": "USD"
}'{
"search_parameters": {
"engine": "tripadvisor_property",
"location_id": "17768161",
"check_in_date": "2027-03-26",
"check_out_date": "2027-03-30",
"nights": 4,
"adults": 2,
"rooms": 1,
"currency": "USD"
},
"property": {
"location_id": "17768161",
"hotel_id": "17768161",
"price_per_night": 337,
"total": 1348,
"lead_price": 1348,
"lead_price_is": "stay",
"pricing_mode": "BASE_PLUS_FEES_FULL_STAY",
"currency": "USD",
"requested_currency": "USD",
"currency_verified": true,
"complete": true,
"availability": "available",
"is_soldout": false,
"provider_statuses": {
"AVAILABLE": 3,
"UNAVAILABLE": 1
},
"provenance": {
"schema_version": 1,
"observation_id": "rateobs_0123456789abcdef0123456789abcdef",
"collection_id": "ratecol_0123456789abcdef0123456789abcdef",
"observed_at": "2026-08-07T01:23:45.678Z",
"source": "tripadvisor",
"source_kind": "metasearch",
"source_property_id": "17768161",
"requested_currency": "USD",
"returned_currency": "USD",
"price_basis": "nightly_before_taxes_including_fees",
"derivation": "stay_price_divided_by_nights"
}
},
"offers": [
{
"provider": "Booking.com",
"provider_name": "Booking.com",
"location_id": "17768161",
"check_in": "2027-03-26",
"check_out": "2027-03-30",
"price": 1700,
"price_value": 1700,
"price_text": "$1,700",
"price_is": "stay",
"pricing_mode": "BASE_PLUS_FEES_FULL_STAY",
"taxes_included": false,
"nightly": 425,
"nightly_derived": true,
"total": 1980,
"total_text": "$1,980",
"currency": "USD",
"price_currency": "USD",
"is_member_rate": false,
"room_plan": "",
"offer_type": "chevron",
"provenance": {
"schema_version": 1,
"observation_id": "rateobs_0123456789abcdef0123456789abcdef",
"collection_id": "ratecol_0123456789abcdef0123456789abcdef",
"observed_at": "2026-08-07T01:23:45.678Z",
"source": "tripadvisor",
"source_kind": "metasearch",
"source_property_id": "17768161",
"requested_currency": "USD",
"returned_currency": "USD",
"price_basis": "stay_before_taxes_including_fees",
"derivation": "parsed_display_price"
}
}
],
"meta": {
"source": "tripadvisor",
"collection_id": "ratecol_0123456789abcdef0123456789abcdef",
"observed_at": "2026-08-07T01:23:45.678Z",
"nights": 4,
"elapsed_s": 5.836,
"offers": 11,
"polls": 6,
"warnings": []
},
"resolved": {
"location_id": "17768161",
"input": "Moxy Boston Downtown",
"input_kind": "name",
"geo_id": "60745",
"type": "hotel",
"name": "Moxy Boston Downtown",
"url": "https://www.tripadvisor.com/Hotel_Review-g60745-d17768161-Reviews-Moxy_Boston_Downtown-Boston_Massachusetts.html",
"match": {
"confidence": "high",
"match_score": 0.97,
"city": "Boston, Massachusetts"
}
}
}Every field, documented before you buy
What one POST /v1/ota/tripadvisor call returns: 54 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 | object | ||
| property.location_id | string | "17768161" | |
| property.hotel_id | string | "17768161" | |
| property.price_per_night | number | null | 337 | Cheapest provider offer. |
| property.total | integer | 1348 | Total for the whole stay or request, in currency. |
| property.lead_price | integer | 1348 | |
| property.lead_price_is | string | "stay" | |
| property.pricing_mode | string | "BASE_PLUS_FEES_FULL_STAY" | |
| property.currency | string | "USD" | The requested currency. |
| property.requested_currency | string | "USD" | |
| property.currency_verified | boolean | true | |
| property.complete | boolean | true | |
| property.availability | string | "available" | |
| property.is_soldout | boolean | false | True when nothing can be booked for this date. |
| property.provider_statuses | object | ||
| property.provenance | object | null | Provenance of the cheapest priced row; null when nothing priced. | |
| offers | array of object | ||
| offers[].provider | string | "Booking.com" | The booking site behind each offer, such as Booking.com or Expedia |
| offers[].provider_name | string | "Booking.com" | Same value as provider. |
| offers[].location_id | string | "17768161" | |
| offers[].check_in | string (date) | "2027-03-26" | Check-in date (YYYY-MM-DD). |
| offers[].check_out | string (date) | "2027-03-30" | Check-out date (YYYY-MM-DD). |
| offers[].price | number | 1700 | The price as the site shows it, in currency. |
| offers[].price_value | number | 1700 | Same value as price. |
| offers[].price_text | string | "$1,700" | |
| offers[].price_is | string | "stay" | |
| offers[].pricing_mode | string | "BASE_PLUS_FEES_FULL_STAY" | |
| offers[].taxes_included | boolean | false | |
| offers[].nightly | integer | 425 | |
| offers[].nightly_derived | boolean | true | |
| offers[].total | integer | 1980 | Total for the whole stay or request, in currency. |
| offers[].total_text | string | "$1,980" | |
| offers[].currency | string | "USD" | ISO 4217 currency code of the prices. |
| offers[].price_currency | string | "USD" | Same value as currency. |
| offers[].is_member_rate | boolean | false | |
| offers[].room_plan | string | "" | |
| offers[].offer_type | string | "chevron" | |
| offers[].provenance | object | Where, when and how one normalized price was observed. | |
| meta | object | About the call: what was asked for and how big the answer is. | |
| meta.collection_id | string | "ratecol_0123456789abcdef0123456789abcdef" | One id shared by every price collected in this response, for joining rows later. |
| meta.observed_at | string | "2026-08-07T01:23:45.678Z" | When the data was read, in UTC (ISO 8601). |
| meta.nights | integer | 4 | Nights in the stay. |
| meta.offers | integer | 11 | |
| meta.polls | integer | 6 | |
| meta.warnings | array | ||
| resolved | object | ||
| resolved.location_id | string | "17768161" | |
| resolved.input | string | "Moxy Boston Downtown" | |
| resolved.input_kind | string | "name" | |
| resolved.geo_id | string | "60745" | |
| resolved.type | string | "hotel" | |
| resolved.name | string | "Moxy Boston Downtown" | Name as the site shows it. |
| resolved.url | string | "https://www.tripadvisor.com/Hotel_Revie…" | Address of the page the data came from. |
| resolved.match | 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 |
|---|---|---|---|
| location_id | string | null | Optional | Numeric Tripadvisor id (the digits after -d in a page URL), e.g.Min length 1, max length 2048. |
| url | string | null | Optional | Any Tripadvisor page for the location, on any Tripadvisor domain: Hotel_Review, Restaurant_Review, Attraction_Review, ShowUserReviews ...Min length 8, max length 2048. |
| name | string | null | Optional | Place name, resolved with Tripadvisor's own search.Min length 2, max length 200. |
| city | string | Optional | With name: the city, sent with the name and used to rank same-name places elsewhere lower.Default . Max length 200. |
| 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 | One of 30 supported currencies.Default USD. |
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 |
|---|---|---|---|
| Metasearch prices POST /v1/ota/tripadvisor | Offers from Booking.com, Expedia, Hotels.com and other sites for one stay | 12 credits | $24.00 – $7.18 |
| Reviews POST /v1/ota/tripadvisor/reviews | Reviews for hotels, restaurants and attractions, newest first: up to 30 per page, or many pages in one call with max_reviews, with rating, traveler-type, keyword and language filters | 1 credit | $2.00 – $0.60 |
| Details POST /v1/ota/tripadvisor/details | Rating breakdown, sub-ratings, ranking, hours, amenities and photos for one place | 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/tripadvisor
Put the key in the
x-api-keyheader and passcheck_in. Every other input is optional and listed above. - 03
Read the JSON
The answer is one JSON object with
property,offers,metaandresolved, 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
- Worldwide
- Up to 30 nights per stay (
nights) - Up to 8 adults per call (
adults) - Up to 8 rooms per call (
rooms) - Name search for prices is not available yet: take the location id from the URL, the number after -d in /Hotel_Review-g…-d12345-….
- Reviews and details also take a name and city; a name with no single confident match answers 404 with candidates, uncharged.
Is it legal to scrape Tripadvisor?
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 Tripadvisor 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 Tripadvisor.
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 Tripadvisor 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. Tripadvisor is a trademark of its owner. ScraperCompany is independent: not affiliated with or endorsed by Tripadvisor, and this is not an official Tripadvisor API.
Frequently asked questions
Read next
Guides
Does Tripadvisor have an official API?
Yes, for content. Tripadvisor’s official API, now its Terra platform, returns location details, photos and a set number of recent reviews for hotels, restaurants and attractions, with usage-based pricing and rules for display and caching. Its documented endpoints do not include the booking-site prices on a hotel page. ScraperCompany is independent of Tripadvisor: this API reads the offers and reviews a visitor sees on the hotel’s Tripadvisor page.
How do I find a hotel’s Tripadvisor locationId?
Take the number after -d in the hotel’s Tripadvisor URL. For tripadvisor.com/Hotel_Review-g60745-d17768161-Reviews-Moxy_Boston_Downtown-Boston_Massachusetts.html, the locationId is 17768161. The same id works for prices and reviews. Search by hotel name is not available yet.
Which booking sites appear in Tripadvisor prices?
Whichever sites Tripadvisor lists for that hotel and stay, often including Booking.com, Expedia and Hotels.com. Each offer names its provider. Metasearch prices can trail the booking site’s own, so for a site’s exact price and rate plans use that site’s own endpoints.
Are Tripadvisor prices per night or per stay?
It depends on the hotel: Tripadvisor chooses whether the lead price is nightly or for the whole stay, and before or after taxes. Each offer returns pricing_mode, price_is and taxes_included next to price, plus total, the all-in stay total. Compare offers on total, or on nightly where it is given.
How many Tripadvisor reviews does one call return?
Up to 30 per page, newest first, with the hotel’s review count in total; page through the rest with offset, adding limit each time. To read many at once, set max_reviews instead: the API fetches Tripadvisor’s pages of 20 in parallel, removes duplicates and bills each page it fetched. Add since_date to stop at reviews older than that date, which for a daily refresh is usually one page. Ratings are on Tripadvisor’s 5-point scale, and stay_date is the month of the stay (YYYY-MM), not a day.
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.
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