Google Hotels

This document provides information about the Google Hotels API and the available parameters.

The Google Hotels API enables retrieval of Google Hotels search results and returns structured JSON output.

It supports hotel search queries with filters such as check-in/check-out dates, number of guests, price range, currency, sorting, and more.


API Setup

Endpoint

https://serp-api.netnut.io/search

Authentication

Use HTTP Basic Authentication:

Authorization: Basic <base64(username:password)>

Where <base64(username:password)> is the Base64-encoded string of your NetNut credentials.


Request Format

The request is sent as a GET request. All parameters are passed directly in the URL query string.

Example Request

https://serp-api.netnut.io/search?hl=en&q=uk&gl=us&engine=google_hotels&adults=1&checkInDate=2026-03-26&checkOutDate=2026-03-28

Request Parameters

Field
Type
Description
Parameter Type

engine

string

Search engine to use. For this product, use google_hotels.

Required

q

string

Search query or destination for the hotel search.

Required

hl

string

Language of the Google Hotels results. Example: en.

Optional

gl

string

Geographic location for the search results. Example: us.

Optional

checkInDate

string

Hotel check-in date in YYYY-MM-DD format.

Required

checkOutDate

string

Hotel check-out date in YYYY-MM-DD format.

Required

ts

string

Google Hotels encoded parameter used for advanced search state and filtering. Can be used without checkInDate and checkOutDate

Optional

minPrice

integer

Minimum hotel price filter.

Optional

maxPrice

integer

Maximum hotel price filter.

Optional

currency

string

Currency for hotel pricing. Example: USD, EUR.

Optional

adults

integer

Number of adults staying.

Optional

childrenAges

string

Ages of children as comma-separated values. Example: 2,6,10.

Optional

sortBy

string

Sorting method for hotel results.

Optional

rawHtml

integer

Controls whether raw HTML is returned. 1 = return parsed JSON + HTML, 2 = return HTML only.

Optional


Example Usage


Response Format

The Google Hotels API returns structured JSON.

No HTML is returned by default.

When rawHtml=1, the response includes both the parsed JSON and the raw HTML. When rawHtml=2, the response returns only the raw HTML.


Example JSON Response

Last updated