Suggest
curl --request POST \
--url https://api.aisa.one/apis/v1/agoda-com/hotels/suggest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Landmark 81"
}
'import requests
url = "https://api.aisa.one/apis/v1/agoda-com/hotels/suggest"
payload = { "query": "Landmark 81" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'Landmark 81'})
};
fetch('https://api.aisa.one/apis/v1/agoda-com/hotels/suggest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/agoda-com/hotels/suggest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'Landmark 81'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/agoda-com/hotels/suggest"
payload := strings.NewReader("{\n \"query\": \"Landmark 81\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/agoda-com/hotels/suggest")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Landmark 81\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/agoda-com/hotels/suggest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Landmark 81\"\n}"
response = http.request(request)
puts response.read_body{
"count": 6,
"observed_at_ms": 1792518149844,
"origin": "US",
"query": "Landmark 81",
"results": [
{
"category": "Landmark",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City",
"image_url": null,
"is_property": false,
"kind": "landmark",
"name": "Landmark 81 SkyView",
"object_id": 1518284,
"object_type_id": 16,
"page_type_id": 12,
"property_count": 1667,
"search_type": 3,
"search_url": "https://www.agoda.com/search?city=13170&poi=1518284"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/66755965/0/6faabac7d309bb42890b75c0015dde02.jpg?ce=0",
"is_property": true,
"kind": "property",
"name": "Landmark 81 & Vinhomes - ZEN Saigon Citypoint",
"object_id": 66755965,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=66755965&selectedproperty=66755965"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/6428322/-1/4461bffd9ee59dcdf29459ab546d2bf1.jpg?ce=0",
"is_property": true,
"kind": "property",
"name": "Vinpearl Landmark 81, Autograph Collection",
"object_id": 6428322,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=6428322&selectedproperty=6428322"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/86286210/0/30e68ed4a4668a49714f4064be17fb97.jpg?ce=3",
"is_property": true,
"kind": "property",
"name": "Landmark 81 Area - K's Luxury Residence",
"object_id": 86286210,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=86286210&selectedproperty=86286210"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/90373064/0/4a13d327a934a23a251817efccff4a72.jpg?ce=3",
"is_property": true,
"kind": "property",
"name": "Landmark 81 Apartments Service",
"object_id": 90373064,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=90373064&selectedproperty=90373064"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/90716167/0/a8d23d4a7fc74fd7c7980730cee84b27.png?ce=3",
"is_property": true,
"kind": "property",
"name": "Lavela Urban Residences - Landmark 81 & Vinhomes",
"object_id": 90716167,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=90716167&selectedproperty=90716167"
}
],
"source_url": "https://www.agoda.com/api/cronos/search/GetUnifiedSuggestResult/3/1/1/0/en-us/?searchText=Landmark%2081&origin=US&cid=-1&pageTypeId=1&logTypeId=1&isHotelLandSearch=true&lastSearchedCity=0"
}Agoda stays
Suggest
Start here to turn a place or property name into Agoda ids.
POST
https://api.aisa.one
/
apis
/
v1
/
agoda-com
/
hotels
/
suggest
Suggest
curl --request POST \
--url https://api.aisa.one/apis/v1/agoda-com/hotels/suggest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Landmark 81"
}
'import requests
url = "https://api.aisa.one/apis/v1/agoda-com/hotels/suggest"
payload = { "query": "Landmark 81" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'Landmark 81'})
};
fetch('https://api.aisa.one/apis/v1/agoda-com/hotels/suggest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/agoda-com/hotels/suggest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'Landmark 81'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/agoda-com/hotels/suggest"
payload := strings.NewReader("{\n \"query\": \"Landmark 81\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/agoda-com/hotels/suggest")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Landmark 81\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/agoda-com/hotels/suggest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Landmark 81\"\n}"
response = http.request(request)
puts response.read_body{
"count": 6,
"observed_at_ms": 1792518149844,
"origin": "US",
"query": "Landmark 81",
"results": [
{
"category": "Landmark",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City",
"image_url": null,
"is_property": false,
"kind": "landmark",
"name": "Landmark 81 SkyView",
"object_id": 1518284,
"object_type_id": 16,
"page_type_id": 12,
"property_count": 1667,
"search_type": 3,
"search_url": "https://www.agoda.com/search?city=13170&poi=1518284"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/66755965/0/6faabac7d309bb42890b75c0015dde02.jpg?ce=0",
"is_property": true,
"kind": "property",
"name": "Landmark 81 & Vinhomes - ZEN Saigon Citypoint",
"object_id": 66755965,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=66755965&selectedproperty=66755965"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/6428322/-1/4461bffd9ee59dcdf29459ab546d2bf1.jpg?ce=0",
"is_property": true,
"kind": "property",
"name": "Vinpearl Landmark 81, Autograph Collection",
"object_id": 6428322,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=6428322&selectedproperty=6428322"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/86286210/0/30e68ed4a4668a49714f4064be17fb97.jpg?ce=3",
"is_property": true,
"kind": "property",
"name": "Landmark 81 Area - K's Luxury Residence",
"object_id": 86286210,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=86286210&selectedproperty=86286210"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/90373064/0/4a13d327a934a23a251817efccff4a72.jpg?ce=3",
"is_property": true,
"kind": "property",
"name": "Landmark 81 Apartments Service",
"object_id": 90373064,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=90373064&selectedproperty=90373064"
},
{
"category": "Property",
"city_id": 13170,
"city_name": "Ho Chi Minh City",
"country_code": "VN",
"country_id": 38,
"geo_hierarchy": "Ho Chi Minh City, Vietnam",
"image_url": "https://pix6.agoda.net/hotelImages/90716167/0/a8d23d4a7fc74fd7c7980730cee84b27.png?ce=3",
"is_property": true,
"kind": "property",
"name": "Lavela Urban Residences - Landmark 81 & Vinhomes",
"object_id": 90716167,
"object_type_id": 32,
"page_type_id": 103,
"property_count": null,
"search_type": 4,
"search_url": "https://www.agoda.com/search?city=13170&hotel=90716167&selectedproperty=90716167"
}
],
"source_url": "https://www.agoda.com/api/cronos/search/GetUnifiedSuggestResult/3/1/1/0/en-us/?searchText=Landmark%2081&origin=US&cid=-1&pageTypeId=1&logTypeId=1&isHotelLandSearch=true&lastSearchedCity=0"
}Request contract
- Method and path: POST /apis/v1/agoda-com/hotels/suggest
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/agoda-com/hotels/suggest
{
"operationId": "agoda-com.hotels.suggest",
"method": "POST",
"path": "/apis/v1/agoda-com/hotels/suggest",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"query": "Landmark 81"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"origin": {
"default": "US",
"description": "Traveller origin country (ISO 3166-1 alpha-2) Agoda ranks suggestions for. Default US. Pattern: ^[A-Za-z]{2}$.\n\nProvider reference: default \"US\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"query": {
"description": "Free text: a city, landmark, area or property name.",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Agoda's search-box suggestions for a free-text query: cities, areas, landmarks, airports and properties with their Agoda ids. Landmark and city ids feed search; property ids feed property_rooms, property_reviews and property_faq.
The response contains the tool result directly.
The provider identifies results as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
category | string | Agoda's own category label (Landmark, Property, City, ...). |
city_id | number | |
city_name | string | |
country_code | string | |
country_id | number | |
geo_hierarchy | string | Where the suggestion is, as Agoda prints it (e.g. 'Ho Chi Minh City, Vietnam'). |
image_url | string | |
is_property | boolean | |
kind | string | Derived from Agoda's DisplayNames.CategoryName, falling back to the object type id. |
name | string | |
object_id | number | Agoda object id: landmark id (kind landmark), city id (kind city) or property id (kind property). |
object_type_id | number | Agoda ObjectTypeId as sent (16 landmark, 32 property, ...). |
page_type_id | number | |
property_count | number | Properties Agoda lists for the place; null for a property. |
search_type | number | |
search_url | string | Agoda search results URL scoped to this suggestion. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.