Web research5 min readBy Purrkey team

How to search Tripadvisor places by keyword for a shortlist

Get a ranked Tripadvisor shortlist of hotels, restaurants, attractions, destinations, or forums from one keyword search

On this page

You have 40 hotel candidates across three city briefs and need a ranked Tripadvisor shortlist before a partner call. Run one serpapi.tripadvisor.search call per city with the hotels filter and a limit of 20, then put position, rating, and review count into a comparison table. The table decides which properties get a follow-up review pull. No run has been executed for this guide, so the table below is a design

The shortlist and its table design

The deliverable is one comparison table plus the q column that records which city brief produced each row. The columns are position, title, place_type, rating, reviews, location, link, place_id, description, and q. Values here are placeholders showing the shape

Example city queries, with the first query from the brief:

City briefqssrclimit
Shibuya exampleboutique hotels near Shibuya Stationh20
Kyoto exampleboutique hotels near Kyoto Stationh20
Osaka exampleboutique hotels near Namba Stationh20

Table design:

positiontitleplace_typeratingreviewslocationlinkplace_iddescriptionq
(rank)(hotel name)(place type)(number)(count)(area)(URL)(id)(text)(city query)

The example queries are invented placeholders. Replace them with the phrases from your three city briefs

serpapi.tripadvisor.search requires q in the contract. Use the phrase you would enter in normal Tripadvisor search; the contract allows a length from 1 to 500 characters and rejects control characters. ssrc is optional and accepts a, r, A, h, g, or f for the result type needed. Set ssrc to h for the hotel shortlist. In the enum, r is restaurants, A is things to do, h is hotels, g is destinations, and f is forums

limit is optional from 1 to 50. offset is optional from 0 to 500 and skips the given number of results for pagination

Each call can return at most 50 places, so use offset when a query has more candidates than one page. That limit sits next to this search step because it shapes the page size before you read any rating or review count

Read the output fields that drive the decision

The response carries engine and, when the search engine returned no results, a notice. The notice field matters for the shortlist because the search still counts when it is set. A places list holds the rows

For each row, position is the rank in the search result. rating and reviews give the comparison numbers for the partner call. place_type tells you whether the row is the kind of property the city brief asked for. title and location make the row readable in the table

place_id is the identifier to keep for a follow-up review pull. link is the row URL to store beside it. description gives the short text for context, and q records which city query produced the row. Sort the table by q, then by position, and read rating and reviews beside each row

For the review pull after the shortlist, the companion guide is pull Tripadvisor hotel reviews

Agent prompt for three city searches

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to call POST /v1/runs with the toolId to search Tripadvisor places for three hotel city briefs. Check the current inputs and price of serpapi.tripadvisor.search before running anything. Run one search per query below, with ssrc set to h and limit set to 20. Return a table with position, title, place_type, rating, reviews, location, link, place_id, description, and q. Keep the query text in q. Do not invent places. If a search returns no results, leave that query's rows empty and record the notice.

Example queries:
boutique hotels near Shibuya Station
boutique hotels near Kyoto Station
boutique hotels near Namba Station

The prompt uses the example queries above. Replace them with your own city briefs before running it. Keep the first pass to the three searches so the comparison table has one block per city

Estimated tool cost

Prices from the Purrkey catalog, read through on November 20, 2026. Successful runs settle at the actual AnyAPI charge. The totals below are ceilings

StepFormulaUnit pricePlanned quantityTotal
One city keyword searchcalls x max price$0.015 per call1$0.015
Three city keyword searches with 50 places eachcalls x max price$0.015 per call3$0.045

A search that returns no results still counts as one search. Failed searches are not charged. Agent model fees are not counted. The task's three searches at limit 20 also make three calls, so the three-call row covers the shortlist step

Open the Tripadvisor search tool and run the first city query. Use the returned position, rating, and reviews to fill the comparison table before you run the other two city briefs

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.
Explore Tripadvisor tools and pricing

FAQ

How do I search Tripadvisor places by keyword for a hotel shortlist?

Use q for the city phrase, ssrc set to h, and limit at 20 for each city brief. Sort the comparison table by q, then position, and read rating and reviews beside each row.

What inputs does serpapi.tripadvisor.search take?

q is required. ssrc is optional and accepts a, r, A, h, g, or f. limit is optional from 1 to 50 and offset is optional from 0 to 500.

Which output fields decide which hotels get a follow-up review pull?

position, rating, and reviews drive the comparison. place_id and link support the follow-up review pull, and q keeps the city brief attached to the row.

Does a Tripadvisor search with no results cost a call?

Yes. The notice field is set when the search engine returned no results, and the search still counts. Failed searches are not charged.

How many places can one serpapi.tripadvisor.search call return?

At most 50. Use offset when a query has more candidates than one page.

How much do three city keyword searches cost?

At most $0.045 at $0.015 per call for three calls.

What query should I use for a city hotel search?

Use the phrase you would enter in normal Tripadvisor search, such as the example boutique hotels near Shibuya Station. Replace the example with your city brief.

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.

See Tripadvisor tools

Share this article