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_bodyProperty 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_bodyRequest contract
- Method and path: POST /apis/v1/agoda-com/hotels/property-rooms
- Availability: enabled
- Request URL template:
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"
}
}
}
}
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
Response
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.