> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Hotels

> Read a Google Hotels page with a place in q as JSON with the google-hotels parser. $1 per 1,000 calls. Send the page to scrape.

Reads a Google Hotels page with a place in q, like hotels in Lisbon, and returns its data as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.google.com/travel/search?q=hotels%20in%20Lisbon","formats":[{"type":"json","parser":"google-hotels"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://www.google.com/travel/search?q=hotels%20in%20Lisbon",
    formats: [{ type: "json", parser: "google-hotels" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://www.google.com/travel/search?q=hotels%20in%20Lisbon",
        "formats": [{"type": "json", "parser": "google-hotels"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `name`, `hotelId`, `hotelUrl`, `price`, `totalPrice` and `priceCurrency`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "checkIn": "2026-11-05",
      "checkOut": "2026-11-06",
      "results": [
        {
          "name": "Lisboa Pessoa Hotel",
          "hotelId": "ChoIh4uhruDksvGAARoNL2cvMTFjMXMzZHQ5dBAB",
          "hotelUrl": "https://www.google.com/travel/hotels/entity/ChoIh4uhruDksvGAARoNL2cvMTFjMXMzZHQ5dBAB?hl=en&gl=us&curr=USD&ts=CAESCgoCCA…",
          "price": 130,
          "totalPrice": 142,
          "priceCurrency": "USD",
          "deal": "GREAT DEAL",
          "dealDescription": "39% less than usual",
          "rating": 4.7,
          "reviews": 1545,
          "hotelClass": 4,
          "amenities": [
            "Breakfast ($)",
            "Free Wi-Fi",
            "Parking ($)"
          ],
          "position": 1
        }
      ],
      "cursor": "eyJvZmZzZXQiOjE4LCJzZWVuIjpbIkNob0loNHVocnVEa3N2R0FBUm9OTDJjdk1URmpNWE16WkhRNWRCQUIiLCJDaGtJNjhtUXRLaW9ncElfR2cwdlp5OHhNV051WWpONWRIRXdFQUUiLCJDaG9JN1pTN2pib..."
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `checkIn` | Defaults to tomorrow. |
| `checkOut` | Defaults to one night after checkIn. |
| `childrenAges` | One age per child, like \[7, 12]. |
| `currency` | ISO 4217 currency code, e.g. USD. |
| `minPrice` | Per night. |
| `maxPrice` | Per night. |
| `minRating` | Google Hotels' own Guest rating. |
| `hotelClass` | Google Hotels' own Hotel class, as star counts like \[4, 5]. |
| `amenities` | Google Hotels' own Amenities. Every one must be offered. |
| `propertyTypes` | Google Hotels' own Property type. |
| `cursor` | The cursor from the previous response. Send it as is. |

It also takes `adults`, `freeCancellation`, `specialOffers` and `sort`.

## Price

\$1 per 1,000 calls. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Google Hotels page with a place in q, like hotels in Lisbon. Any other URL fails with `invalidRequest`.
* To read the next page, send the `cursor` from the response as the `cursor` option. Paging needs an API key.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Google Patents](https://docs.stophy.dev/scrape/prebuilt-parsers/web/google-patents.md)
* [Google Trends](https://docs.stophy.dev/scrape/prebuilt-parsers/web/google-trends.md)
* [Google Maps](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/google-maps.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.