# Search hotels (v1)

Get hotels and vacation rentals around a city, area or landmark for your dates and guests, with nightly and total prices, rating and a `property_token` for details and seller prices.

- Platform: Google Hotels
- Request: `GET https://api.toolzerhub.com/v1/google-hotels/search`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/google-hotels/search/get-google-hotels-search

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `query` | query | yes | string | A city, area or landmark, e.g. "Shinjuku Tokyo" or "hotels near Central Park". A bare place is searched as "hotels in ". |
| `check_in_date` | query | yes | string | Check-in date. |
| `check_out_date` | query | yes | string | Check-out date. |
| `currency` | query | no | string | ISO 4217 currency for prices. Default: USD. |
| `adults` | query | no | integer | Adults staying. Prices are for this many guests. Default: 2. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/google-hotels/search?query=<query>&check_in_date=<check_in_date>&check_out_date=<check_out_date>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
