curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/business_data/google/hotel_info/live/html \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"hotel_identifier": "<string>",
"location_name": "<string>",
"language_name": "<string>",
"priority": 123,
"location_code": 123,
"location_coordinate": "<string>",
"language_code": "<string>",
"check_in": "<string>",
"check_out": "<string>",
"currency": "<string>",
"adults": 123,
"children": [
123
],
"tag": "<string>"
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/business_data/google/hotel_info/live/html"
payload = [
{
"hotel_identifier": "<string>",
"location_name": "<string>",
"language_name": "<string>",
"priority": 123,
"location_code": 123,
"location_coordinate": "<string>",
"language_code": "<string>",
"check_in": "<string>",
"check_out": "<string>",
"currency": "<string>",
"adults": 123,
"children": [123],
"tag": "<string>"
}
]
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([
{
hotel_identifier: '<string>',
location_name: '<string>',
language_name: '<string>',
priority: 123,
location_code: 123,
location_coordinate: '<string>',
language_code: '<string>',
check_in: '<string>',
check_out: '<string>',
currency: '<string>',
adults: 123,
children: [123],
tag: '<string>'
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/business_data/google/hotel_info/live/html', 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/dataforseo/business_data/google/hotel_info/live/html",
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([
[
'hotel_identifier' => '<string>',
'location_name' => '<string>',
'language_name' => '<string>',
'priority' => 123,
'location_code' => 123,
'location_coordinate' => '<string>',
'language_code' => '<string>',
'check_in' => '<string>',
'check_out' => '<string>',
'currency' => '<string>',
'adults' => 123,
'children' => [
123
],
'tag' => '<string>'
]
]),
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/dataforseo/business_data/google/hotel_info/live/html"
payload := strings.NewReader("[\n {\n \"hotel_identifier\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"check_in\": \"<string>\",\n \"check_out\": \"<string>\",\n \"currency\": \"<string>\",\n \"adults\": 123,\n \"children\": [\n 123\n ],\n \"tag\": \"<string>\"\n }\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/dataforseo/business_data/google/hotel_info/live/html")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"hotel_identifier\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"check_in\": \"<string>\",\n \"check_out\": \"<string>\",\n \"currency\": \"<string>\",\n \"adults\": 123,\n \"children\": [\n 123\n ],\n \"tag\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/business_data/google/hotel_info/live/html")
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 {\n \"hotel_identifier\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"check_in\": \"<string>\",\n \"check_out\": \"<string>\",\n \"currency\": \"<string>\",\n \"adults\": 123,\n \"children\": [\n 123\n ],\n \"tag\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"version": "<string>",
"version.status_code": 123,
"version.status_message": "<string>",
"version.time": "<string>",
"version.cost": 123,
"version.tasks_count": 123,
"version.tasks_error": 123,
"tasks": [
"<string>"
],
"tasks.id": "<string>",
"tasks.status_code": 123,
"tasks.status_message": "<string>",
"tasks.time": "<string>",
"tasks.cost": 123,
"tasks.result_count": 123,
"tasks.path": [
"<string>"
],
"tasks.data": [
"<string>"
],
"result": [
"<string>"
],
"result.keyword": "<string>",
"result.type": "<string>",
"result.se_domain": "<string>",
"result.location_code": 123,
"result.language_code": "<string>",
"result.datetime": "<string>",
"result.items_count": 123,
"items": [
"<string>"
],
"items.page": 123,
"items.date": "<string>",
"items.html": "<string>"
}实时 Google 酒店信息 HTML
Google Hotel Info 将为您提供 [Google Hotels](http://www.
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/business_data/google/hotel_info/live/html \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"hotel_identifier": "<string>",
"location_name": "<string>",
"language_name": "<string>",
"priority": 123,
"location_code": 123,
"location_coordinate": "<string>",
"language_code": "<string>",
"check_in": "<string>",
"check_out": "<string>",
"currency": "<string>",
"adults": 123,
"children": [
123
],
"tag": "<string>"
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/business_data/google/hotel_info/live/html"
payload = [
{
"hotel_identifier": "<string>",
"location_name": "<string>",
"language_name": "<string>",
"priority": 123,
"location_code": 123,
"location_coordinate": "<string>",
"language_code": "<string>",
"check_in": "<string>",
"check_out": "<string>",
"currency": "<string>",
"adults": 123,
"children": [123],
"tag": "<string>"
}
]
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([
{
hotel_identifier: '<string>',
location_name: '<string>',
language_name: '<string>',
priority: 123,
location_code: 123,
location_coordinate: '<string>',
language_code: '<string>',
check_in: '<string>',
check_out: '<string>',
currency: '<string>',
adults: 123,
children: [123],
tag: '<string>'
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/business_data/google/hotel_info/live/html', 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/dataforseo/business_data/google/hotel_info/live/html",
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([
[
'hotel_identifier' => '<string>',
'location_name' => '<string>',
'language_name' => '<string>',
'priority' => 123,
'location_code' => 123,
'location_coordinate' => '<string>',
'language_code' => '<string>',
'check_in' => '<string>',
'check_out' => '<string>',
'currency' => '<string>',
'adults' => 123,
'children' => [
123
],
'tag' => '<string>'
]
]),
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/dataforseo/business_data/google/hotel_info/live/html"
payload := strings.NewReader("[\n {\n \"hotel_identifier\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"check_in\": \"<string>\",\n \"check_out\": \"<string>\",\n \"currency\": \"<string>\",\n \"adults\": 123,\n \"children\": [\n 123\n ],\n \"tag\": \"<string>\"\n }\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/dataforseo/business_data/google/hotel_info/live/html")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"hotel_identifier\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"check_in\": \"<string>\",\n \"check_out\": \"<string>\",\n \"currency\": \"<string>\",\n \"adults\": 123,\n \"children\": [\n 123\n ],\n \"tag\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/business_data/google/hotel_info/live/html")
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 {\n \"hotel_identifier\": \"<string>\",\n \"location_name\": \"<string>\",\n \"language_name\": \"<string>\",\n \"priority\": 123,\n \"location_code\": 123,\n \"location_coordinate\": \"<string>\",\n \"language_code\": \"<string>\",\n \"check_in\": \"<string>\",\n \"check_out\": \"<string>\",\n \"currency\": \"<string>\",\n \"adults\": 123,\n \"children\": [\n 123\n ],\n \"tag\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"version": "<string>",
"version.status_code": 123,
"version.status_message": "<string>",
"version.time": "<string>",
"version.cost": 123,
"version.tasks_count": 123,
"version.tasks_error": 123,
"tasks": [
"<string>"
],
"tasks.id": "<string>",
"tasks.status_code": 123,
"tasks.status_message": "<string>",
"tasks.time": "<string>",
"tasks.cost": 123,
"tasks.result_count": 123,
"tasks.path": [
"<string>"
],
"tasks.data": [
"<string>"
],
"result": [
"<string>"
],
"result.keyword": "<string>",
"result.type": "<string>",
"result.se_domain": "<string>",
"result.location_code": 123,
"result.language_code": "<string>",
"result.datetime": "<string>",
"result.items_count": 123,
"items": [
"<string>"
],
"items.page": 123,
"items.date": "<string>",
"items.html": "<string>"
}示例
curl -X POST "https://api.aisa.one/apis/v1/dataforseo/business_data/google/hotel_info/live/html" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '[{"hotel_identifier": "...", "priority": "...", "location_name": "..."}]'
// 把整段复制给 Claude Code、Codex、Cursor 或任意 coding agent。
// 连接、授权、跑通这个例子需要的东西都在里面 ——
// 不用粘贴任何 key,浏览器里点一次 Allow 就好。
{
"operation_id": "post_dataforseo_business_google_hotel_info_live_html",
"arguments": {},
"max_price_usd": 0.05
}
// ── for the agent ─────────────────────────────────────────────────────────
// Register the AIsa MCP server, then call its `use` tool with the JSON above.
// name aisa
// endpoint https://mcp.aisa.one/mcp
// transport streamable-http
// auth OAuth. The server publishes RFC 9728 metadata, so open a
// browser and the user clicks Allow once — nothing to paste.
// If AISA_API_KEY is set, send it as a bearer header instead.
// Use your own MCP mechanism, not a hand-edited config file:
// Codex codex mcp add aisa --url https://mcp.aisa.one/mcp
// Claude Code claude mcp add --transport http -s user aisa https://mcp.aisa.one/mcp
// Cursor / VS Code a "url" entry for https://mcp.aisa.one/mcp in the MCP config
// The server lists five tools over https://mcp.aisa.one/servers worth of APIs:
// search, get_details, use, batch_use, list_categories. search and
// get_details are free; use is billed per call and max_price_usd refuses
// anything above the cap before spending. This operation's full contract —
// every argument, the response shape, the price and the pitfalls — is at
// https://aisa.one/docs/zh/api-reference/dataforseo/post_dataforseo-business-data-google-hotel-info-live-html.md
// Then run the call and show me the result.
https://mcp.aisa.one/mcp —— Claude Code、
Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次
Allow,不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见
aisa.one/zh-cn/mcp。授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
酒店唯一标识符 必填字段 Google 搜索中酒店实体的唯一标识符;可通过向高级 Google SERP API 发出请求(包含在响应的 hotels 元素中),或通过 Business Data API 的 Hotel Searches 端点 获取该值 示例:ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE
搜索引擎位置的完整名称 如果未指定 location_code 或 location_coordinate,则此字段为必填字段。如果使用此字段,则无需指定 location_code 或 location_coordinate。您可以单独请求 https://api.dataforseo.com/v3/business_data/google/locations,获取包含 location_name 的可用位置列表。示例:London,England,United Kingdom
搜索引擎语言的完整名称 如果未指定 language_code,则为必填字段 如果使用此字段,则无需指定 language_code 您可以通过向 https://api.dataforseo.com/v3/business_data/google/languages 单独发送请求,获取包含 language_name 的可用语言列表。示例:English
任务优先级 可选字段 可采用以下值:1 – 普通执行优先级(默认设置)2 – 高执行优先级 使用高执行优先级的任务将额外收费。
搜索引擎位置代码 如果未指定 location_name 或 location_coordinate,则为必填字段 如果使用此字段,则无需指定 location_name 或 location_coordinate 可通过向 https://api.dataforseo.com/v3/business_data/google/locations 单独发送请求,获取包含 location_code 的可用位置列表。示例:2840
位置的 GPS 坐标 如果未指定 location_name 或 location_code,则为必填字段 如果使用此字段,则无需指定 location_name 或 location_code location_coordinate 参数应以 “latitude,longitude” 格式指定 “latitude” 和 “longitude” 的最大小数位数:7 注意:如果使用坐标设置位置,搜索将在最近的居民点进行;示例:53.476225,-2.243572
搜索引擎语言代码 如果未指定 language_name,则为必填字段 如果使用此字段,则无需指定 language_name 可通过向 https://api.dataforseo.com/v3/business_data/google/languages 单独发送请求,获取可用语言及其 language_code 的列表 示例:en
入住日期 可选字段;如果未指定此字段,默认使用明天的日期;日期格式:"yyyy-mm-dd" 示例:"2019-01-15"
退房日期 可选字段;如果未指定此字段,系统将默认使用从现在起两天后的日期;日期格式:"yyyy-mm-dd",示例:"2019-01-15"
货币 可选字段示例:"USD"
成人数量 可选字段,如果不指定此字段,默认使用两名成人;示例:1
儿童人数和年龄;可选字段;如果未指定此字段,搜索中将不包含儿童;如果要包含一名 14 岁儿童,请设置以下值:[14];如果要包含一名 13 岁儿童和一名 8 岁儿童,请设置以下值:[13,8]
用户定义的任务标识符,可选字段,字符数上限为 255。你可以使用此参数标识任务并将其与结果匹配;你可以在响应的 data 数组中找到指定的 tag 值
响应
成功响应
API 的当前版本
执行时间(秒)
所有任务的总成本(美元)
tasks 数组中的任务数量
tasks 数组中返回错误的任务数量
任务数组
执行时间(秒)
任务成本(美元)
result 数组中的元素数量
URL 路径
包含与您在 POST 请求中指定的参数相同的参数
结果数组
指定为 "hotel_id:$" 的唯一酒店标识符
搜索结果类型 在本例中为 "hotel_info"
POST 数组中的搜索引擎域名
POST 数组中的位置代码
POST 数组中的语言代码
收到结果的日期和时间,采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”;示例:2019-11-15 12:57:46 +00:00
items 数组中返回的结果数量
HTML 页面
返回的 HTML 页面的序列号
HTML 页面扫描的日期和时间,采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”;示例:2019-11-15 12:57:46 +00:00
HTML 页面