Trip.com Attraction Detail API
Get one attraction from its Trip.com link: title, category, description and location.
{ "title": "The Palace Museum", "rating": 4.9, "reviews": 203061, "location": "No. 4, Jingshanqian Street, Dongcheng District, Beijing", "attraction_id": "75595", "category": "3", "collected_at": "2026-10-16T12:26:37Z", "description": "The Forbidden City, also known as the Imperial Palace, was the imperial palace of the Ming and Qing dynasties, and is also the symbol of an…", "is_free": false, "opening_hours": "Open tomorrow at 08:30–17:00(Admission ends at 16:00)", "price_from": "11.62", "query": "75595", "source_url": "https://in.trip.com/travel-guide/attraction/beijing/the-palace-museum-75595?currency=GBP&locale=en", "url": "https://in.trip.com/travel-guide/attraction/beijing/the-palace-museum-75595?poiType=3&curr=GBP&locale=en-IN&scene=basic"}
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 |
|---|---|---|---|---|
| attraction_url | string | yes | Trip.com attraction detail URL returned by attraction search, including regional hosts | https://www.trip.com/travel-guide/attraction/be… |
| currency | string | no | Currency for returned prices. | GBP |
| locale | string | no | Locale to use for the request. | en |
| Field | Type | What it is | Example |
|---|---|---|---|
| title | string | The attraction's name. | The Palace Museum |
| rating | number | The attraction's average rating. | 4.9 |
| reviews | integer | How many reviews the attraction has. | 203,061 |
| location | string | The attraction's address. | No. 4, Jingshanqian Street, Dongcheng District, Beijing |
| attraction_id | string | Trip.com's ID for the attraction. | 75595 |
| category | string | 3 | |
| collected_at | string | When this result was collected. | 2026-10-16T12:26:37Z |
| description | string | Trip.com's description of the attraction. | The Forbidden City, also known as the Imperial Palace, was the … |
| is_free | boolean | Whether entry is free. | false |
| opening_hours | string | Opening hours as Trip.com shows them. | Open tomorrow at 08:30–17:00(Admission ends at 16:00) |
| price_from | string | The lowest ticket price shown, in the page's currency. | 11.62 |
| query | string | The attraction you asked for. | 75595 |
| source_url | string | The Trip.com page this was read from. | https://in.trip.com/travel-guide/attraction/beijing/the-palace-… |
| url | string | The page on Trip.com. | https://in.trip.com/travel-guide/attraction/beijing/the-palace-… |
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.get", "input": { "attraction_url": "https://www.trip.com/travel-guide/attraction/beijing/the-palace-museum-75595", "currency": "GBP", "locale": "en" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "tripcom.attractions.get", "input": { "attraction_url": "https://www.trip.com/travel-guide/attraction/beijing/the-palace-museum-75595", "currency": "GBP", "locale": "en" }}''')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.get", "input": { "attraction_url": "https://www.trip.com/travel-guide/attraction/beijing/the-palace-museum-75595", "currency": "GBP", "locale": "en" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
{ "title": "The Palace Museum", "rating": 4.9, "reviews": 203061, "location": "No. 4, Jingshanqian Street, Dongcheng District, Beijing", "attraction_id": "75595", "category": "3", "collected_at": "2026-10-16T12:26:37Z", "description": "The Forbidden City, also known as the Imperial Palace, was the imperial palace of the Ming and Qing dynasties, and is also the symbol of an…", "is_free": false, "opening_hours": "Open tomorrow at 08:30–17:00(Admission ends at 16:00)", "price_from": "11.62", "query": "75595", "source_url": "https://in.trip.com/travel-guide/attraction/beijing/the-palace-museum-75595?currency=GBP&locale=en", "url": "https://in.trip.com/travel-guide/attraction/beijing/the-palace-museum-75595?poiType=3&curr=GBP&locale=en-IN&scene=basic"}
More Trip.com endpoints
The same API key runs every one of them.
Trip.com Attraction Detail API FAQ
The short answers. The docs have the long ones.
How much does the Trip.com Attraction Detail 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 attraction_url. 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.get, checks its price and runs it with the same credits as the REST API.