# ข้อมูลโรงแรม Google แบบ HTML (เรียลไทม์)

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/business_data/google/hotel_info/live/html`

**Tags:** DataForSEO

รายการโรงแรมเดียวกับ `post_dataforseo_business_google_hotel_info_live` แต่คืนค่าเป็น HTML ดิบ ห่อหุ้มในซองของ DataForSEO: ข้อมูลอยู่ใน `tasks[0].result` ผลลัพธ์อยู่ใน `tasks[0].status_code` - คำขอที่ถูกปฏิเสธยังคงคืนค่า HTTP 200

### ข้อมูลอ้างอิงราคา

- การวัดปริมาณ: ต้นทุนการตอบกลับที่รายงาน
- ประมาณการคำขออ้างอิง: USD 0.2428
- ตัวคูณลูกค้าอ้างอิง: 1.0 ห้ามนำไปใช้ซ้ำกับยอดที่ตัดบัญชีของลูกค้าแล้ว

เป็นเพียงข้อมูลเมตาอ้างอิง ไม่ใช่ใบเสนอราคาของบัญชี ไม่ใช่ราคาที่รับประกัน และไม่ใช่เพดานการใช้จ่าย เครดิตทรัพยากรไม่ใช่เครดิต Felo การเรียกเก็บเงินขั้นสุดท้ายเป็นไปตามบันทึกการเรียกเก็บเงินของ Felo

## Related links

- [Google SERP API](<https://docs.dataforseo.com/v3/serp/google/organic/overview/>)
- [endpoint Hotel Searches](<https://docs.dataforseo.com/v3/business_data/google/hotel_searches/task_post/>)
- [Pricing](<https://dataforseo.com/pricing/business-data/google-hotels-api>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "hotel_identifier": {
            "type": "string",
            "description": "<em>ตัวระบุโรงแรมที่ไม่ซ้ำกัน</em><br><strong>ฟิลด์ที่จำเป็น</strong><br>ตัวระบุที่ไม่ซ้ำกันของเอนทิตีโรงแรมในการค้นหา Google;<br>คุณสามารถรับค่าได้โดยส่งคำขอไปยัง Google SERP API ขั้นสูง (อยู่ในองค์ประกอบ <code>hotels</code> ของการตอบกลับ) หรือ endpoint Hotel Searches ของ Business Data API<br>ตัวอย่าง:<br><code>ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE</code>"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>ลำดับความสำคัญของงาน</em><br>ฟิลด์ไม่บังคับ<br>รับค่าต่อไปนี้ได้:<br>1 – ลำดับความสำคัญการทำงานปกติ (กำหนดเป็นค่าเริ่มต้น)<br>2 – ลำดับความสำคัญการทำงานสูง คุณจะถูกเรียกเก็บเงินเพิ่มสำหรับงานที่มีลำดับความสำคัญการทำงานสูง<br>ค่าใช้จ่ายสามารถคำนวณได้ที่หน้า Pricing"
          },
          "location_name": {
            "type": "string",
            "description": "<em>ชื่อเต็มของสถานที่ของเครื่องมือค้นหา</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>location_code</code> หรือ <code>location_coordinate</code></strong><br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_code</code> หรือ <code>location_coordinate</code></strong><br>คุณสามารถรับรายการสถานที่ที่ใช้ได้พร้อม <code>location_name</code> ได้โดยส่งคำขอแยกไปที่ <code>https://api.dataforseo.com/v3/business_data/google/locations</code><br>ตัวอย่าง:<br><code class=\"long-string\">London,England,United Kingdom</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>รหัสสถานที่ของเครื่องมือค้นหา</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>location_name</code> หรือ <code>location_coordinate</code></strong><br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_name</code> หรือ <code>location_coordinate</code></strong><br>คุณสามารถรับรายการสถานที่ที่ใช้ได้พร้อม <code>location_code</code> ได้โดยส่งคำขอแยกไปที่ <code>https://api.dataforseo.com/v3/business_data/google/locations</code><br>ตัวอย่าง:<br><code class=\"long-string\">2840</code>"
          },
          "location_coordinate": {
            "type": "string",
            "description": "<em>พิกัด GPS ของสถานที่</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>location_name</code> หรือ <code>location_code</code></strong><br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_name</code> หรือ <code>location_code</code></strong><br>พารามิเตอร์ <code>location_coordinate</code> ต้องระบุในรูปแบบ <em>\"latitude,longitude\"</em><br>จำนวนตำแหน่งทศนิยมสูงสุดสำหรับ <em>\"latitude\"</em> และ <em>\"longitude\"</em>: 7<br><strong>หมายเหตุ</strong>: หากใช้พิกัดเพื่อกำหนดสถานที่ การค้นหาจะเกิดขึ้นในชุมชนที่ใกล้ที่สุด;<br>ตัวอย่าง:<br><code class=\"long-string\">53.476225,-2.243572</code>"
          },
          "language_name": {
            "type": "string",
            "description": "<em>ชื่อเต็มของภาษาของเครื่องมือค้นหา</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>language_code</code></strong><br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>language_code</code></strong><br>คุณสามารถรับรายการภาษาที่ใช้ได้พร้อม <code>language_name</code> ได้โดยส่งคำขอแยกไปที่ <code>https://api.dataforseo.com/v3/business_data/google/languages</code><br>ตัวอย่าง:<br><code class=\"long-string\">English</code>"
          },
          "language_code": {
            "type": "string",
            "description": "<em>รหัสภาษาของเครื่องมือค้นหา</em><br><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>language_name</code></strong><br><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>language_name</code></strong><br>คุณสามารถรับรายการภาษาที่ใช้ได้พร้อม <code>language_code</code> ได้โดยส่งคำขอแยกไปที่ <code>https://api.dataforseo.com/v3/business_data/google/languages</code><em><br></em>ตัวอย่าง:<em><br></em><code class=\"long-string\">en</code>"
          },
          "check_in": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>วันที่เช็กอิน</em><br>ฟิลด์ไม่บังคับ<br>หากไม่ได้ระบุฟิลด์นี้ ระบบจะใช้วันพรุ่งนี้เป็นค่าเริ่มต้น;<br>รูปแบบวันที่: <code>\"yyyy-mm-dd\"</code><br>ตัวอย่าง:<br><code>\"2019-01-15\"</code>"
          },
          "check_out": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>วันที่เช็กเอาต์</em><br>ฟิลด์ไม่บังคับ<br>หากไม่ได้ระบุฟิลด์นี้ ระบบจะใช้วันที่สองวันนับจากนี้เป็นค่าเริ่มต้น;<br>รูปแบบวันที่: <code>\"yyyy-mm-dd\"</code><br>ตัวอย่าง:<br><code>\"2019-01-15\"</code>"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>สกุลเงิน</em><br>ฟิลด์ไม่บังคับ<br>ตัวอย่าง:<br><code>\"USD\"</code>"
          },
          "adults": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>จำนวนผู้ใหญ่</em><br>ฟิลด์ไม่บังคับ<br>หากไม่ได้ระบุฟิลด์นี้ ระบบจะใช้ผู้ใหญ่สองคนเป็นค่าเริ่มต้น<br>ตัวอย่าง:<br><code>1</code>"
          },
          "children": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>จำนวนและอายุของเด็ก</em><br>ฟิลด์ไม่บังคับ<br>หากไม่ได้ระบุฟิลด์นี้ จะไม่มีเด็กในการค้นหา;<p>กำหนดค่าต่อไปนี้หากต้องการรวมเด็กอายุ 14 ปีหนึ่งคน:<br><code>[14]</code><br>กำหนดค่าต่อไปนี้หากต้องการรวมเด็กอายุ 13 ปีหนึ่งคนและเด็กอายุ 8 ปีหนึ่งคน:<br><code>[13,8]</code>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>ตัวระบุงานที่ผู้ใช้กำหนด</em><br>ฟิลด์ไม่บังคับ<br><em>จำกัด 255 อักขระ</em><br>ใช้พารามิเตอร์นี้เพื่อระบุงานและจับคู่กับผลลัพธ์<br>คุณจะพบค่า <code>tag</code> ที่ระบุในอาร์เรย์ <code>data</code> ของการตอบกลับ"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_name": "New York,New York,United States",
            "hotel_identifier": "ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_name": "New York,New York,United States",
      "hotel_identifier": "ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE"
    }
  ]
}
```

## Responses

### 200 — ดำเนินการสำเร็จ

Headers:
- `X-Request-Id` (string) — ตัวระบุคำขอที่ต้องระบุเมื่อติดต่อฝ่ายสนับสนุนของ Felo

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveHtmlResponseInfo"
    }
  ]
}
```

### 400 — ไม่สามารถประมวลผลคำขอได้ ตรวจสอบพารามิเตอร์ของคำขอ

### 401 — จำเป็นต้องใช้คีย์ API ของ Felo ที่ถูกต้อง

### 402 — ไม่สามารถดำเนินการตามคำขอได้ เนื่องจากไม่เป็นไปตามข้อกำหนดด้านการเรียกเก็บเงิน

### 403 — บัญชีไม่ได้รับอนุญาตให้ดำเนินการนี้

### 429 — ถึงขีดจำกัดคำขอหรือการใช้จ่ายแล้ว

### 502 — บริการไม่สามารถดำเนินการตามคำขอให้เสร็จสิ้นได้

### 503 — API หรือบริการเรียกเก็บเงินไม่พร้อมใช้งานชั่วคราว

### 504 — บริการหมดเวลาระหว่างประมวลผลคำขอ

### default — การตอบกลับข้อผิดพลาด; การตอบกลับที่ส่งผ่านจากต้นทางอาจใช้รูปแบบของผู้ให้บริการ

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "เวอร์ชันปัจจุบันของ API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "รหัสสถานะทั่วไป\nคุณสามารถดูรายการรหัสการตอบกลับทั้งหมดได้ที่นี่"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "ข้อความข้อมูลทั่วไป\nคุณสามารถดูรายการข้อความข้อมูลทั่วไปทั้งหมดได้ที่นี่"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "เวลาดำเนินการทั้งหมด (วินาที)"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "ค่าใช้จ่ายรวมของงาน, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "จำนวนงานในอาร์เรย์ tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "จำนวนงานในอาร์เรย์ tasks ที่ส่งคืนพร้อมข้อผิดพลาด",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "ตัวระบุงาน\nตัวระบุงานที่ไม่ซ้ำกันในระบบของเราในรูปแบบ UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "รหัสสถานะของงาน\nสร้างโดย DataForSEO โดยอยู่ในช่วงต่อไปนี้ได้: 10000-60000\nคุณสามารถดูรายการรหัสการตอบกลับทั้งหมดได้ที่นี่"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "ข้อความข้อมูลของงาน\nคุณสามารถดูรายการข้อความข้อมูลทั่วไปทั้งหมดได้ที่นี่"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "เวลาดำเนินการ, วินาที"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "ค่าใช้จ่ายรวมของงาน, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "จำนวนองค์ประกอบในอาร์เรย์ result",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "พาธ URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "มีพารามิเตอร์เดียวกับที่คุณระบุในคำขอ POST"
    }
  }
}
```

### Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveHtmlResponseInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveHtmlResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveHtmlTaskInfo"
              }
            ]
          },
          "description": "<em>อาร์เรย์ของงาน</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveHtmlResultInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveHtmlResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ตัวระบุโรงแรมที่ไม่ซ้ำกันซึ่งระบุเป็น <code>\"hotel_id:$\"</code></em>"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "ประเภทขององค์ประกอบ"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>รหัสสถานที่ในอาร์เรย์ POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>รหัสภาษาในอาร์เรย์ POST</em>"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>วันที่และเวลาที่ได้รับผลลัพธ์</em><br>ในรูปแบบ UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>ตัวอย่าง:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>จำนวนผลลัพธ์ที่คืนค่าในอาร์เรย์ <strong><code>items</code></strong></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_HtmlItemInfo"
          }
        ]
      },
      "description": "<em>หน้า HTML</em>"
    }
  }
}
```

### Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveHtmlTaskInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveHtmlTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveHtmlResultInfo"
              }
            ]
          },
          "description": "<em>อาร์เรย์ของผลลัพธ์</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_HtmlItemInfo

`#/components/schemas/Response36Afe1097B20_HtmlItemInfo`

```json
{
  "type": "object",
  "properties": {
    "page": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<i>หมายเลขลำดับของหน้า HTML ที่ส่งคืน</i>"
    },
    "date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>วันที่และเวลาที่หน้า HTML ถูกสแกน</em><br>ในรูปแบบ UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>ตัวอย่าง:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "html": {
      "type": [
        "string",
        "null"
      ],
      "description": "<i>หน้า</i> <i>HTML</i>"
    }
  }
}
```
