# Google Hotels

#### SERP API Google Query Parameters

Configure Google Hotel queries using Thordata’s SERP API, including localization parameters and "advanced parameter" output options.

<details>

<summary><strong><code>q</code> ,</strong>Search Query<strong>(Required)</strong></summary>

Define the search query used for data scraping (Default value: `q=pizza`). Any keywords in any language are supported.

**Example Request:**\
Example using the parameter `q`: pizza

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=pizza" \
 -d "json=1"
```

</details>

## Localization

<details>

<summary><strong><code>google_domain</code>,</strong>Domain<strong>(Optional)</strong></summary>

Define the search engine domain name for data crawling (default value: `google.com`).

You can modify this parameter in the system or refer to the [Google domain page](https://domains.squarespace.com/) to obtain the complete list of supported domain names.

**Example Request:**

Example results for `q` : <mark style="color:blue;">pizza</mark> ,`google_domain`: <mark style="color:blue;">google.co.ao</mark>

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=pizza" \
 -d "google_domain=google.co.ao" \
 -d "json=1"
```

</details>

<details>

<summary><strong><code>gl</code> ,</strong>Country<strong>(Optional)</strong></summary>

Specify the target country/region for search results (default value: `us`). Use two-letter country codes(e.g., `us`, `ru`, `uk`).

For the complete list of supported country codes, please refer to: [Google’s Country List](https://developers.google.com/adwords/api/docs/appendix/geotargeting).

**Example Request:**

Example results for `q` : <mark style="color:blue;">pizza</mark>,`gl`: <mark style="color:blue;">ru</mark>

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=pizza" \
 -d "gl=ru" \
 -d "json=1"
```

</details>

<details>

<summary><strong><code>hl</code> ,</strong>Language<strong>(Optional)</strong></summary>

Set the interface language for search results (default value: `en`). Adopt standard language code formats (e.g., `en`, `es`, `zh-CN`).

For the complete list of supported language codes, please refer to: [Google Language Codes](https://developers.google.com/google-ads/api/docs/start).

**Example Request:**

Example results for `q` : <mark style="color:blue;">pizza</mark>,`hl`: <mark style="color:blue;">es</mark>

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=pizza" \
 -d "json=1" \
 -d "hl=es"
```

</details>

## Advanced Parameters

<details>

<summary><code>check_in_date</code><strong>,</strong>Check-in Date<strong>(Optional)</strong></summary>

The parameter defines the check-in date. The format is `YYYY-MM-DD`. For example, `2025-08-22`

**Example Request:**

Example results for `q` : <mark style="color:blue;">pizza</mark>,`check_in_date`:<mark style="color:blue;">2025-08-22</mark>

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=Bali Resorts" \
 -d "json=1" \
 -d "check_in_date=2025-08-22"
```

</details>

<details>

<summary><code>check_out_date</code> <strong>,</strong>Check-out Date<strong>(Optional)</strong></summary>

The parameter defines the check-out date. The format is `YYYY-MM-DD`. For example, `2025-08-23`

**Example Request:**

Example results for `q` : <mark style="color:blue;">pizza</mark>,`check_out_date`:<mark style="color:blue;">2025-08-23</mark>

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=Bali Resorts" \
 -d "json=1" \
 -d "check_in_date=2025-08-22" \
 -d "check_out_date=2025-08-23"
```

</details>

<details>

<summary><code>adults</code> <strong>,</strong>Number of Adults<strong>(Optional)</strong></summary>

The parameter defines the number of adults. The default is`2`.

**Code Example:**

Example results for `q` : <mark style="color:blue;">pizza</mark>,`adults`:<mark style="color:blue;">2</mark>

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=Bali Resorts" \
 -d "json=1" \
 -d "adults=2"
```

</details>

For further assistance, contact us at **<support@thordata.com>**.
