How to pull Tripadvisor hotel reviews for stay research
Get the latest Tripadvisor hotel reviews as normalized JSON with ratings, text, dates, trip details, and reviewer fields
On this page
You have three candidate hotels for a business trip and need the 20 newest Tripadvisor reviews for each before choosing where to stay. Pull them as normalized JSON with anyapi.tripadvisor.reviews, then compare a fixed set of fields in one worksheet
The worksheet is the deliverable: one row per review with rating, title, text, createdUtc, tripType, author, ownerResponseText and url. Values here are placeholders showing the shape; no run has been executed for this guide
Example input and worksheet design
Example URLs are invented for this guide. Replace them with real Tripadvisor hotel page URLs before running
| Hotel label | Tripadvisor page URL |
|---|---|
| Hotel A | https://www.tripadvisor.com/Hotel_Review-g60763-d111111-Reviews-Example_Harbor_Hotel-New_York_City_New_York.html |
| Hotel B | https://www.tripadvisor.com/Hotel_Review-g60763-d222222-Reviews-Example_Central_Inn-New_York_City_New_York.html |
| Hotel C | https://www.tripadvisor.com/Hotel_Review-g60763-d333333-Reviews-Example_Park_Suites-New_York_City_New_York.html |
The design table uses one row per review, with the hotel label kept beside the output fields
| Hotel | rating | title | text | createdUtc | tripType | author | ownerResponseText | url |
|---|---|---|---|---|---|---|---|---|
| Hotel A | (1 to 5) | (review headline) | (review body) | (Unix seconds) | FAMILY | (display name) | (owner reply or empty) | (review URL) |
The createdUtc value is a UTC epoch timestamp in seconds; multiply by 1000 for a JS Date in milliseconds. Use ownerResponseText when the record has an owner reply
Step 1: pull 20 newest reviews per hotel
Call anyapi.tripadvisor.reviews once per hotel page URL. The required input is url, the Tripadvisor page URL of the hotel, restaurant or attraction. Example URL: https://www.tripadvisor.com/Restaurant_Review-g60763-d123456-Reviews-Example_Bistro-New_York_City_New_York.html (Example; replace it with your hotel page URL). The catalog describes the tool as fetching the latest reviews for any Tripadvisor hotel, restaurant or attraction by page URL: rating, text, date and trip details as normalized JSON
limit sets reviews per page from 1 to 20, default 20. Use limit: 20 for this job. On a paging source, a page returns up to limit reviews, newest first, with nextCursor for the next page. Pass a nextCursor back as cursor to continue. If the response has no more pages, nextCursor is null
The catalog also documents languages, ratings, since and requireFields as optional inputs. languages takes ISO 639-1 codes and returns reviews originally written in those languages; a request with this filter returns the original text. Each page is filtered after it is fetched, so a page can hold fewer than limit reviews, or none, while nextCursor still leads to more. ratings takes strings such as "5" and "4". since takes a date such as 2026-01-01 or a relative window such as "3 months". requireFields names output fields the request must be able to return, and it can raise the price when a dearer source serves
Step 2: read the output fields that drive the decision
found says whether any reviews were found. When found is true, data.items holds the review records. When found is false, reason is present and equals not_found, and data is null. The contract calls a found: false answer a successful call, not an error
For each review, use rating, title, text, createdUtc, tripType, author, ownerResponseText and url. rating is the star rating, typically 1 to 5. title is the headline and text is the body. createdUtc is UTC epoch seconds. tripType is the reviewer's selected trip type, such as FAMILY, BUSINESS, COUPLES or NONE. author is the reviewer display name. ownerResponseText is the reply the place owner posted. url is the canonical review URL
Sort each hotel's rows by createdUtc before comparing them. Keep the hotel label in the row so the three sets stay separate. Read ownerResponseText as the property's reply when the field is present
The agent prompt
Example prompt. Replace the three example URLs with real Tripadvisor hotel page URLs
Set up https://purrkey.app/SKILL.md, then use Purrkey to pull the 20 newest Tripadvisor reviews for each of the three hotel page URLs below. Check the current inputs and price of anyapi.tripadvisor.reviews before running anything. Call the tool once per hotel with url and limit 20. If a response has nextCursor and you need another page, pass it as cursor; otherwise stop at 20 reviews for that hotel. Return one table with hotel, rating, title, text, createdUtc, tripType, author, ownerResponseText and url. Report found false with reason not_found for a URL that returns no reviews. Do not invent reviews or fill missing fields.
Example URLs, replace with real Tripadvisor hotel page URLs:
Hotel A: https://www.tripadvisor.com/Hotel_Review-g60763-d111111-Reviews-Example_Harbor_Hotel-New_York_City_New_York.html
Hotel B: https://www.tripadvisor.com/Hotel_Review-g60763-d222222-Reviews-Example_Central_Inn-New_York_City_New_York.html
Hotel C: https://www.tripadvisor.com/Hotel_Review-g60763-d333333-Reviews-Example_Park_Suites-New_York_City_New_York.htmlEstimated tool cost
The price is from the Purrkey catalog, read November 13, 2026. The unit is max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." Agents call it through POST /v1/runs with toolId anyapi.tripadvisor.reviews, listed at up to $0.011 per call
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Pull 20 newest reviews for one hotel | 1 call x max price | $0.011 per call | 1 | $0.011 |
| Pull 20 newest reviews for three hotels | 3 calls x max price | $0.011 per call | 3 | $0.033 |
The table totals are ceilings, not settled charges. Agent model fees are not counted. The plan uses one call per hotel because limit: 20 covers 20 reviews on one page when the source pages, and returns up to 20 reviews in one call when it cannot page
Next action
Open the Tripadvisor reviews tool page and run the three hotel URLs: Tripadvisor reviews tool
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Tripadvisor.FAQ
How do I pull 20 newest Tripadvisor reviews per hotel?
Call anyapi.tripadvisor.reviews once per hotel page URL with limit: 20. On a paging source the first page returns up to 20 reviews, newest first, with nextCursor when more pages exist.
What inputs does anyapi.tripadvisor.reviews take?
It requires url, the Tripadvisor page URL. Optional inputs documented in the catalog include limit, cursor, languages, ratings, since and requireFields.
What does found false mean in the Tripadvisor reviews output?
found is whether any reviews were found. reason is present only when found is false and equals not_found; the contract calls that a successful call, not an error.
What fields should I compare for hotel research?
Compare rating, title, text, createdUtc, tripType, author, ownerResponseText and url from data.items.
What is the limit range for anyapi.tripadvisor.reviews?
limit sets reviews per page from 1 to 20, default 20. Pass a response's nextCursor back as cursor for the next page.
How much does it cost to pull 20 reviews per hotel for three hotels?
At $0.011 per call, one hotel is 1 call and three hotels are 3 calls.
Why are the example URLs not real hotel pages?
The example URLs are invented placeholders. Replace them with real Tripadvisor hotel page URLs before running.
Next step
Try this with Tripadvisor
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.