# Dapatkan Hasil Carian Hotel Google mengikut id

**API:** Data API

**Endpoint:** `GET /v1/beta/dataforseo/business_data/google/hotel_searches/task_get/{id}`

**Tags:** DataForSEO

Mendapatkan carian Google Hotels dalam baris gilir mengikut `id`. Dibungkus dalam sampul DataForSEO: data dalam `tasks[0].result`, hasil dalam `tasks[0].status_code` - permintaan yang ditolak masih memulangkan HTTP 200. Dibungkus dalam sampul DataForSEO: data dalam `tasks[0].result`, hasil dalam `tasks[0].status_code` - permintaan yang ditolak masih memulangkan HTTP 200. ⚠️ Saiz respons ditetapkan oleh `depth` atau had semasa penghantaran dan tidak boleh disempitkan di sini; jika terlalu besar, hantar semula dengan nilai lebih kecil dan bukan menomborkan halaman.

### Rujukan harga

- Pemeteran: kos respons yang dilaporkan.
- Anggaran rujukan setiap permintaan: USD 0,012.
- Pengganda rujukan pelanggan: 1,0. Jangan gunakannya semula pada amaun pelanggan yang telah diselesaikan.

Metadata rujukan sahaja, bukan sebut harga akaun, harga terjamin atau had perbelanjaan. Kredit sumber bukan kredit Felo. Caj akhir mengikut rekod pengebilan Felo.

## Related links

- [UUID](<https://en.wikipedia.org/wiki/Universally_unique_identifier>)
- [Hotel Info](<https://docs.dataforseo.com/v3/business_data/google/hotel_info/live/advanced/>)

## Base URL

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

## Authentication

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

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | path | yes | string | <em>pengecam tugas</em><br><strong>pengecam tugas unik dalam sistem kami dalam format UUID</strong><br>anda boleh menggunakannya dalam tempoh <strong>30 hari</strong> untuk meminta hasil tugas pada bila-bila masa |

## Responses

### 200 — Operasi berjaya

Headers:
- `X-Request-Id` (string) — Pengecam permintaan untuk disertakan semasa menghubungi sokongan Felo.

**application/json**

Schema: object | null

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

### 400 — Permintaan tidak dapat diproses. Semak parameter permintaan.

### 401 — Kunci API Felo yang sah diperlukan.

### 402 — Permintaan tidak dapat diteruskan kerana keperluan pengebilan tidak dipenuhi.

### 403 — Akaun tidak dibenarkan melakukan operasi ini.

### 429 — Had permintaan atau had perbelanjaan telah dicapai.

### 502 — Perkhidmatan tidak dapat menyelesaikan permintaan.

### 503 — API atau perkhidmatan pengebilan tidak tersedia buat sementara waktu.

### 504 — Perkhidmatan tamat masa semasa memproses permintaan.

### default — Respons ralat; respons passthrough huluan mungkin menggunakan format penyedia

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "versi semasa API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kod status umum; anda boleh menemui senarai penuh kod respons di sini"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "mesej maklumat umum; anda boleh menemui senarai penuh mesej maklumat umum di sini"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "jumlah masa pelaksanaan, saat"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "jumlah kos tugas, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "bilangan tugas dalam array tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "bilangan tugas dalam array tasks yang dipulangkan dengan ralat",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "pengecam tugas; pengecam tugas unik dalam sistem kami dalam format UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kod status tugas yang dijana oleh DataForSEO; boleh berada dalam julat berikut: 10000-60000; anda boleh menemui senarai penuh kod respons di sini"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "mesej maklumat tugas; anda boleh menemui senarai penuh mesej maklumat umum di sini"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "masa pelaksanaan, saat"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "jumlah kos tugas, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "bilangan elemen dalam array hasil",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "Laluan URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "mengandungi parameter yang sama seperti yang anda tentukan dalam permintaan POST"
    }
  }
}
```

### Response36Afe1097B20_BusinessDataGoogleHotelSearchesItem

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelSearchesItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "jenis elemen"
    },
    "hotel_identifier": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>pengecam unik entiti hotel dalam carian Google</em><br>contoh:<br><code>CgoI-KWyzenM_MV3EAE</code>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tajuk hotel</em>"
    },
    "stars": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>penarafan kelas hotel</em><br>penarafan kelas antara 1-5 bintang"
    },
    "is_paid": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>menunjukkan penyenaraian hotel berbayar</strong></em><br>jika <code>true</code>, <code>hotel_search_item</code> berkaitan ialah iklan berbayar<br>jika <code>false</code>, <code>hotel_search_item</code> berkaitan ialah penyenaraian hotel organik"
    },
    "location": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_GpsCoordinatesLocationInfo"
        }
      ],
      "description": "<em>koordinat GPS lokasi hotel</em>"
    },
    "reviews": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_HotelReviewInfo"
        }
      ],
      "description": "<em>ulasan dan maklumat penilaian hotel</em>"
    },
    "overview_images": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>imej pilihan untuk hotel</em>"
    },
    "prices": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_HotelPriceInfo"
        }
      ],
      "description": "<em>harga hotel</em>"
    }
  }
}
```

### Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskGetResponseInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskGetResponseInfo`

```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_BusinessDataGoogleHotelSearchesTaskGetTaskInfo"
              }
            ]
          },
          "description": "<em>tatasusunan tugas</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskGetResultInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskGetResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>kata kunci yang diterima dalam array POST</em><br>kata kunci dipulangkan dengan %## dinyahkod (aksara tambah '+' akan dinyahkod menjadi aksara ruang);<br>untuk mendapatkan hasil carian yang tepat, nama lokasi ditambahkan pada kata kunci secara automatik"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>kod lokasi dalam array POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>kod bahasa dalam array POST</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL terus ke hasil enjin carian</em><br>anda boleh menggunakannya untuk memastikan bahawa kami memberikan hasil yang tepat"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tarikh dan masa hasil diterima</em><br>dalam format UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>contoh:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>jenis item</em><br>bilangan item dalam array <code>items</code>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelSearchesItem"
          }
        ]
      },
      "description": "<em>array item</em><br><strong>Nota:</strong> medan ini sentiasa sama dengan <code>null</code>; gunakan untuk memudahkan integrasi dan memastikan interoperabiliti dengan endpoint Hotel Info"
    }
  }
}
```

### Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskGetTaskInfo

`#/components/schemas/Response36Afe1097B20_BusinessDataGoogleHotelSearchesTaskGetTaskInfo`

```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_BusinessDataGoogleHotelSearchesTaskGetResultInfo"
              }
            ]
          },
          "description": "<em>tatasusunan hasil</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_GpsCoordinatesLocationInfo

`#/components/schemas/Response36Afe1097B20_GpsCoordinatesLocationInfo`

```json
{
  "type": "object",
  "properties": {
    "latitude": {
      "type": [
        "number",
        "null"
      ],
      "description": "<i>koordinat latitud hotel dalam google maps</i><br>contoh:<br><code>\"latitude\": 51.584091</code>"
    },
    "longitude": {
      "type": [
        "number",
        "null"
      ],
      "description": "<i>koordinat longitud hotel dalam google maps</i><br>contoh:<br><code>\"longitude\": -0.31365919999999997</code>"
    }
  }
}
```

### Response36Afe1097B20_HotelInfoPriceOffer

`#/components/schemas/Response36Afe1097B20_HotelInfoPriceOffer`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "jenis elemen"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tajuk hotel</em>"
    },
    "price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>harga setiap malam</em>"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>mata wang harga</em><br><code>USD</code> digunakan secara lalai, melainkan dinyatakan dalam array POST"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "url tawaran harga\nURL ke halaman laman web tempat tawaran harga muncul"
    },
    "max_visitors": {
      "type": [
        "integer",
        "null"
      ],
      "description": "bilangan maksimum pelawat\nbilangan maksimum pelawat yang baginya tawaran harga sah"
    },
    "offer_images": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "imej tawaran harga\nURL imej yang dipaparkan dalam tawaran harga"
    },
    "free_cancellation_until": {
      "type": [
        "string",
        "null"
      ],
      "description": "tarikh sehingga pembatalan percuma tersedia\ndalam format UTC: “yyyy-mm-dd hh-mm-ss +00:00”\nsama dengan null jika pembatalan percuma tidak tersedia untuk tarikh yang dipilih"
    }
  },
  "description": "tawaran harga pilihan"
}
```

### Response36Afe1097B20_HotelPriceInfo

`#/components/schemas/Response36Afe1097B20_HotelPriceInfo`

```json
{
  "type": "object",
  "properties": {
    "price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>harga setiap malam</em>"
    },
    "price_without_discount": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>harga penuh setiap malam tanpa diskaun</em>",
      "format": "int64"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>mata wang harga</em><br><code>USD</code> digunakan secara lalai, melainkan dinyatakan dalam array POST"
    },
    "discount_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>teks tentang diskaun yang digunakan</em>"
    },
    "check_in": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tarikh dan masa daftar masuk</em><br>dalam format UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>contoh:<br><code>2019-11-15 12:57:46 +00:00</code>"
    },
    "check_out": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tarikh dan masa daftar keluar</em><br>dalam format UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>contoh:<br><code>2019-11-15 12:57:46 +00:00</code>"
    },
    "visitors": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>bilangan pelawat hotel untuk harga ini</em>"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_HotelPriceItemInfo"
          }
        ]
      },
      "description": "<em>jenis item yang ditemui</em><br>jenis hasil enjin carian yang ditemui dalam array <code>items</code>;<br>jenis item yang mungkin: <code>hotel_search_item</code>"
    },
    "prices_by_dates": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_PricesByDates"
          }
        ]
      }
    }
  }
}
```

### Response36Afe1097B20_HotelPriceItemInfo

`#/components/schemas/Response36Afe1097B20_HotelPriceItemInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "jenis elemen"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tajuk hotel</em>"
    },
    "price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>harga setiap malam</em>"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>mata wang harga</em><br><code>USD</code> digunakan secara lalai, melainkan dinyatakan dalam array POST"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "url halaman pihak ketiga\nURL ke halaman laman web pihak ketiga dengan maklumat harga"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "domain pihak ketiga\ndomain halaman laman web pihak ketiga dengan maklumat harga"
    },
    "is_paid": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>menunjukkan penyenaraian hotel berbayar</strong></em><br>jika <code>true</code>, <code>hotel_search_item</code> berkaitan ialah iklan berbayar<br>jika <code>false</code>, <code>hotel_search_item</code> berkaitan ialah penyenaraian hotel organik"
    },
    "official_site": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "free_cancellation_until": {
      "type": [
        "string",
        "null"
      ],
      "description": "tarikh sehingga pembatalan percuma tersedia\ndalam format UTC: “yyyy-mm-dd hh-mm-ss +00:00”\nsama dengan null jika pembatalan percuma tidak tersedia untuk tarikh yang dipilih"
    },
    "offers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_HotelInfoPriceOffer"
          }
        ]
      }
    }
  }
}
```

### Response36Afe1097B20_HotelReviewInfo

`#/components/schemas/Response36Afe1097B20_HotelReviewInfo`

```json
{
  "type": "object",
  "properties": {
    "value": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>penarafan hotel keseluruhan berdasarkan undian pelanggan</em>"
    },
    "votes_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>bilangan undian pelanggan</em><br>bilangan undian pelanggan yang disertakan dalam pengiraan penarafan hotel",
      "format": "int64"
    },
    "mentions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ReviewMentionInfo"
          }
        ]
      },
      "description": "<em>sebutan hotel</em><br>maklumat tentang ulasan hotel mengikut kriteria"
    },
    "rating_distribution": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "Int64"
      },
      "description": "<em>taburan penilaian mengikut undian</em><br>taburan undian merentas penilaian dalam julat 1 hingga 5"
    },
    "other_sites_reviews": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_OtherSitesReviewsInfo"
          }
        ]
      },
      "description": "<em>ulasan di laman pihak ketiga</em><br>ulasan daripada laman pihak ketiga"
    }
  }
}
```

### Response36Afe1097B20_OtherSitesReviewsInfo

`#/components/schemas/Response36Afe1097B20_OtherSitesReviewsInfo`

```json
{
  "type": "object",
  "properties": {
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tajuk ulasan</em><br>mengandungi nama laman pihak ketiga tempat ulasan mula-mula muncul"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>url ulasan</em><br>URL ke laman pihak ketiga tempat ulasan mula-mula muncul"
    },
    "review_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>teks ulasan</em><br>teks ulasan"
    },
    "rating": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_RatingInfo"
        }
      ],
      "description": "<em>penilaian dalam ulasan</em><br>maklumat tentang penilaian yang terkandung dalam ulasan di laman pihak ketiga"
    }
  }
}
```

### Response36Afe1097B20_PricesByDates

`#/components/schemas/Response36Afe1097B20_PricesByDates`

```json
{
  "type": "object",
  "properties": {
    "price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>harga setiap malam</em>"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>mata wang harga</em><br><code>USD</code> digunakan secara lalai, melainkan dinyatakan dalam array POST"
    },
    "check_in_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "check_out_date": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
```

### Response36Afe1097B20_RatingInfo

`#/components/schemas/Response36Afe1097B20_RatingInfo`

```json
{
  "properties": {
    "rating_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "jenis penilaian\ndi sini anda boleh menemui elemen berikut: Max5, Percents, CustomMax"
    },
    "value": {
      "type": [
        "number",
        "null"
      ],
      "description": "nilai penilaian",
      "format": "double"
    },
    "votes_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "jumlah maklum balas",
      "format": "int64"
    },
    "rating_max": {
      "type": [
        "integer",
        "null"
      ],
      "description": "nilai maksimum untuk rating_type"
    }
  }
}
```

### Response36Afe1097B20_ReviewMentionInfo

`#/components/schemas/Response36Afe1097B20_ReviewMentionInfo`

```json
{
  "type": "object",
  "properties": {
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tajuk kriteria yang dinilai</em>"
    },
    "positive_score": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>skor positif mengikut kriteria</em>"
    },
    "positive_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>bilangan ulasan positif mengikut kriteria</em>",
      "format": "int64"
    },
    "negative_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>bilangan ulasan negatif mengikut kriteria</em>",
      "format": "int64"
    },
    "total_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>bilangan semua ulasan mengikut kriteria</em>",
      "format": "int64"
    },
    "visible_by_default": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>elemen kelihatan secara lalai</em><br>menunjukkan sama ada elemen ulasan kelihatan secara lalai"
    }
  }
}
```
