Trip.com Travel Attractions Search API
List the attractions Trip.com shows for a destination, such as the London Eye in London, with their IDs and links.
- 1 credit per call
- Failed calls are free
- Updated
- tripcom.attractions.search
{ "has_more": false, "total_found": 35, "attractions": [ { "title": "London Eye", "attraction_id": "81747", "url": "https://www.trip.com/travel-guide/attraction/london/london-eye-81747/", "tags": [ "attraction" ] }, { "title": "The British Museum", "attraction_id": "78696", "url": "https://www.trip.com/travel-guide/attraction/london/the-british-museum-78696/", "tags": [ "attraction" ] } ]}
| # | Attraction | Attraction ID | Link |
|---|---|---|---|
| 1 | London Eye | 81747 | https://www.trip.com/travel-guide/attraction/london/london-eye-… |
| 2 | The British Museum | 78696 | https://www.trip.com/travel-guide/attraction/london/the-british… |
| 3 | Windsor Castle | 78709 | https://www.trip.com/travel-guide/attraction/windsor/windsor-ca… |
| 4 | Phantom of The Opera | 136007702 | https://www.trip.com/travel-guide/attraction/london/phantom-of-… |
| 5 | Buckingham Palace | 78694 | https://www.trip.com/travel-guide/attraction/london/buckingham-… |
| 6 | Westminster Abbey | 78693 | https://www.trip.com/travel-guide/attraction/london/westminster… |
| 7 | Tower of London | 78698 | https://www.trip.com/travel-guide/attraction/london/tower-of-lo… |
| 8 | St. Paul's Cathedral | 78697 | https://www.trip.com/travel-guide/attraction/london/st-paul-s-c… |
| 9 | Warner Bros. Studio Tour London | 10523615 | https://www.trip.com/travel-guide/attraction/watford/warner-bro… |
| 10 | Tower Bridge | 78699 | https://www.trip.com/travel-guide/attraction/london/tower-bridg… |
What you send
The input
object of the request, with every field the endpoint accepts.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| query | string | yes | The destination, such as London or Paris. | London |
| adults | integer | no | Number of adults. | |
| children | integer | no | Number of children. | |
| currency | string | no | Currency code, such as GBP. | |
| date | string | no | Leave out: the list shows attractions without ticket dates. | |
| destination | string | no | The same destination again, if you like; a different place is not accepted. | |
| locale | string | no | Language, such as en. | |
| location_id | string | no | Trip.com's ID for the destination, when you have it. | |
| max_pages | integer | no | How many pages to read in one call. | |
| max_results | integer | no | How many attractions to return; 0 returns all. | |
| page | integer | no | Which page of attractions. |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | What it is | Example |
|---|---|---|---|
| attractions[].title | string | The attraction's name. | London Eye |
| attractions[].attraction_id | string | Trip.com's ID for the attraction; pass it to the attraction endpoint. | 81747 |
| attractions[].tags | array | Labels Trip.com gives the result. | attraction |
| attractions[].url | string | The attraction's page on Trip.com. | https://www.trip.com/travel-guide/attraction/london/london-eye-… |
| attractions | array | The attractions found. | 35 records |
| has_more | boolean | Whether more results follow. | false |
| total_found | integer | How many attractions were found. | 35 |
Call it from your code, or ask your agent
Set UPSCRAPE_API_KEY to your key and copy a working request.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "tripcom.attractions.search", "input": { "query": "London" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "tripcom.attractions.search", "input": { "query": "London" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "tripcom.attractions.search", "input": { "query": "London" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
https://data.upscrape.com/mcp
With Upscrape, list the attractions Trip.com shows for London, with a link to each one.
More from the Trip.com Travel API
- Trip.com Travel Hotel Search API1 credit
- Trip.com Travel Hotel Detail API1 credit
- Trip.com Travel Attraction Detail API1 credit
- Trip.com Travel Flight Search API1 credit
- Trip.com Travel Public Hotel Reviews API1 credit
- Trip.com Travel Train Search API1 credit
- Trip.com Travel Car Rental Search API1 credit
Trip.com Travel Attractions Search API FAQ
The short answers. The docs have the long ones.
How much does the Trip.com Travel Attractions Search API cost?
1 credit per successful call, shown before it runs. You buy credits once, and paid credits never expire.
What do I send?
Send query. The input fields below list every option with its type and limits.
Do I need a Trip.com Travel login?
No. It reads public Trip.com Travel data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds tripcom.attractions.search, checks its price and runs it with the same credits as the REST API.
Your first Trip.com Travel call is free.
Up to 100 free credits to start, no card needed.