curl --request POST \
--url https://api.aisa.one/apis/v1/agoda-com/hotels/property-rooms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"property_id": 96461587
}
'import requests
url = "https://api.aisa.one/apis/v1/agoda-com/hotels/property-rooms"
payload = { "property_id": 96461587 }
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({property_id: 96461587})
};
fetch('https://api.aisa.one/apis/v1/agoda-com/hotels/property-rooms', 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/property-rooms",
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([
'property_id' => 96461587
]),
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/property-rooms"
payload := strings.NewReader("{\n \"property_id\": 96461587\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/property-rooms")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"property_id\": 96461587\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/agoda-com/hotels/property-rooms")
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 \"property_id\": 96461587\n}"
response = http.request(request)
puts response.read_body{
"accommodation_type": "Entire House",
"address": {
"area": "Bình Thạnh",
"city": "Ho Chi Minh City",
"city_id": 13170,
"country": "Vietnam",
"country_id": 38,
"full": "Bình Thạnh, Ho Chi Minh City, Vietnam",
"postal_code": null,
"street": "720A Điện Biên Phủ, Khu phố 5, Thạnh Mỹ Tây, Hồ Chí Minh, Việt Nam"
},
"adults": 2,
"check_in": "2026-11-19",
"check_out": "2026-11-21",
"child_policies": [
{
"description": "Stay for free if using existing bedding. Note, if you need a cot, it may incur an extra charge and is subject to availability.",
"is_infant": true,
"policy": "Infant 0-2 year(s)"
},
{
"description": "Stay for free if using existing bedding.",
"is_infant": false,
"policy": "Children 3-7 year(s)"
}
],
"children": 0,
"currency": "USD",
"english_name": "Landmark Plus 1BR - w/ Bathtub",
"is_data_ready": true,
"is_nha": true,
"latitude": 10.79514915563495,
"longitude": 106.72241646964196,
"name": "Landmark Plus 1BR - w/ Bathtub",
"nights": 2,
"observed_at_ms": 1792518170815,
"offer_count": 1,
"property_id": 96461587,
"room_type_count": 1,
"room_types": [
{
"amenities": [
"Air conditioning",
"In-room safe box",
"Shower",
"TV",
"Wi-Fi [free]"
],
"bed_summary": "1 queen bed",
"cheapest_price": 30.57,
"image_url": "https://pix8.agoda.net/hotelImages/96461587/0/5cdf898d21f0979fd42164229a9b6267.jpg?ce=3&s=208x117&ar=16x9",
"is_dormitory": false,
"max_extra_beds": 0,
"max_occupancy": 2,
"name": "home",
"number_of_beds": "1 bed",
"offers": [
{
"benefits": [
"Free WiFi"
],
"book_on_request": true,
"booking_key": "1599678667|False|False|False|2|30.57",
"breakfast_included": false,
"cancellation_code": "5D100P_100P",
"cancellation_description": "Stay flexible! Cancel for free before November 14, 2026 Any cancellation received within 5 days prior to the arrival date will be charged for the entire stay. Failure to arrive at your hotel or property will be treated as a No-Show and will incur a charge of 100% of the booking value (Hotel policy).",
"cancellation_title": "Cancel for free before November 14, 2026",
"currency": "USD",
"free_cancellation": true,
"max_occupancy": 2,
"name": "home",
"occupancy": 2,
"offer_uid": "981efa0b-529e-2191-7e68-70994ae3e637",
"per_night_exclusive": 30.57,
"per_night_inclusive": 33.02,
"rate_plan_id": 24412185,
"rooms_left": 1,
"supplier_id": 332,
"supplier_name": "Agoda.com",
"taxes_and_fees": 4.9,
"taxes_and_surcharges": [
"Service charge 5%",
"Tax 8%"
],
"total_exclusive": 61.14,
"total_inclusive": 66.04,
"total_pay_at_property": null,
"urgency_message": "Our last room!"
}
],
"room_type_id": 1599678667
}
],
"rooms": 1,
"source_url": "https://www.agoda.com/search?hotel=96461587&selectedproperty=96461587&checkIn=2026-11-19&los=2&rooms=1&adults=2&children=0¤cy=USD",
"star_rating": 1.5,
"taxes_and_surcharges": "Service charge 5%, Tax 8%"
}Property rooms
Exact-date, room-type-level, tax-inclusive totals with cancellation terms for a known property id.
curl --request POST \
--url https://api.aisa.one/apis/v1/agoda-com/hotels/property-rooms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"property_id": 96461587
}
'import requests
url = "https://api.aisa.one/apis/v1/agoda-com/hotels/property-rooms"
payload = { "property_id": 96461587 }
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({property_id: 96461587})
};
fetch('https://api.aisa.one/apis/v1/agoda-com/hotels/property-rooms', 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/property-rooms",
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([
'property_id' => 96461587
]),
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/property-rooms"
payload := strings.NewReader("{\n \"property_id\": 96461587\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/property-rooms")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"property_id\": 96461587\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/agoda-com/hotels/property-rooms")
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 \"property_id\": 96461587\n}"
response = http.request(request)
puts response.read_body{
"accommodation_type": "Entire House",
"address": {
"area": "Bình Thạnh",
"city": "Ho Chi Minh City",
"city_id": 13170,
"country": "Vietnam",
"country_id": 38,
"full": "Bình Thạnh, Ho Chi Minh City, Vietnam",
"postal_code": null,
"street": "720A Điện Biên Phủ, Khu phố 5, Thạnh Mỹ Tây, Hồ Chí Minh, Việt Nam"
},
"adults": 2,
"check_in": "2026-11-19",
"check_out": "2026-11-21",
"child_policies": [
{
"description": "Stay for free if using existing bedding. Note, if you need a cot, it may incur an extra charge and is subject to availability.",
"is_infant": true,
"policy": "Infant 0-2 year(s)"
},
{
"description": "Stay for free if using existing bedding.",
"is_infant": false,
"policy": "Children 3-7 year(s)"
}
],
"children": 0,
"currency": "USD",
"english_name": "Landmark Plus 1BR - w/ Bathtub",
"is_data_ready": true,
"is_nha": true,
"latitude": 10.79514915563495,
"longitude": 106.72241646964196,
"name": "Landmark Plus 1BR - w/ Bathtub",
"nights": 2,
"observed_at_ms": 1792518170815,
"offer_count": 1,
"property_id": 96461587,
"room_type_count": 1,
"room_types": [
{
"amenities": [
"Air conditioning",
"In-room safe box",
"Shower",
"TV",
"Wi-Fi [free]"
],
"bed_summary": "1 queen bed",
"cheapest_price": 30.57,
"image_url": "https://pix8.agoda.net/hotelImages/96461587/0/5cdf898d21f0979fd42164229a9b6267.jpg?ce=3&s=208x117&ar=16x9",
"is_dormitory": false,
"max_extra_beds": 0,
"max_occupancy": 2,
"name": "home",
"number_of_beds": "1 bed",
"offers": [
{
"benefits": [
"Free WiFi"
],
"book_on_request": true,
"booking_key": "1599678667|False|False|False|2|30.57",
"breakfast_included": false,
"cancellation_code": "5D100P_100P",
"cancellation_description": "Stay flexible! Cancel for free before November 14, 2026 Any cancellation received within 5 days prior to the arrival date will be charged for the entire stay. Failure to arrive at your hotel or property will be treated as a No-Show and will incur a charge of 100% of the booking value (Hotel policy).",
"cancellation_title": "Cancel for free before November 14, 2026",
"currency": "USD",
"free_cancellation": true,
"max_occupancy": 2,
"name": "home",
"occupancy": 2,
"offer_uid": "981efa0b-529e-2191-7e68-70994ae3e637",
"per_night_exclusive": 30.57,
"per_night_inclusive": 33.02,
"rate_plan_id": 24412185,
"rooms_left": 1,
"supplier_id": 332,
"supplier_name": "Agoda.com",
"taxes_and_fees": 4.9,
"taxes_and_surcharges": [
"Service charge 5%",
"Tax 8%"
],
"total_exclusive": 61.14,
"total_inclusive": 66.04,
"total_pay_at_property": null,
"urgency_message": "Our last room!"
}
],
"room_type_id": 1599678667
}
],
"rooms": 1,
"source_url": "https://www.agoda.com/search?hotel=96461587&selectedproperty=96461587&checkIn=2026-11-19&los=2&rooms=1&adults=2&children=0¤cy=USD",
"star_rating": 1.5,
"taxes_and_surcharges": "Service charge 5%, Tax 8%"
}请求规范
- 方法与路径: POST /apis/v1/agoda-com/hotels/property-rooms
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/agoda-com/hotels/property-rooms
{
"operationId": "agoda-com.hotels.property-rooms",
"method": "POST",
"path": "/apis/v1/agoda-com/hotels/property-rooms",
"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": {
"nights": 2,
"property_id": 96461587
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"adults": {
"default": 2,
"description": "adults\n\nProvider reference: minimum 1; maximum 36; default 2.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 36,
"min": 1
}
},
"check_in": {
"description": "Check-in date YYYY-MM-DD, today or later. Default: 30 days from today. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"children": {
"default": 0,
"description": "children\n\nProvider reference: minimum 0; maximum 9; default 0.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 9,
"min": 0
}
},
"currency": {
"default": "USD",
"description": "Pattern: ^[A-Za-z]{3}$.\n\nProvider reference: default \"USD\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"nights": {
"default": 1,
"description": "nights\n\nProvider reference: minimum 1; maximum 30; default 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 30,
"min": 1
}
},
"property_id": {
"description": "Agoda property id (hotel id) from `suggest` or `search`.\n\nProvider reference: minimum 1.",
"type": "number"
},
"rooms": {
"default": 1,
"description": "rooms\n\nProvider reference: minimum 1; maximum 9; default 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 9,
"min": 1
}
}
},
"required": [
"property_id"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
响应
The dated room grid of one property from Agoda's GetSecondaryData: property identity and address, and every room type with its offers: per-night price excluding and including taxes and fees, the whole-stay total excluding and including taxes and fees, the tax and fee lines (e.g. 'Service charge 5%', 'Tax 8%'), cancellation title, policy text and deadline code, breakfast, book-on-request and rooms left, in the requested currency.
The response contains the tool result directly.
The provider identifies room_types as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
amenities | string[] | |
bed_summary | string | |
cheapest_price | number | Agoda's cheapest per-night price for the room type (same basis as the offers' per_night_exclusive). |
image_url | string | |
is_dormitory | boolean | |
max_extra_beds | number | |
max_occupancy | number | |
name | string | |
number_of_beds | string | |
offers | object[] | |
room_type_id | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.