Trip.com Attractions Search API
List the attractions Trip.com shows for a destination, such as the London Eye in London, with their IDs and links.
{ "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" ] } ]}
| # | Title | Attraction id | Url |
|---|---|---|---|
| 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… |
| 11 | Royal Observatory Greenwich | 84058 | https://www.trip.com/travel-guide/attraction/london/royal-obser… |
| 12 | Les Miserables London | 136007790 | https://www.trip.com/travel-guide/attraction/london/les-miserab… |
| 13 | Thames River Sightseeing | 10570017 | https://www.trip.com/travel-guide/attraction/london/thames-rive… |
| 14 | River Thames | 10559356 | https://www.trip.com/travel-guide/attraction/london/river-thame… |
| 15 | The National Gallery | 83872 | https://www.trip.com/travel-guide/attraction/london/the-nationa… |
What you send, what comes back
The input object it accepts, and every field of a record, with the values from the response above.
| 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. |
| 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
Set UPSCRAPE_API_KEY to your key and copy a working request. No SDK needed.
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));
{ "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" ] } ]}
More Trip.com endpoints
The same API key runs every one of them.
Trip.com Attractions Search API FAQ
The short answers. The docs have the long ones.
How much does the Trip.com Attractions Search API cost?
2–3 credits 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.