ta_search_locations
Search TripAdvisor locations by name to find restaurants, attractions, and hotels. Retrieve location IDs with pagination for detailed access.
Instructions
Search TripAdvisor locations (restaurants, attractions, hotels) by name. Returns matches with a location id for the detail tools, plus pagination. Pass compact:true for slim summaries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page index (1-based) | |
| size | No | Results per page (max 20) | |
| query | Yes | Text to search location names for | |
| locale | No | Preferred locales for localized fields, in priority order (e.g. ["en","es"]) | |
| compact | No | Return a slim summary per result (id, name, category, city, rating, review_count, url) instead of full records | |
| category | No | Restrict to one category | |
| geo_name | No | City, town, or country name to scope the search | |
| postal_code | No | Postal/ZIP code (takes precedence over geo_name) | |
| country_code | No | Alpha-2 country code (e.g. "US") |