Skip to main content
POST
/
api
/
trip
/
hotels
/trip/hotels
curl --request POST \
  --url https://api.anysite.io/api/trip/hotels \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "hotel": "<string>",
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@trip_hotel",
    "name": "<string>",
    "star": 123,
    "score": 123,
    "score_description": "<string>",
    "review_count": 123,
    "score_details": [],
    "description": "<string>",
    "address": "<string>",
    "zone_name": "<string>",
    "latitude": 123,
    "longitude": 123,
    "city_id": 123,
    "city_name": "<string>",
    "province_id": 123,
    "province_name": "<string>",
    "country_id": 123,
    "country_name": "<string>",
    "chain": "<string>",
    "opened_year": "<string>",
    "renovated_year": "<string>",
    "phone": "<string>",
    "email": "<string>",
    "check_in_time": "<string>",
    "check_out_time": "<string>",
    "highlights": [],
    "traffic_desc": "<string>",
    "amenity_groups": [],
    "nearby_places": [],
    "policies": [],
    "reservation_tips": [],
    "image": "<string>",
    "images": [],
    "url": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
hotel
string
required

Trip.com hotel id or a hotel URL containing it

Minimum string length: 1
Examples:

"1480287"

"https://us.trip.com/hotels/new-york-hotel-detail-1480287/the-plaza/"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:@trip_hotel
name
string | null
star
integer | null
score
number | null
score_description
string | null
review_count
integer | null
score_details
TripScoreDetail · object[]
description
string | null
address
string | null
zone_name
string | null
latitude
number | null
longitude
number | null
city_id
integer | null
city_name
string | null
province_id
integer | null
province_name
string | null
country_id
integer | null
country_name
string | null
chain
string | null
opened_year
string | null
renovated_year
string | null
phone
string | null
email
string | null
check_in_time
string | null
check_out_time
string | null
highlights
string[]
traffic_desc
string | null
amenity_groups
TripAmenityGroup · object[]
nearby_places
TripNearbyPlace · object[]
policies
TripPolicy · object[]
reservation_tips
TripReservationTip · object[]
image
string | null
images
string[]
url
string | null