Hotels

PAID
Verified
By Api Dojo | Updated 15 дней назад | Travel
Popularity

9.8 / 10

Latency

2,271ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Get query details from LOCATIONS/V3/SEARCH for PROPERTIES/V2/LIST

Rapid account: Gjhg JH 21
gjhgJH21
год назад

Here below we get “gaiaId”: “2011” using locations/v3/search.

{
“q”: “lo”,
“rid”: “f209362edd4b467699329cf180bafc65”,
“rc”: “OK”,
“sr”: [
{
"@type": “gaiaRegionResult”,
“index”: “0”,
“gaiaId”: “2011”,
“type”: “CITY”,
“regionNames”: {
“fullName”: “Los Angeles, California, United States of America”,
“shortName”: “Los Angeles”,
“displayName”: “Los Angeles, California, United States”,
“primaryDisplayName”: “Los Angeles”,
“secondaryDisplayName”: “California, United States”,
“lastSearchName”: “Los Angeles”
},
“essId”: {
“sourceName”: “GAI”,
“sourceId”: “2011”
},
“coordinates”: {
“lat”: “34.052235”,
“long”: “-118.243683”
},
“hierarchyInfo”: {
“country”: {
“name”: “United States”,
“isoCode2”: “US”,
“isoCode3”: “USA”
}
}
}…etc

But in properties/v2/list query we need to use some regionId, which isn’t the same, I guess.
Example of request body also below:

{
“currency”: “USD”,
“eapid”: 1,
“locale”: “en_US”,
“siteId”: 300000001,
“destination”: {
“regionId”: “6054439”
},
“checkInDate”: {
“day”: 10,
“month”: 10,
“year”: 2022
},
“checkOutDate”: {
“day”: 15,
“month”: 10,
“year”: 2022
},
“rooms”: [
{
“adults”: 2,
“children”: [
{
“age”: 5
},
{
“age”: 7
}
]
}
],
“resultsStartingIndex”: 0,
“resultsSize”: 200,
“sort”: “PRICE_LOW_TO_HIGH”,
“filters”: {
“price”: {
“max”: 150,
“min”: 100
}
}
}

So how can I solve this issue?
Thank you.

Rapid account: Apidojo
apidojo Commented год назад

Hello,

You need to click the three-dots to open the table description https://prnt.sc/qNHjwWTBlwmf

Regards.

Rapid account: Axelgoris 99
axelgoris99 Commented год назад

Where can we find this file please ? 😃

Rapid account: Apidojo
apidojo Commented год назад

Hello,

Didn’t you read the table description? https://prnt.sc/_kyvBTUks9yO
Didn’t you even try making a request with the value? Are you too scared to try making a request?
The returned type is “city” (wide area/region) so you may pass the value to regionId. If the type is “hotel”, you may use with …/properties/v2/detail endpoint directly instead.

Ex :

{
“currency”: “USD”,
“eapid”: 1,
“locale”: “en_US”,
“siteId”: 300000001,
“destination”: {
“regionId”: “2011”
},
“checkInDate”: {
“day”: 12,
“month”: 12,
“year”: 2022
},
“checkOutDate”: {
“day”: 15,
“month”: 12,
“year”: 2022
},
“rooms”: [
{
“adults”: 2,
“children”: []
}
],
“resultsStartingIndex”: 0,
“resultsSize”: 200,
“sort”: “PRICE_LOW_TO_HIGH”
}

Regards.

Join in the discussion - add comment below:

Login / Signup to post new comments