Hi,
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?
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.
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
Join in the discussion - add comment below:
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.