DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
按 id 获取 Google 酒店搜索任务结果
按 id 获取已排队的 Google Hotels 搜索结果。采用 DataForSEO 的信封结构:数据位于 tasks[0].result,结果状态位于 tasks[0].status_code——被拒绝的请求仍会返回 HTTP 200。⚠️ 响应大小由提交时设置的 depth 或上限固定,在此无法收窄;如果响应过大,请缩小范围重新提交,而不是分页。
计费参考
- 计量方式:按上报的响应成本计量。
- 参考请求估算:0.012 美元。
- 参考客户倍率:1.0。不得对已结算的客户金额再次应用。
仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。
- 类型: object | null · Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskGetResponseInfo200
- 类型: number | null 格式: doublecost
任务总费用,美元
- 类型: integer | nullstatus
_code 通用状态码 完整响应码列表见此处
- 类型: string | nullstatus
_message 通用信息性消息 完整的一般信息性消息列表见此处
- 类型: array (object | null)[] | nulltasks
任务数组
- 类型: object | null · Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskGetTaskInfo
- cost类型: number | null 格式: double
任务总费用,美元
- data类型: object | null
包含你在 POST 请求中指定的相同参数
- property类型: object | null
Name
- id类型: string | null
任务标识符 我们系统中 UUID 格式的唯一任务标识符
- path类型: array (string | null)[] | null
URL 路径
- result类型: array (object | null)[] | null
结果数组
- check类型: string | null
_url 搜索引擎结果的直接 URL
可用于确保我们提供了准确的结果 - datetime类型: string | null
收到结果的日期和时间
采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00 - items类型: array (object | null)[] | null
- hotel类型: string | null
_identifier 酒店实体在 Google 搜索中的唯一标识符
示例:CgoI-KWyzenM_MV3EAE - is类型: boolean | null
_paid 表示付费酒店信息
如果为true,相关的hotel_search_item是付费广告
如果为false,相关的hotel_search_item是自然酒店信息 - location类型: object | null · Response36Afe1097B20_GpsCoordinatesLocationInfo
酒店位置的 GPS 坐标
- latitude类型: number | null
酒店在 Google 地图中的纬度坐标
示例:"latitude": 51.584091 - longitude类型: number | null
酒店在 Google 地图中的经度坐标
示例:"longitude": -0.31365919999999997
- overview类型: array (string | null)[] | null
_images 酒店的特色图片
- prices类型: object | null · Response36Afe1097B20_HotelPriceInfo
酒店价格
- check类型: string | null
_in 入住日期和时间
UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00 - check类型: string | null
_out 退房日期和时间
UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00 - currency类型: string | null
价格货币
默认应用USD,除非在 POST 数组中指定 - discount类型: string | null
_text 所应用折扣的说明
- items类型: array (object | null)[] | null
遇到的条目类型
items数组中出现的搜索引擎结果类型;
可能的条目类型:hotel_search_item- currency类型: string | null
价格货币
默认应用USD,除非在 POST 数组中指定 - domain类型: string | null
第三方域名 带有价格信息的第三方网站页面的域名
- free类型: string | null
_cancellation _until 可免费取消的截止日期 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00” 如果所选日期不提供免费取消,则等于 null
- is类型: boolean | null
_paid 表示付费酒店信息
如果为true,相关的hotel_search_item是付费广告
如果为false,相关的hotel_search_item是自然酒店信息 - offers类型: array (object | null)[] | null
特色价格优惠
- currency类型: string | null
价格货币
默认应用USD,除非在 POST 数组中指定 - free类型: string | null
_cancellation _until 可免费取消的截止日期 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00” 如果所选日期不提供免费取消,则等于 null
- max类型: integer | null
_visitors 访客数量上限 该价格优惠适用的最大访客数量
- offer类型: array (string | null)[] | null
_images 价格优惠图片 价格优惠中所展示图片的 URL
- price类型: number | null
每晚价格
- title类型: string | null
酒店标题
- type类型: string | null
元素类型
- url类型: string | null
价格优惠的 URL 价格优惠所在网站页面的 URL
- official类型: boolean | null
_site - price类型: number | null
每晚价格
- title类型: string | null
酒店标题
- type类型: string | null
元素类型
- url类型: string | null
第三方页面 URL 带有价格信息的第三方网站页面的 URL
- price类型: number | null
每晚价格
- price类型: number | null 格式: int64
_without _discount 未应用折扣的每晚完整价格
- prices类型: array (object | null)[] | null
_by _dates - check类型: string | null
_in _date - check类型: string | null
_out _date - currency类型: string | null
价格货币
默认应用USD,除非在 POST 数组中指定 - price类型: number | null
每晚价格
- visitors类型: integer | null
此价格对应的酒店访客数量
- reviews类型: object | null · Response36Afe1097B20_HotelReviewInfo
酒店评价和评分信息
- mentions类型: array (object | null)[] | null
酒店提及
按标准划分的酒店评论相关信息- negative类型: integer | null 格式: int64
_count 按标准的负面评论数
- positive类型: integer | null 格式: int64
_count 按标准的正面评论数
- positive类型: number | null
_score 按标准的正面得分
- title类型: string | null
已评估标准的标题
- total类型: integer | null 格式: int64
_count 按标准的所有评论数
- visible类型: boolean | null
_by _default 元素默认可见
表示评论元素是否默认可见
- other类型: array (object | null)[] | null
_sites _reviews 第三方网站上的评论
来自第三方网站的评论- rating类型: object | null · Response36Afe1097B20_RatingInfo
评论中的评分
第三方网站上评论中包含的评分信息- rating类型: integer | null
_max rating_type 的最大值
- rating类型: string | null
_type 评分类型 此处可以找到以下元素:Max5、Percents、CustomMax
- value类型: number | null 格式: double
评分的值
- votes类型: integer | null 格式: int64
_count 反馈数量
- review类型: string | null
_text 评论文本
评论的文本 - title类型: string | null
评论标题
包含评论最初出现的第三方网站名称 - url类型: string | null
评论 URL
指向评论最初出现的第三方网站的 URL
- rating类型: object | null
_distribution 按投票数划分的评分分布
1 到 5 分范围内各评分对应的投票分布- property类型: integer | null 格式: Int64
Name
- value类型: number | null
基于客户投票的酒店总体评分
- votes类型: integer | null 格式: int64
_count 客户投票数
参与酒店评分计算的客户投票数
- stars类型: integer | null
酒店星级评分
1 到 5 星的星级评分 - title类型: string | null
酒店标题
- type类型: string | null
元素类型
- items类型: integer | null 格式: int64
_count 条目类型
items数组中的条目数 - keyword类型: string | null
POST 数组中收到的关键词
返回的关键词会解码 %##(加号“+”将解码为空格);
为获得准确的搜索结果,地点名称会自动附加到关键词后 - language类型: string | null
_code POST 数组中的语言代码
- location类型: integer | null
_code POST 数组中的位置代码
- result类型: integer | null 格式: int64
_count result 数组中的元素数
- status类型: integer | null
_code 任务的状态码 由 DataForSEO 生成,范围如下:10000-60000 完整响应码列表见此处
- status类型: string | null
_message 任务的信息性消息 完整的一般信息性消息列表见此处
- time类型: string | null
执行时间,秒
- 类型: integer | null 格式: int64tasks
_count tasks 数组中的任务数
- 类型: integer | null 格式: int64tasks
_error tasks 数组中返回错误的任务数
- 类型: string | nulltime
总执行时间,秒
- 类型: string | nullversion
API 的当前版本
application/json - 400
无法处理该请求。请检查请求参数。
- 401
需要有效的 Felo API 密钥。
- 402
由于未满足计费要求,请求无法继续。
- 403
该账户无权执行此操作。
- 429
已达到请求或支出限额。
- 502
服务无法完成该请求。
- 503
API 或计费服务暂时不可用。
- 504
服务在处理请求时超时。
- default
错误响应;上游透传响应可能采用提供方格式
application/json
curl https://openapi.felo.ai/v1/beta/dataforseo/business_data/google/hotel_searches/task_get/00000000-0000-0000-0000-000000000000 \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"version": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"tasks_count": null,
"tasks_error": null,
"tasks": [
{
"id": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"result_count": null,
"path": [
null
],
"data": null,
"result": [
{
"keyword": null,
"location_code": null,
"language_code": null,
"check_url": null,
"datetime": null,
"items_count": null,
"items": [
{
"type": null,
"hotel_identifier": null,
"title": null,
"stars": null,
"is_paid": null,
"location": "[Max Depth Exceeded]",
"reviews": "[Max Depth Exceeded]",
"overview_images": [
"[Max Depth Exceeded]"
],
"prices": "[Max Depth Exceeded]"
}
]
}
]
}
]
}