Travel Advisor

FREEMIUM
Verified
By Api Dojo | Updated 5 days ago | Transportation
Popularity

9.9 / 10

Latency

2,137ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Follow up geoId and contentId

Rapid account: Tangyuxi 24
tangyuxi24
a year ago

Hi,

pic1

I use the locations/v2/auto-complete to get the locationId. Is it the correct Id that can be passed to the attractions/v2/list endpoints?

pic2

Also, in the response of attractons/v2/list endpoints, I can’t find any id related to contentId which should be passed to attractions/v2/get-details endpoints.

pic3

I want use attractions/v2/get-details to get the suggested stay time showed in pic3. Could you tell me how to figure it out?

Thank you

Rapid account: Apidojo
apidojo Commented a year ago

Hello,

…/locations/v2/auto-complete?query=eiffel tower&lang=en_US&units=km returns
{
“locationId”: 188151,
“placeType”: “ATTRACTION”,
“isGeo”:false,

}
so you can use “188151” directly with …/attractions/v2/get-details endpoint as it is a place of attraction, not an wide region/area to use with the …/attractions/v2/list endpoint.
{
“contentId”: “188151”,
“startDate”: “2022-12-15”,
“endDate”: “2022-12-17”,
“pax”: [
{
“ageBand”: “ADULT”,
“count”: 2
}
]
}
"I want use attractions/v2/get-details to get the suggested stay time showed in pic3. Could you tell me how to figure it out?"
Please confirm that the required data being available for the attraction on tripadvisor.com by sharing with me some links and screenshot (you are providing screenshot returning by our API, not from the site which I am asking for) as reference.

Regards.

Join in the discussion - add comment below:

Login / Signup to post new comments