Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

DataForSEO Google Hotel Search Advanced

API 文件
https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/hotel_searches/live/advanced

Returns detailed Google Hotel search results and business data for target locations. Provides hotel listings, guest ratings, and business attributes directly from Google.

價格
自 $0.004 起美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 3 個選填

Playground

輸入
Search query.
Location code, e.g. 2840 for the United States.
Language code, e.g. "en".
輸出範例
回應outputs · 757 B · 34 行
[
  {
    "cost": 0,
    "status_code": 20000,
    "status_message": "Ok.",
    "tasks": [
      {
        "cost": 0,
        "data": {
          "api": "business_data",
          "function": "hotel_searches",
          "se": "google",
          "se_type": "hotel_searches"
        },
        "id": "09291343-2190-0293-0000-ffaaa04d8dce",
        "path": [
          "v3",
          "business_data",
          "google",
          "… 2 more items in the full response"
        ],
        "result": null,
        "result_count": 0,
        "status_code": 40503,
        "status_message": "POST Data Is Invalid.",
        "time": "0 sec."
      }
    ],
    "tasks_count": 1,
    "tasks_error": 1,
    "time": "0.0324 sec.",
    "version": "0.1.20260917"
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

DataForSEO Google Hotel Search Advanced API

Returns a list of hotels that Google Hotels shows for a search query in a given location and language. Each hotel has a title, star class, coordinates, a nightly price and a guest rating. You send a keyword, a location_code and a language_code.

Use cases

  • Build a price list of hotels in a city for one check-in date.
  • Find hotels with a discount label such as "17% less than usual".
  • Map hotel locations with their latitude and longitude and compare ratings by area.
  • Rank hotels in a destination by guest rating and review count.

Request

curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/hotel_searches/live/advanced" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "hotels in new york", "location_code": 2840, "language_code": "en"}'

The result is returned in outputs[0].

Parameters

NameTypeRequiredDescription
keywordstringNoSearch query.
language_codestringNoLanguage code, e.g. "en".
location_codeintegerNoLocation code, e.g. 2840 for the United States.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "data": {
        "api": "business_data",
        "device": "desktop",
        "function": "hotel_searches",
        "keyword": "hotels in new york",
        "language_code": "en",
        "location_code": 2840,
        "os": "windows",
        "se": "google"
      },
      "id": "11030828-2190-0293-0000-c13ead85f48b",
      "path": [
        "v3"
      ],
      "result": [
        {
          "check_url": "https://www.google.com/travel/search?q=hotels+in+new+york%2c+United+States&hl=en…",
          "datetime": "2026-11-03 08:28:51 +00:00",
          "items": [
            {
              "hotel_identifier": "ChoImOTyzeuCzrykARoNL2cvMTF2cGw0bnIzYhAB",
              "is_paid": false,
              "location": {
                "latitude": 40.7835127,
                "longitude": -73.8408876
              },
              "overview_images": [
                "https://lh3.googleusercontent.com/grass-cs/AABkmLf8BlMpA-fjlDIOeCxbGUyJzy_nQ51AE…"
              ],
              "prices": {
                "check_in": "2026-11-04 00:00:00 +00:00",
                "check_out": "2026-11-05 00:00:00 +00:00",
                "currency": "USD",
                "discount_text": "17% less than usual",
                "items": null,
                "price": 125,
                "price_without_discount": null,
                "prices_by_dates": null
              },
              "reviews": {
                "mentions": null,
                "other_sites_reviews": null,
                "rating_distribution": null,
                "value": 4.3,
                "votes_count": 615
              },
              "stars": 2,
              "title": "LY New York Hotel"
            }
          ],
          "items_count": 18,
          "keyword": "hotels in new york, United States",
          "language_code": "en",
          "location_code": 2840
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "5.0342 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "5.0432 sec.",
  "version": "0.1.20261022"
}

Response fields

FieldMeaning
tasks[].result[].items[].titleHotel name as shown in Google Hotels.
tasks[].result[].items[].hotel_identifierGoogle's ID for the hotel. Use it to look up one hotel in detail.
tasks[].result[].items[].starsStar class of the hotel.
tasks[].result[].items[].prices.price / tasks[].result[].items[].prices.currencyListed price for the stay and its currency code, such as USD.
tasks[].result[].items[].prices.check_in / tasks[].result[].items[].prices.check_outDates the price applies to. They use the format YYYY-MM-DD HH:MM:SS +00:00.
tasks[].result[].items[].prices.discount_textDiscount label such as "17% less than usual". It is null when Google shows none.
tasks[].result[].items[].reviews.value / tasks[].result[].items[].reviews.votes_countAverage guest rating and the number of ratings behind it.
tasks[].result[].items[].location.latitude / tasks[].result[].items[].location.longitudeCoordinates of the hotel.
tasks[].result[].items[].overview_images[]URLs of hotel photos.
tasks[].result[].items_countNumber of hotels in the result.

Notes

  • Set location_code from the DataForSEO location list. The example uses 2840 for the United States.
  • The response echoes the search as keyword with the country added, for example hotels in new york, United States. check_url links to the matching Google Hotels page.
  • Fields such as prices.items, prices.prices_by_dates and reviews.rating_distribution were null in this response.
  • To get more detail on one hotel, pass its hotel_identifier to DataForSEO Google Hotel Details.

Pricing

Billed at the actual cost of each call, about $0.004 for the request above. Failed calls are not charged.

探索更多

相關 APIs

所有 APIs
API價格回應
DataForSEO每次呼叫 $0.004 起JSON
DataForSEO每次呼叫 $0.0102 起JSON
DataForSEO每次呼叫 $0.000724 起JSON
DataForSEO每次呼叫 $0.004JSON
DataForSEO每次呼叫 $0.00162 起JSON
DataForSEO每次呼叫 $0.001105 起JSON

問題

常見問題

我要如何使用 DataForSEO Google Hotel Search Advanced API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/hotel_searches/live/advanced。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

DataForSEO Google Hotel Search Advanced API 的費用是多少?

每次起 $0.004,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

DataForSEO Google Hotel Search Advanced API 接受哪些參數?

不需要任何參數。 選填:keyword (string), location_code (integer) 和 language_code (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

DataForSEO Google Hotel Search Advanced API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 DataForSEO 開發者帳號或 API 金鑰嗎?

不需要。DataForSEO Google Hotel Search Advanced 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 DataForSEO API 存取權。