Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

DataForSEO Google Hotel Details

เอกสาร API
https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/hotel_info/live/advanced

Fetch a Google Hotels page: rates by provider, amenities, reviews. Google Hotels details for a hotel_identifier.

ราคา
$0.004USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 3 ไม่บังคับ

Playground

อินพุต
Google hotel identifier from hotel search results.
Location code, e.g. 2840 for the United States.
Language code, e.g. "en".
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

DataForSEO Google Hotel Details API

Returns the Google Hotels details page for one hotel: address, description, amenities, check-in and check-out times, and location data. It needs a hotel_identifier from hotel search results, plus a location_code and language_code.

Use cases

  • Build a hotel profile with address, description and map coordinates for a travel site.
  • Compare amenities such as free Wi-Fi, pool and restaurant across competing hotels.
  • Show check-in and check-out times in a booking or itinerary tool.
  • Find the Google Hotels page URL for a property and open it for a rate check.

Request

curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/hotel_info/live/advanced" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"hotel_identifier": "ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE", "location_code": 2840, "language_code": "en"}'

The result is returned in outputs[0].

Parameters

NameTypeRequiredDescription
hotel_identifierstringNoGoogle hotel identifier from hotel search results.
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_info",
        "hotel_identifier": "ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE",
        "language_code": "en",
        "location_code": 2840,
        "os": "windows",
        "se": "google"
      },
      "id": "11030828-2190-0285-0000-3fdb3f54e6b9",
      "path": [
        "v3"
      ],
      "result": [
        {
          "about": {
            "amenities": [
              {
                "category": "internet",
                "category_label": "Internet",
                "items": [
                  {
                    "amenity": "wifi",
                    "amenity_label": "Wi-Fi",
                    "hint": "free",
                    "hint_label": "Free",
                    "is_available": true
                  }
                ]
              }
            ],
            "check_in_time": {
              "hour": 15,
              "minute": 0
            },
            "check_out_time": {
              "hour": 11,
              "minute": 0
            },
            "description": "Sophisticated quarters in an upmarket hotel offering an elegant restaurant, an o…",
            "domain": "president.gr",
            "full_address": "President Hotel Athens, Leof. Kifisias 43, Athina 115 23, Greece",
            "popular_amenities": [
              {
                "amenity": "pool",
                "amenity_label": "Pool",
                "hint": null,
                "hint_label": null,
                "is_available": true
              }
            ],
            "sub_descriptions": [
              "An 8-minute walk from a metro stop, this upscale hotel is 5 km from the Temple o…"
            ]
          },
          "address": "Leof. Kifisias 43, Athina 115 23, Greece",
          "check_url": "https://www.google.com/travel/hotels/entity/ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE?…",
          "datetime": "2026-11-03 08:28:58 +00:00",
          "hotel_identifier": "ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE",
          "language_code": "en",
          "location": {
            "latitude": 37.989081399999996,
            "location_chain": [
              {
                "card_id": "/m/0b76ryf",
                "cid": "10046976553708580665",
                "feature_id": "0x14a1c7bf3d8ca3e3:0x8b6e07f1c67a6f39",
                "title": "Decentralized Administration of Attica"
              }
            ],
            "longitude": 23.7638777,
            "maps_url": "https://maps.google.com/maps?hl=en&gl=US&um=1&ie=UTF-8&fb=1&sa=X&ll=37.9890814,2…",
            "neighborhood": "Central Athens Regional Unit",
            "neighborhood_description": "Busy Central Athens is known for classical landmarks, including the Temple of Ol…",
            "overall_score": null,
            "score_by_categories": {
              "airport_access": 0,
              "overall": 0,
              "restaurants": 0,
              "things_to_do": 0,
              "transit": 0
            }
          },
          "location_code": 2840
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "3.0197 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "3.0296 sec.",
  "version": "0.1.20261022"
}

Response fields

FieldMeaning
tasks[].result[].about.descriptionShort text description of the hotel.
tasks[].result[].about.sub_descriptions[]Longer description paragraphs covering distance to landmarks, rooms and on-site facilities.
tasks[].result[].about.full_address / tasks[].result[].addressStreet address of the hotel. full_address includes the hotel name.
tasks[].result[].about.check_in_time / tasks[].result[].about.check_out_timeCheck-in and check-out times as hour and minute.
tasks[].result[].about.popular_amenities[]Main amenities Google highlights. Each row has amenity_label, an optional hint_label such as Free, and is_available.
tasks[].result[].about.amenities[].items[]Full amenity list grouped by category_label, such as Internet or Food & drink. Each item has amenity, hint and is_available.
tasks[].result[].about.domainWebsite domain of the hotel.
tasks[].result[].location.latitude / tasks[].result[].location.longitudeCoordinates of the hotel.
tasks[].result[].location.location_chain[].titlePlace names from the wider region down to the city, for example Attica and Athens.
tasks[].result[].check_urlGoogle Hotels URL for this hotel in the requested language and location.

Notes

  • Get hotel_identifier from hotel search results, for example from DataForSEO Google Hotel Search Advanced.
  • datetime uses the format 2026-11-03 08:28:58 +00:00.
  • location.score_by_categories values and location.overall_score can be 0 or null when no score is present, so check them before use.
  • The hint field on amenities is null when there is no extra detail.

Pricing

$0.004 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
DataForSEO$0.004 ต่อการเรียกJSON
DataForSEOเริ่มต้นที่ $0.0102 ต่อครั้งJSON
DataForSEOเริ่มต้นที่ $0.000724 ต่อครั้งJSON
DataForSEO$0.004 ต่อการเรียกJSON
DataForSEOเริ่มต้นที่ $0.00162 ต่อครั้งJSON
DataForSEOเริ่มต้นที่ $0.001105 ต่อครั้งJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ DataForSEO Google Hotel Details API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/hotel_info/live/advanced โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

DataForSEO Google Hotel Details API ราคาเท่าไร?

$0.004 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

DataForSEO Google Hotel Details API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: hotel_identifier (string), location_code (integer) และ language_code (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

DataForSEO Google Hotel Details API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ DataForSEO ไหม?

ไม่จำเป็น DataForSEO Google Hotel Details ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง DataForSEO API แยกต่างหาก