↑ ↓ to move ↵ to open
Trip.com Travel API reference

Trip.com Attraction Detail

tripcom.attractions.get

Get one attraction from its Trip.com link: title, category, description and location.

At a glance

Endpoint ID
tripcom.attractions.get
Price
2 credits per call; failed calls are free
Runs for up to
30 seconds
Request
POST /execute
Run an endpoint
MCP tool when pinned
tripcom__attractions__get
Pin tools
OpenAPI
openapi.json
Download

Request

Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.

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"  }}'

Input

FieldTypeRequiredWhat it doesExample
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

Response

A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.

This is results[0].data from a real run:

results[0].data
{  "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"}

Fields

FieldTypeWhat it isExample
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-…

If a call fails

A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.

Other Trip.com Travel endpoints

Something missing or unclear? Ask the team that builds the Trip.com Travel endpoints.