Top destinations
curl --request POST \
--url https://api.aisa.one/apis/v1/agoda-com/hotels/top-destinations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.aisa.one/apis/v1/agoda-com/hotels/top-destinations"
payload = {}
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({})
};
fetch('https://api.aisa.one/apis/v1/agoda-com/hotels/top-destinations', 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/top-destinations",
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([
]),
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/top-destinations"
payload := strings.NewReader("{}")
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/top-destinations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/agoda-com/hotels/top-destinations")
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 = "{}"
response = http.request(request)
puts response.read_body{
"count": 20,
"destinations": [
{
"city_id": 14524,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/14524/0435b08918aeb5e6ba2c933def5a3b57.jpg?ce=0&s=396x298&ar=4x3",
"name": "Kuala Lumpur",
"name_english": "Kuala Lumpur",
"property_count": 19902,
"url": "https://www.agoda.com/city/kuala-lumpur-my.html"
},
{
"city_id": 1622,
"country": "Philippines",
"country_id": 70,
"image_url": "https://pix6.agoda.net/geo/city/1622/1_1622_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Manila",
"name_english": "Manila",
"property_count": 13223,
"url": "https://www.agoda.com/city/manila-ph.html"
},
{
"city_id": 16087,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/16087/1_16087_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Penang",
"name_english": "Penang",
"property_count": 5161,
"url": "https://www.agoda.com/city/penang-my.html"
},
{
"city_id": 8691,
"country": "Indonesia",
"country_id": 192,
"image_url": "https://pix6.agoda.net/geo/city/8691/1_8691_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Jakarta",
"name_english": "Jakarta",
"property_count": 14249,
"url": "https://www.agoda.com/city/jakarta-id.html"
},
{
"city_id": 2994,
"country": "United Arab Emirates",
"country_id": 64,
"image_url": "https://pix6.agoda.net/geo/city/2994/0c2aae36625e3e958684d0d4ae5b12d0.jpg?ce=0&s=396x298&ar=4x3",
"name": "Dubai",
"name_english": "Dubai",
"property_count": 19464,
"url": "https://www.agoda.com/city/dubai-ae.html"
},
{
"city_id": 9395,
"country": "Thailand",
"country_id": 106,
"image_url": "https://pix6.agoda.net/geo/city/9395/1_9395_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Bangkok",
"name_english": "Bangkok",
"property_count": 12048,
"url": "https://www.agoda.com/city/bangkok-th.html"
},
{
"city_id": 15121,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/15121/1_15121_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Malacca",
"name_english": "Malacca",
"property_count": 5883,
"url": "https://www.agoda.com/city/malacca-my.html"
},
{
"city_id": 1808,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/1808/0fdfe2e24c886b78b03e2d0c0eb8df8e.jpg?ce=0&s=396x298&ar=4x3",
"name": "Johor Bahru",
"name_english": "Johor Bahru",
"property_count": 6994,
"url": "https://www.agoda.com/city/johor-bahru-my.html"
},
{
"city_id": 5070,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/5070/1_5070_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Kota Kinabalu",
"name_english": "Kota Kinabalu",
"property_count": 3417,
"url": "https://www.agoda.com/city/kota-kinabalu-my.html"
},
{
"city_id": 4001,
"country": "Philippines",
"country_id": 70,
"image_url": "https://pix6.agoda.net/geo/city/4001/092eca9a1f0615374d2fcca17e130b61.jpg?ce=0&s=396x298&ar=4x3",
"name": "Cebu",
"name_english": "Cebu",
"property_count": 5254,
"url": "https://www.agoda.com/city/cebu-ph.html"
},
{
"city_id": 1808,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/1808/0fdfe2e24c886b78b03e2d0c0eb8df8e.jpg?ce=0&s=396x298&ar=4x3",
"name": "Johor Bahru",
"name_english": "Johor Bahru",
"property_count": 6994,
"url": "https://www.agoda.com/city/johor-bahru-my.html"
},
{
"city_id": 4923,
"country": "India",
"country_id": 35,
"image_url": "https://pix6.agoda.net/geo/city/4923/1_4923_02.jpg?ca=8&ce=1&s=396x298&ar=4x3",
"name": "Bangalore",
"name_english": "Bangalore",
"property_count": 5372,
"url": "https://www.agoda.com/city/bangalore-in.html"
},
{
"city_id": 17193,
"country": "Indonesia",
"country_id": 192,
"image_url": "https://pix6.agoda.net/geo/city/17193/1_17193_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Bali",
"name_english": "Bali",
"property_count": 32908,
"url": "https://www.agoda.com/city/bali-id.html"
},
{
"city_id": 18943,
"country": "Indonesia",
"country_id": 192,
"image_url": "https://pix6.agoda.net/geo/city/18943/1_18943_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Bandung",
"name_english": "Bandung",
"property_count": 7196,
"url": "https://www.agoda.com/city/bandung-id.html"
},
{
"city_id": 15523,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/15523/1_15523_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Ipoh",
"name_english": "Ipoh",
"property_count": 2516,
"url": "https://www.agoda.com/city/ipoh-my.html"
},
{
"city_id": 1399,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/1399/1_1399_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Cameron Highlands",
"name_english": "Cameron Highlands",
"property_count": 1789,
"url": "https://www.agoda.com/city/cameron-highlands-my.html"
},
{
"city_id": 16850,
"country": "India",
"country_id": 35,
"image_url": "https://pix6.agoda.net/geo/city/16850/1_16850_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Mumbai",
"name_english": "Mumbai",
"property_count": 4177,
"url": "https://www.agoda.com/city/mumbai-in.html"
},
{
"city_id": 14523,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/14523/1_14523_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Kuching",
"name_english": "Kuching",
"property_count": 1465,
"url": "https://www.agoda.com/city/kuching-my.html"
},
{
"city_id": 4064,
"country": "Singapore",
"country_id": 114,
"image_url": "https://pix6.agoda.net/geo/city/4064/1_4064_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Singapore",
"name_english": "Singapore",
"property_count": 1326,
"url": "https://www.agoda.com/city/singapore-sg.html"
},
{
"city_id": 11304,
"country": "India",
"country_id": 35,
"image_url": "https://pix6.agoda.net/geo/city/11304/077a5dc2a344a604731be86537916ba0.jpg?ce=0&s=396x298&ar=4x3",
"name": "Goa",
"name_english": "Goa",
"property_count": 9254,
"url": "https://www.agoda.com/city/goa-in.html"
}
],
"header": "Most popular destinations",
"observed_at_ms": 1792518188473,
"origin": "US",
"origin_country": "United States",
"scope": "international",
"source_url": "https://www.agoda.com/"
}Agoda stays
Top destinations
Discover city ids to search without a free-text query.
POST
https://api.aisa.one
/
apis
/
v1
/
agoda-com
/
hotels
/
top-destinations
Top destinations
curl --request POST \
--url https://api.aisa.one/apis/v1/agoda-com/hotels/top-destinations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.aisa.one/apis/v1/agoda-com/hotels/top-destinations"
payload = {}
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({})
};
fetch('https://api.aisa.one/apis/v1/agoda-com/hotels/top-destinations', 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/top-destinations",
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([
]),
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/top-destinations"
payload := strings.NewReader("{}")
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/top-destinations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/agoda-com/hotels/top-destinations")
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 = "{}"
response = http.request(request)
puts response.read_body{
"count": 20,
"destinations": [
{
"city_id": 14524,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/14524/0435b08918aeb5e6ba2c933def5a3b57.jpg?ce=0&s=396x298&ar=4x3",
"name": "Kuala Lumpur",
"name_english": "Kuala Lumpur",
"property_count": 19902,
"url": "https://www.agoda.com/city/kuala-lumpur-my.html"
},
{
"city_id": 1622,
"country": "Philippines",
"country_id": 70,
"image_url": "https://pix6.agoda.net/geo/city/1622/1_1622_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Manila",
"name_english": "Manila",
"property_count": 13223,
"url": "https://www.agoda.com/city/manila-ph.html"
},
{
"city_id": 16087,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/16087/1_16087_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Penang",
"name_english": "Penang",
"property_count": 5161,
"url": "https://www.agoda.com/city/penang-my.html"
},
{
"city_id": 8691,
"country": "Indonesia",
"country_id": 192,
"image_url": "https://pix6.agoda.net/geo/city/8691/1_8691_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Jakarta",
"name_english": "Jakarta",
"property_count": 14249,
"url": "https://www.agoda.com/city/jakarta-id.html"
},
{
"city_id": 2994,
"country": "United Arab Emirates",
"country_id": 64,
"image_url": "https://pix6.agoda.net/geo/city/2994/0c2aae36625e3e958684d0d4ae5b12d0.jpg?ce=0&s=396x298&ar=4x3",
"name": "Dubai",
"name_english": "Dubai",
"property_count": 19464,
"url": "https://www.agoda.com/city/dubai-ae.html"
},
{
"city_id": 9395,
"country": "Thailand",
"country_id": 106,
"image_url": "https://pix6.agoda.net/geo/city/9395/1_9395_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Bangkok",
"name_english": "Bangkok",
"property_count": 12048,
"url": "https://www.agoda.com/city/bangkok-th.html"
},
{
"city_id": 15121,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/15121/1_15121_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Malacca",
"name_english": "Malacca",
"property_count": 5883,
"url": "https://www.agoda.com/city/malacca-my.html"
},
{
"city_id": 1808,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/1808/0fdfe2e24c886b78b03e2d0c0eb8df8e.jpg?ce=0&s=396x298&ar=4x3",
"name": "Johor Bahru",
"name_english": "Johor Bahru",
"property_count": 6994,
"url": "https://www.agoda.com/city/johor-bahru-my.html"
},
{
"city_id": 5070,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/5070/1_5070_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Kota Kinabalu",
"name_english": "Kota Kinabalu",
"property_count": 3417,
"url": "https://www.agoda.com/city/kota-kinabalu-my.html"
},
{
"city_id": 4001,
"country": "Philippines",
"country_id": 70,
"image_url": "https://pix6.agoda.net/geo/city/4001/092eca9a1f0615374d2fcca17e130b61.jpg?ce=0&s=396x298&ar=4x3",
"name": "Cebu",
"name_english": "Cebu",
"property_count": 5254,
"url": "https://www.agoda.com/city/cebu-ph.html"
},
{
"city_id": 1808,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/1808/0fdfe2e24c886b78b03e2d0c0eb8df8e.jpg?ce=0&s=396x298&ar=4x3",
"name": "Johor Bahru",
"name_english": "Johor Bahru",
"property_count": 6994,
"url": "https://www.agoda.com/city/johor-bahru-my.html"
},
{
"city_id": 4923,
"country": "India",
"country_id": 35,
"image_url": "https://pix6.agoda.net/geo/city/4923/1_4923_02.jpg?ca=8&ce=1&s=396x298&ar=4x3",
"name": "Bangalore",
"name_english": "Bangalore",
"property_count": 5372,
"url": "https://www.agoda.com/city/bangalore-in.html"
},
{
"city_id": 17193,
"country": "Indonesia",
"country_id": 192,
"image_url": "https://pix6.agoda.net/geo/city/17193/1_17193_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Bali",
"name_english": "Bali",
"property_count": 32908,
"url": "https://www.agoda.com/city/bali-id.html"
},
{
"city_id": 18943,
"country": "Indonesia",
"country_id": 192,
"image_url": "https://pix6.agoda.net/geo/city/18943/1_18943_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Bandung",
"name_english": "Bandung",
"property_count": 7196,
"url": "https://www.agoda.com/city/bandung-id.html"
},
{
"city_id": 15523,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/15523/1_15523_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Ipoh",
"name_english": "Ipoh",
"property_count": 2516,
"url": "https://www.agoda.com/city/ipoh-my.html"
},
{
"city_id": 1399,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/1399/1_1399_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Cameron Highlands",
"name_english": "Cameron Highlands",
"property_count": 1789,
"url": "https://www.agoda.com/city/cameron-highlands-my.html"
},
{
"city_id": 16850,
"country": "India",
"country_id": 35,
"image_url": "https://pix6.agoda.net/geo/city/16850/1_16850_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Mumbai",
"name_english": "Mumbai",
"property_count": 4177,
"url": "https://www.agoda.com/city/mumbai-in.html"
},
{
"city_id": 14523,
"country": "Malaysia",
"country_id": 198,
"image_url": "https://pix6.agoda.net/geo/city/14523/1_14523_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Kuching",
"name_english": "Kuching",
"property_count": 1465,
"url": "https://www.agoda.com/city/kuching-my.html"
},
{
"city_id": 4064,
"country": "Singapore",
"country_id": 114,
"image_url": "https://pix6.agoda.net/geo/city/4064/1_4064_02.jpg?ca=6&ce=1&s=396x298&ar=4x3",
"name": "Singapore",
"name_english": "Singapore",
"property_count": 1326,
"url": "https://www.agoda.com/city/singapore-sg.html"
},
{
"city_id": 11304,
"country": "India",
"country_id": 35,
"image_url": "https://pix6.agoda.net/geo/city/11304/077a5dc2a344a604731be86537916ba0.jpg?ce=0&s=396x298&ar=4x3",
"name": "Goa",
"name_english": "Goa",
"property_count": 9254,
"url": "https://www.agoda.com/city/goa-in.html"
}
],
"header": "Most popular destinations",
"observed_at_ms": 1792518188473,
"origin": "US",
"origin_country": "United States",
"scope": "international",
"source_url": "https://www.agoda.com/"
}Request contract
- Method and path: POST /apis/v1/agoda-com/hotels/top-destinations
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/agoda-com/hotels/top-destinations
{
"operationId": "agoda-com.hotels.top-destinations",
"method": "POST",
"path": "/apis/v1/agoda-com/hotels/top-destinations",
"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": {}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"limit": {
"default": 20,
"description": "limit\n\nProvider reference: minimum 1; maximum 50; default 20.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 50,
"min": 1
}
},
"origin": {
"default": "US",
"description": "Traveller origin country (ISO 3166-1 alpha-2). Pattern: ^[A-Za-z]{2}$.\n\nProvider reference: default \"US\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"scope": {
"default": "international",
"description": "scope\n\nProvider reference: allowed values [\"international\", \"domestic\"]; default \"international\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"international",
"domestic"
]
}
}
},
"type": "object"
}
}
},
"required": false
},
"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 most popular destination cities for travellers from an origin country (international or domestic), with city ids, country and property counts.
The response contains the tool result directly.
The provider identifies destinations as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
city_id | number | |
country | string | |
country_id | number | |
image_url | string | |
name | string | |
name_english | string | |
property_count | number | |
url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.