Hello,
Thank you for the great API, it is very useful. Currently I am trying to retrieve information about dog-friendly restaurants in different locations. When I try to use updateToken, the response comes with an unhandled exception. The same logic for getting the hotels list and using updateToken worked correctly.
For example, I get the geoId and updateToken for Wiesbaden, Germany, using the following query:
URL: https://travel-advisor.p.rapidapi.com/locations/v2/search
Request body:
{
“query”: “Wiesbaden,Germany”,
“updateToken”: “”
}
I get the updateToken value from the section with “trackingTitle”: “FilterChipCard_RESTAURANTS”. After that, I send another request to get the list of restaurants AND a next update token.
URL: https://travel-advisor.p.rapidapi.com/restaurants/v2/list?currency=USD&units=km&lang=en_US
Request body:
{
“geoId”: 187346,
“sort”: “POPULARITY”,
“sortOrder”: “desc”,
“filters”: [
{
“id”: “option”,
“value”: [
“20996”
]
}
],
“updateToken”: “// value of update token”
}
Result (part of the response):
“status”: {
“typename”: “AppPresentation_QueryResponseStatus”,
“message”: “Unhandled exception: DMSWFRLU6BA32I2M4RLCJZ5CETCUP6555USGATWRCLJVKDKJ4YMQ====”,
“success”: false,
“pollingStatus”: null
}
The same request without an updateToken value works absolutely fine, but I need to retrieve more than 30 restaurants for a location. Please help.
Приєднуйтесь до обговорення — додайте повідомлення нижче:
@apidojo, thank you so much, it worked, and I can receive the whole list of restaurants now. Many thanks 😃
Hello,
There are several updateToken returned in the response, and I believe you used the wrong one. You need to use the one with text -> string:“Show more” as shown in the screenshot https://prnt.sc/47ArxrS502S0
Regards.