TripAdvisor Attraction Search
POST /api/v1/tripadvisor/attractions/search
Search TripAdvisor for a destination and get its ranked things to do with traveler ratings, review counts, categories, neighborhoods, ticket prices, descriptions and photos.
Overview
Search TripAdvisor for a destination and get its ranked things to do with traveler ratings, review counts, categories, neighborhoods, ticket prices, descriptions and photos.
POST /api/v1/tripadvisor/attractions/search
Method: POST Path: /api/v1/tripadvisor/attractions/search Category: Travel
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| limit | integer | Optional | Maximum number of attractions to return (1-90). |
| location | string | Optional | Two-letter country code to search from (default US). |
| query | string | Required | Destination to search, e.g. "Singapore" or "Paris, France", or a TripAdvisor Things to Do URL. |
Request Example
TripAdvisor Attraction Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/tripadvisor/attractions/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"limit": "30", "location": "US", "query": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "query": "string", "destination": { "geo_id": "1234567890", "name": "string", "title": "string", "latitude": 0.0, "longitude": 0.0, "url": "https://example.com/..." }, "total_results": 0, "count": 0, "results": [ { "rank": 0, "location_id": "1234567890", "geo_id": "1234567890", "name": "string", "url": "https://example.com/...", "rating": 0.0, "review_count": 0, "categories": [ "string" ], "neighborhood": "string", "open_status": "string", "price_from": 0.0, "price_currency": "string", "price_text": "string", "description": "string", "review_snippet": "string", "image": "string", "award": "string", "latitude": 0.0, "longitude": 0.0 } ], "time_taken": 0.0, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "TripAdvisor Attraction Search", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Destination that was searched. |
| destination | object | Yes | The destination the attractions belong to. |
| destination.geo_id | string | Yes | TripAdvisor destination id. |
| destination.name | string | Yes | Destination name, e.g. 'Paris Ile-de-France, France'. |
| destination.title | string | No | Page heading for the destination's attractions. |
| destination.latitude | number | null | No | |
| destination.longitude | number | null | No | |
| destination.url | string | Yes | Things to Do page for the destination. |
| total_results | integer | null | No | Total number of attractions listed for the destination. |
| count | integer | Yes | Number of attractions returned. |
| results | array<object> | Yes | |
| results[].rank | integer | null | No | Position in the destination's ranking. |
| results[].location_id | string | Yes | TripAdvisor attraction id. |
| results[].geo_id | string | No | Destination id of the attraction. |
| results[].name | string | Yes | |
| results[].url | string | Yes | Attraction page URL. |
| results[].rating | number | null | No | Traveler rating out of 5. |
| results[].review_count | integer | null | No | |
| results[].categories | array<string> | No | Attraction types, e.g. 'Gardens', 'Museums'. |
| results[].neighborhood | string | No | |
| results[].open_status | string | No | e.g. 'Open now' or 'Closed now' at fetch time. |
| results[].price_from | number | null | No | Lowest admission ticket price, when tickets are sold. |
| results[].price_currency | string | No | |
| results[].price_text | string | No | |
| results[].description | string | No | Short description (may be truncated). |
| results[].review_snippet | string | No | Highlighted review excerpt when no description is shown. |
| results[].image | string | No | Main photo URL. |
| results[].award | string | No | Travelers' Choice award, if any. |
| results[].latitude | number | null | No | |
| results[].longitude | number | null | No | |
| time_taken | number | No |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/tripadvisor/attractions/search?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
query,limit,location example,30,US
Pricing & Rate Limits
Endpoint Pricing
$0.02 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |