# Google Hotels Scraper (`cocoa_kit/google-hotels-scraper`) Actor

Scrape Google Hotels prices, ratings, reviews, addresses and booking-site rates for any city or hotel. Export hotel data as JSON, CSV or Excel.

- **URL**: https://apify.com/cocoa_kit/google-hotels-scraper.md
- **Developed by:** [Cocoa Kit](https://apify.com/cocoa_kit) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 96.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Google Hotels Scraper

Actor for scraping [Google Hotels](https://google.com/travel/hotels) search results. It searches for hotels in a given location and checks the prices from different providers for a given date range.

### Input

The prefilled input enables `smokeTest`. This mode scrapes one hotel and writes its details and prices to the default dataset. It uses check-in and check-out dates 30 and 31 days from the run date, one adult, and no children. Disable `smokeTest` to use your own dates and guest counts. A run fails if a request fails or no hotel records are produced.

The input of this actor is **searchQuery**, **checkInDate**, **checkOutDate**, **numberOfAdults**, **numberOfChildren**, **currencyCode** and **maxResults**.
Example of looking for prices in Prague for 2 adults from 2027-03-01 to 2027-03-03. Set future dates before each run.

```json
{
    "smokeTest": false,
    "searchQuery": "Prague",
    "checkInDate": "2027-03-01",
    "checkOutDate": "2027-03-03",
    "numberOfAdults": 2,
    "numberOfChildren": 0,
    "currencyCode": "EUR",
    "maxResults": 100
}
```

Click on the input tab for a full explanation of input in JSON.

### Output

The output contains:

- url - URL of the search results
- name of the hotel
- website of the hotel
- address of the hotel
- phone number of the hotel
- photos of the hotel (urls)
- rating of the hotel
- number of reviews
- prices from different providers (provider, price, link to the offer)

Example of the output is shown below:

```json
{
    "url": "https://www.google.com/travel/search?q=Prague&hl=en&ts=CAESCgoCCAMKAggDEAEaWgo8EjgKCC9tLzA1eXdnMiQweDQ3MGI5MzljMDk3MDc5OGI6MHg0MDBhZjBmNjYxNjQwOTA6BlByYWd1ZRoAEhoSFAoHCOgPEAkYBRIHCOgPEAkYCBgDMgIIASoNCgk6A0VVUmICCAEaAA&qs=CAEyI0NoWUlsX2ZFMDU2UTBvRThHZ292YlM4d05qUXhhM2N6RUFFOA1IAA&ap=MAG6AQZwaG90b3M",
    "title": "Hilton Prague",
    "website": "https://www.hilton.com/en/hotels/prghitw-hilton-prague/?SEO_id=GMB-EMEA-TW-PRGHITW&sa=X&ved=2ahUKEwil0LzxqdmHAxXBxxEIHZ7uBhsQyK4DegUIAxDpCg",
    "address": "Pobřežní 311/1, 186 00 Praha 8-Rohanský ostrov",
    "phone": "224 841 111",
    "photos": [
        "https://lh5.googleusercontent.com/p/AF1QipPcz2Xfi5AxX2VVZTsoQxW6EeSC0J810wUW_N2o=w253-h201-k-no",
        "https://lh5.googleusercontent.com/p/AF1QipM3W02WBDGrgUySsTH2WKJ-9-x_OjFyzF6BuRdC=k-no"
    ],
    "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipPcz2Xfi5AxX2VVZTsoQxW6EeSC0J810wUW_N2o=w253-h201-k-no",
    "rating": 4.4,
    "reviews": 8723,
    "prices": [
        {
            "provider": "Hilton Prague",
            "price": 173,
            "link": "https://www.google.com/travel/aclk?sa=l&ai=CATSdJmauZsmkHp-hjuwPjsvXgQP2-I3RV7DFsJmVCsu3lMyDFwgKEAEg6ZDtigEoBGDM4e2B_C6gAerR8OACyAEIqgRVT9BSvILN94aNCRUi-XUK2d77w7xbR7C6UQWEH5dUGKt9LtscOW_9m5_b4WgDcNinzJqbmk8VCCRJV3Ho8JadMDOqSTL4-iT0UrchRjE-vnUAWIj4fMAE962Z8JkCiAWByPrdB8AFkgGgBmWQBwGoB-u4sQKoB6a-G6gHuZqxAqgH89EbqAfu0huoB_-csQKoB8rcG6gHkq-xAqgHu6SxAqgH2KaxAqgHyqmxAqgHorqxAqgH6rqxAqgHmbWxAqgH3rWxAqgH26qxAqgH0KqxAqgH3LCxAqgH6rGxAqgHlLixAqgH7LixAqgHvrexAqgH28WxAqgHg8OxAqgHvK2xAqgHuauxAqgH6LWxAqAIvaE9sAgBwAgB0ggxEAEyB4HgwuCfgAE6EeDAgICAkIACgoCAgICAhuABQgEQSN641jJQCVjJz8PxqdmHA8gJrAH4CQGiCuwFCgoyMDI0LTA5LTA1EAMaAkNaIgJlbilj90idlVQSMTIGaGlsdG9uOAJIAVINVDJfX1JQTE9DUl9fMl2aTzNGZYWj0URoAHIDQ1pLggFZCgJUMhoSCgJDMRIMSElMVE9OLVBSR0hJGg4KAkMyEggxMzE1My4wMRoICgJDMxICVDIaDAoCQzQSBlJQTE9DUhoHCgJDNRIBMjICCAJCClQyX19SUExPQ1KgAQGwAQG4AQHIAbGC2i_gAQHoAQHwAQH4AQCoAswBqALlA7AC6tHw4AK4AoHI-t0H4AIA6gIDRVVS-gKEBGh0dHBzOi8vbGlua2NlbnRlcnVzLmRlcmJ5c29mdGNhLmNvbS9kcGxhdGZvcm0tbGlua2NlbnRlci9ib29raW5nLmh0bT9ob3RlbENvZGU9SElMVE9OLVBSR0hJJnByb3ZpZGVySG90ZWxDb2RlPVBSR0hJJmNoZWNrSW5EYXRlPTIwMjQtMDktMDUmY2hlY2tPdXREYXRlPTIwMjQtMDktMDgmaWRlbnRpZmllcj1nb29nbGUtaGlsdG9uJnByaWNlPTEzMTUzLjAxJnJvb21UeXBlQ29kZT1UMiZyYXRlUGxhbkNvZGU9UlBMT0NSJmN1cnJlbmN5PUNaSyZsYW5ndWFnZT1lbiZ1c2VyQ291bnRyeT1DWiZkYXRlVHlwZT1zZWxlY3RlZCZ0ZXN0Q2xpY2s9ZmFsc2Umc2l0ZXR5cGU9bG9jYWx1bml2ZXJzYWwmb2NjdXBhbmN5PTImcGFydG5lcklkPWhpbHRvbiZjYW1wYWlnbmlkPTIwNzYwOTEzOTMmcmF0ZVJ1bGVJZD0mdXNlcmxpc3RpZD0maWZEZWZhdWx0RGF0ZT1zZWxlY3RlZCZpc1Byb21vdGVkPWZhbHNlJmlzUnVsZUlkc0Nsb3NlZD1mYWxzZSZzX2lzX2FkPXRydWUmYWRUeXBlPTEmYWR1bHRzPTImY2hpbGRyZW49MIoDAOgKAZALA5gLAdALGtoMHAoKEMCnyaGK-aDPNRICAQNAAUoCAhlSBAMHCAnoDBOaDQEaqg0CQ1rIDQGCFAQIehIA0BUBmBYB-BYBgBcBkhcJEgcIARADGKoCuhcEOAFIAdAYAYgZAQ&co=1&ase=2&gclid=EAIaIQobChMIyc_D8anZhwMVn5CDBx2O5TUwEAoYASABEgKSPPD_BwE&sig=AOD64_0VJtJKhDzI_hWt5qFGOpgk0HsJmQ&adurl=https://linkcenterus.derbysoftca.com/dplatform-linkcenter/booking.htm?hotelCode%3DHILTON-PRGHI%26providerHotelCode%3DPRGHI%26checkInDate%3D2024-09-05%26checkOutDate%3D2024-09-08%26identifier%3Dgoogle-hilton%26price%3D13153.01%26roomTypeCode%3DT2%26ratePlanCode%3DRPLOCR%26currency%3DCZK%26language%3Den%26userCountry%3DCZ%26dateType%3Dselected%26testClick%3Dfalse%26sitetype%3Dlocaluniversal%26occupancy%3D2%26partnerId%3Dhilton%26campaignid%3D2076091393%26rateRuleId%3D%26userlistid%3D%26ifDefaultDate%3Dselected%26isPromoted%3Dfalse%26isRuleIdsClosed%3Dfalse%26s_is_ad%3Dtrue%26adType%3D1%26adults%3D2%26children%3D0"
        },
        {
            "provider": "Booking.com",
            "price": 173,
            "link": "https://www.google.com/travel/aclk?sa=l&ai=C6umHJmauZsmkHp-hjuwPjsvXgQOEzbHQeLWlsKTWEpmK-fizQwgKEAIg6ZDtigEoBGDM4e2B_C6gAbmgwNUqyAEIqQIENufgmVCyPqoEVU_QP7jEzfSGjQkVIvl1Ctme7d2vQkewulEFhB-XVBirfU26Ykxr_Zuf2-FoA3DYp8yam7opJmgdSTMcmp2vnQYyqkky-PoEkmHXGEYxPr51ZDX6lUXABP7V4afYBIgFt7DH3k_ABZIBoAZlkAcBqAfruLECqAemvhuoB7masQKoB_PRG6gH7tIbqAf_nLECqAfK3BuoB5KvsQKoB7uksQKoB9imsQKoB8qpsQKoB6K6sQKoB-q6sQKoB5m1sQKoB961sQKoB9uqsQKoB9CqsQKoB9ywsQKoB-qxsQKoB5S4sQKoB-y4sQKoB763sQKoB9vFsQKoB4PDsQKgCL2hPbAIAcAIAdIIMRABMgeB4MLgn4ABOhHgwICAgJCAAoKAgICAgIbgAUIBEEjeuNYyUAlYyc_D8anZhwPICawB-AkBogruCAoKMjAyNC0wOS0wNRADGgJDWiICZW4pY_dInZVUEjEyE2Jvb2tpbmcuY29tU3RhbmRhcmQ4AkgBUhc3NzU2MDEzXzk0MjkxNjA3XzJfMzRfMF2bTzNGZXaj0URoAHIDQ1pLggGIAQoHNzc1NjAxMxo3CgJDNRIxZWRndGlkPUdqNEdObnhrVFh5M3lIRU1JOUdrMFEmZWZwYz1FeFU3QWFFeFU3QWFWdxoWCgJDMRIQY3ovaGlsdG9uLXByYWd1ZRoICgJDMhICMTAaHgoCQzMSGG5vX3Jvb21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ZGVmZGF0ZS0wX3Jvb20tMF9nc3RhZHQtMl9yYXRlaWQtcHVibGljX2F1ZC0wX2dhY2lkLTIxNDA0NzAyNzc1X21jaWQtMTBfcHBhLTBfY2xyaWQtMF9hZC0xX2dzdGtpZC0wX2NoZWNraW4tMjAyNDA5MDVfcHB0LYoDAOgKAZALA5gLAdALGtoMHQoLEMDn4LKAlO6vjwESAgEDQAFKAgIZUgQDBwgJ6AwTmg0BGqoNAkNayA0BghQECHoSANAVAfgWAYAXAZIXCRIHCAEQAxiqAroXBDgBSAHQGAGIGQE&co=1&ase=2&gclid=EAIaIQobChMIyc_D8anZhwMVn5CDBx2O5TUwEAoYAiABEgLme_D_BwE&sig=AOD64_1a9VPx3FrS8QtDSqLesx9MQZZOKw&adurl=https://www.booking.com/hotel/cz/hilton-prague.html?checkin%3D2024-09-05%26checkout%3D2024-09-08%26group_adults%3D2%26req_adults%3D2%26show_room%3D7756013_94291607_2_34_0%26lang%3Den%26selected_currency%3DEUR%26exrt%3D0.03943012%26ext_price_total%3D518.62%26ext_price_tax%3D66.13%26xfc%3DCZK%26hca%3Dm%26group_children%3D0%26req_children%3D0%26%26no_rooms%3D1%26ts%3D1722704828%26edgtid%3DGj4GNnxkTXy3yHEMI9Gk0Q%26efpc%3DExU7AaExU7AaVw%26utm_source%3Dmetagha%26utm_medium%3Dlocaluniversal%26utm_campaign%3DCZ%26utm_term%3Dhotel-77560%26utm_content%3Ddev-desktop_los-3_bw-33_dow-Thursday_defdate-0_room-0_gstadt-2_rateid-public_aud-0_gacid-21404702775_mcid-10_ppa-0_clrid-0_ad-1_gstkid-0_checkin-20240905_ppt-%26aid%3D356938%26label%3Dmetagha-link-LUCZ-hotel-77560_dev-desktop_los-3_bw-33_dow-Thursday_defdate-0_room-0_gstadt-2_rateid-public_aud-0_gacid-21404702775_mcid-10_ppa-0_clrid-0_ad-1_gstkid-0_checkin-20240905_ppt-"
        },
        {
            "provider": "Vio.com",
            "price": 167,
            "link": "https://www.google.com/travel/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Y3VycmVuY3klMjUzREVVUiUyNTI2Y2lkJTI1M0Q2NDQzODgwMjAzJTI1MjZsaXN0aWQlMjUzRCUyNTI2cmF0ZWlkJTI1M0RPdGhlcnMlMjUyNmNsb3NlcmF0ZWlkJTI1M0QlMjUyNnByb21vJTI1M0QwJTI1MjZpc1ByaXZhdGVSYXRlJTI1M0QwJTI1MjZpc0F1ZGllbmNlVXNlciUyNTNEMCUyNTI2aXNQYWlkQ2xpY2slMjUzRDElMjUyNl90aCUyNTNEY2U3MzU1Mjg2NDM5Yzk3MDhmNzczZmM4ZDFlNDVlODAwMzU2N2IzOTAxODIwNWY2JTI1MjZkdHMlMjUzRDE3MjI3MDQ4MjklMjUyNnF1ZXJ5JTI1M0QxJTI2ZXB2JTNETVM0eSUyNmVzZCUzRFE3TWxDRWFuODZ1NUg0azN4MW9tLUVSUWVKMTJ0RkowbnVLLURObDRFNm84TjlrSXJxUWplc2Fsdzk1UDVzaV80X3JSazhRcTZibTY2azIxU2xlWHY0dlF3S2pWbHFmRVFoclNnY1ZzVjBoQlZSUVRmQklfMWRRTTNRJTI1M0QlMjUzRCUyNm90aSUzRG1BWUwwamMwbXVJJTI2dG9rZW4lM0RraHNrMjKKAwDoCgGQCwOYCwHQCxraDB0KCxCQiIyznY2i9_sBEgIBA0ABSgICGVIEAwcICegME5oNARqqDQJDWsgNAYIUBAh6EgDQFQGYFgH4FgGAFwGSFwkSBwgBEAMYqgK6FwQ4AUgB0BgBiBkB&co=1&ase=2&gclid=EAIaIQobChMIyc_D8anZhwMVn5CDBx2O5TUwEAoYBCABEgIaXfD_BwE&sig=AOD64_2kyeHPgDDQruQMF_zAHuUvWQSckw&adurl=https://deals.vio.com/?sig%3D73aca13c7f952d2641c156f3e69125e1eb497c325f122828ee5aa8797168b9a12d32303331333438363233%26turl%3Dhttps%253A%252F%252Fwww.vio.com%252FHotel%252FSearch%253FcheckIn%253D2024-09-05%2526checkOut%253D2024-09-08%2526curr%253DEUR%2526forceCurrencyChange%253D1%2526lang%253Den%2526forceLanguageChange%253D1%2526rooms%253D2%253A%2526utm_source%253Dgha%2526utm_medium%253Dcpc%2526hotelId%253D1200635%2526userCountry%253DCZ%2526profile%253Dr2d2m73kn8%2526preferredRate%253D500.11%2526label%253Dsrc%25253Dgha%252526cltype%25253Dhotel%252526datype%25253Dselected%252526gsite%25253Dlocaluniversal%252526ucountry%25253DCZ%252526udevice%25253Ddesktop%252526hotel%25253D1200635%252526day%25253D05%252526month%25253D09%252526year%25253D2024%252526los%25253D3%252526price%25253D500.11%252526currency%25253DEUR%252526cid%25253D6443880203%252526listid%25253D%252526rateid%25253DOthers%252526closerateid%25253D%252526promo%25253D0%252526isPrivateRate%25253D0%252526isAudienceUser%25253D0%252526isPaidClick%25253D1%252526_th%25253Dce7355286439c9708f773fc8d1e45e8003567b39018205f6%252526dts%25253D1722704829%252526query%25253D1%2526epv%253DMS4y%2526esd%253DQ7MlCEan86u5H4k3x1om-ERQeJ12tFJ0nuK-DNl4E6o8N9kIrqQjesalw95P5si_4_rRk8Qq6bm66k21SleXv4vQwKjVlqfEQhrSgcVsV0hBVRQTfBI_1dQM3Q%25253D%25253D%2526oti%253DmAYL0jc0muI%2526token%253Dkhsk22"
        }
    ],
    "priceRange": "167 - 173"
}
```

# Actor input Schema

## `smokeTest` (type: `boolean`):

Scrape one hotel with its details and prices. Use dates 30 and 31 days from today, one adult, and no children. Write the hotel record to the default dataset. Disable to use the dates and guest counts below.

## `searchQuery` (type: `string`):

Query to search on google travel hotels.

## `checkInDate` (type: `string`):

Check-in date for hotels search. Format: YYYY-MM-DD.

## `checkOutDate` (type: `string`):

Check-out date for hotels search. Format: YYYY-MM-DD.

## `numberOfAdults` (type: `integer`):

Number of adults for hotels search.

## `numberOfChildren` (type: `integer`):

Number of children for hotels search.

## `currencyCode` (type: `string`):

Currency code for hotels search.

## `maxResults` (type: `integer`):

Use to limit number of hotels you want to get from crawler. If you fill nothing all hotels will be scrape

## `proxyConfig` (type: `object`):

This is required if you want to use Apify Proxy.

## `maxRequestsPerCrawl` (type: `integer`):

Maximum number of requests that can be made by this crawler.

## Actor input object example

```json
{
  "smokeTest": true,
  "searchQuery": "Prague",
  "checkInDate": "2024-09-01",
  "checkOutDate": "2024-09-02",
  "numberOfAdults": 1,
  "numberOfChildren": 0,
  "currencyCode": "EUR",
  "maxResults": 5,
  "proxyConfig": {
    "useApifyProxy": true
  },
  "maxRequestsPerCrawl": 5
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "smokeTest": true,
    "searchQuery": "Prague",
    "checkInDate": "2027-03-01",
    "checkOutDate": "2027-03-02",
    "numberOfAdults": 1,
    "numberOfChildren": 0,
    "currencyCode": "EUR",
    "maxResults": 1,
    "proxyConfig": {
        "useApifyProxy": true
    },
    "maxRequestsPerCrawl": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("cocoa_kit/google-hotels-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "smokeTest": True,
    "searchQuery": "Prague",
    "checkInDate": "2027-03-01",
    "checkOutDate": "2027-03-02",
    "numberOfAdults": 1,
    "numberOfChildren": 0,
    "currencyCode": "EUR",
    "maxResults": 1,
    "proxyConfig": { "useApifyProxy": True },
    "maxRequestsPerCrawl": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("cocoa_kit/google-hotels-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "smokeTest": true,
  "searchQuery": "Prague",
  "checkInDate": "2027-03-01",
  "checkOutDate": "2027-03-02",
  "numberOfAdults": 1,
  "numberOfChildren": 0,
  "currencyCode": "EUR",
  "maxResults": 1,
  "proxyConfig": {
    "useApifyProxy": true
  },
  "maxRequestsPerCrawl": 5
}' |
apify call cocoa_kit/google-hotels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cocoa_kit/google-hotels-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/eZTZBscvBJT34lieq/builds/O5uC6IfREKeggz702/openapi.json
