Trip.com Attractions Search API Documentation Search attractions, tours and tickets by destination or name. Each result has an id, name, city, rating, review count, ranking, price, original price, discount, tags and an image. Results of type attraction work with the detail and reviews endpoints; type tour is a bookable product and has no detail page here. Page N is really page N, 12 per page. total_estimate is a loose keyword count, not an exact total. has_more is true when the page is full. Sorts price_asc and price_desc are ordered by price. No category filter exists: a category parameter returns 422. An empty page returns 200 and costs nothing. Cost: 1 credit.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
4 optional filters available.
string
Required
Destination or attraction name, 2 to 100 characters. Example: paris.
coffee shops
integer
Optional
Page number, 1 to 100. Each page has 12 results. Defaults to 1.
1
string
Optional
recommended, price_asc or price_desc. Defaults to recommended.
relevance
string
Optional
USD, EUR, GBP, JPY or KRW. Defaults to USD. Every price in the answer uses this currency.
USD
string
Optional
Site language: en, en-gb, de, fr, ja, ko or zh-hk. Defaults to en. It sets the language of names and tags. Text on detail pages stays English.
en-US
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"page": 1,
"sort": "recommended",
"count": 12,
"items": [
{
"id": "78772",
"city": "Paris",
"name": "Eiffel Tower",
"tags": [
{
"tags": [
"Historic landmark"
],
"group": "CATEGORY_THEME_TAG"
}
],
"type": "attraction",
"price": 23.41,
"poi_id": "78772",
"rating": 4.6,
"is_free": false,
"ranking": {
"rank": 21,
"description": "2026 Global 100 - Best Things to Do"
},
"currency": "USD",
"highlight": null,
"image_url": "https://ak-d.tripcdn.com/images/example.jpg",
"detail_url": "https://www.trip.com/travel-guide/attraction/paris/eiffel-tower-78772?curr=USD&locale=en-XX&poiType=3",
"review_count": 4363,
"discount_label": null,
"original_price": null,
"discount_amount": null,
"detail_supported": true
}
],
"query": "paris",
"locale": "en",
"currency": "USD",
"has_more": true,
"page_size": 12,
"total_estimate": 112368
},
"meta": {
"billable": true,
"endpoint_family": "attractions_search"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A query parameter is missing or invalid. This response is not billable.
{
"errors": {
"query": [
"A search text is required, e.g. paris."
]
},
"message": "The request validation failed"
}Unexpected Upstream Format
Trip.com answered with a format Scrappa does not know. This response is not billable.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "attractions_search"
},
"error": {
"code": "PARSER_DRIFT",
"message": "Trip.com answered with an unexpected format. Please retry later."
},
"success": false
}Upstream Unavailable
Trip.com did not answer after one retry. This response is not billable. Retry later.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "attractions_search"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The Trip.com API is temporarily unavailable. Please retry."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.