Hotel
curl --request POST \
--url https://api.aisa.one/apis/v1/trip-com/hotels/hotel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/"
}
'import requests
url = "https://api.aisa.one/apis/v1/trip-com/hotels/hotel"
payload = { "url": "https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/" }
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({
url: 'https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/'
})
};
fetch('https://api.aisa.one/apis/v1/trip-com/hotels/hotel', 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/trip-com/hotels/hotel",
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([
'url' => 'https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/'
]),
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/trip-com/hotels/hotel"
payload := strings.NewReader("{\n \"url\": \"https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/\"\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/trip-com/hotels/hotel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/trip-com/hotels/hotel")
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 \"url\": \"https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/\"\n}"
response = http.request(request)
puts response.read_body{
"complete": false,
"observed_at_ms": 1789502400000,
"records": [
{
"address": "38-51 Bedford Way, Camden, London, Greater London, WC1H 0DG, United Kingdom",
"availability": null,
"description": "With a stay at Royal National Hotel, you'll be centrally located in London, within a 5-minute drive of The British Museum and Leicester Square. This hotel is 1.5 mi (2.4 km) from Trafalgar Square and 1.6 mi (2.5 km) from Oxford Street. The Royal National Hotel in London officially opened in 1998 Make use of convenient amenities such as complimentary wireless Internet access, concierge services, and a vending machine. Enjoy a meal at Blooms Cafe or snacks in the hotel's coffee shop/cafe. English breakfasts are available daily from 6:30 AM to 10:30 AM for a fee. Featured amenities include dry cleaning/laundry services, a 24-hour front desk, and multilingual staff. This hotel has 5 meeting rooms available for events. Self parking (subject to charges) is available onsite. Make yourself at home in one of the 1358 guestrooms. Complimentary wireless Internet access keeps you connected, and satellite programming is available for your entertainment. Bathrooms with bathtubs or showers are provided. Conveniences include phones and coffee/tea makers, and housekeeping is provided on request.",
"facts": [
"Opened: 1998",
"Number of Rooms: 1379"
],
"hotel_id": "2985758",
"name": "Royal National Hotel"
}
],
"source_url": "https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/",
"warnings": [
"Published directory/profile content only. No date-specific availability, offers, tax-inclusive totals or booking. Room types do not establish vacancy. Source marketing prices are omitted."
]
}Trip.com
Hotel
Read hotel identity, street address, description and published property facts. Does not quote a stay.
POST
https://api.aisa.one
/
apis
/
v1
/
trip-com
/
hotels
/
hotel
Hotel
curl --request POST \
--url https://api.aisa.one/apis/v1/trip-com/hotels/hotel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/"
}
'import requests
url = "https://api.aisa.one/apis/v1/trip-com/hotels/hotel"
payload = { "url": "https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/" }
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({
url: 'https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/'
})
};
fetch('https://api.aisa.one/apis/v1/trip-com/hotels/hotel', 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/trip-com/hotels/hotel",
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([
'url' => 'https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/'
]),
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/trip-com/hotels/hotel"
payload := strings.NewReader("{\n \"url\": \"https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/\"\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/trip-com/hotels/hotel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/trip-com/hotels/hotel")
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 \"url\": \"https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/\"\n}"
response = http.request(request)
puts response.read_body{
"complete": false,
"observed_at_ms": 1789502400000,
"records": [
{
"address": "38-51 Bedford Way, Camden, London, Greater London, WC1H 0DG, United Kingdom",
"availability": null,
"description": "With a stay at Royal National Hotel, you'll be centrally located in London, within a 5-minute drive of The British Museum and Leicester Square. This hotel is 1.5 mi (2.4 km) from Trafalgar Square and 1.6 mi (2.5 km) from Oxford Street. The Royal National Hotel in London officially opened in 1998 Make use of convenient amenities such as complimentary wireless Internet access, concierge services, and a vending machine. Enjoy a meal at Blooms Cafe or snacks in the hotel's coffee shop/cafe. English breakfasts are available daily from 6:30 AM to 10:30 AM for a fee. Featured amenities include dry cleaning/laundry services, a 24-hour front desk, and multilingual staff. This hotel has 5 meeting rooms available for events. Self parking (subject to charges) is available onsite. Make yourself at home in one of the 1358 guestrooms. Complimentary wireless Internet access keeps you connected, and satellite programming is available for your entertainment. Bathrooms with bathtubs or showers are provided. Conveniences include phones and coffee/tea makers, and housekeeping is provided on request.",
"facts": [
"Opened: 1998",
"Number of Rooms: 1379"
],
"hotel_id": "2985758",
"name": "Royal National Hotel"
}
],
"source_url": "https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/",
"warnings": [
"Published directory/profile content only. No date-specific availability, offers, tax-inclusive totals or booking. Room types do not establish vacancy. Source marketing prices are omitted."
]
}Request contract
- Method and path: POST /apis/v1/trip-com/hotels/hotel
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/trip-com/hotels/hotel
{
"operationId": "trip-com.hotels.hotel",
"method": "POST",
"path": "/apis/v1/trip-com/hotels/hotel",
"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": {
"url": "https://www.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"url": {
"description": "Pattern: ^https://www\\.trip\\.com/hotels/[a-z0-9-]+-hotel-detail-[0-9]+/[a-z0-9-]+/?$.",
"type": "string"
}
},
"required": [
"url"
],
"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
Read hotel identity, street address, description and published property facts. Does not quote a stay.
The response contains the tool result directly.
The provider identifies records as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
address | string | |
availability | object | |
description | string | |
facts | string[] | |
hotel_id | string | |
name | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.