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]"
}
]
}
]
}
]
}