# Google Hotels Scraper: Sweep Dates, Find Cheapest Night (`h1018y/anvil-google-hotels-all`) Actor

Scrapes Google Hotels prices for any place and several check-in dates in one run. Flags each hotel's cheapest date, and returns deals, ratings, review splits, location and check-in times from the public google hotels page.

- **URL**: https://apify.com/h1018y/anvil-google-hotels-all.md
- **Developed by:** [ANVIL Tools](https://apify.com/h1018y) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.74 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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: Sweep Dates, Find Cheapest Night

**Google Hotels Scraper** - Get Google Hotels prices for several check-in dates in one run and see which night is cheapest for each hotel.

### What does Google Hotels Scraper do?

A date sweep: set sweepDays and every hotel row gets the check-in date plus cheapestDateForHotel=true on its lowest price, so you do not run one date at a time.

- Sweep up to 15 check-in dates in one run
- cheapestDateForHotel flag on each hotel's lowest price
- Deal text like '24% less than usual' when Google shows it
- Review counts split by 1-5 stars, coordinates, check-in times
- Clear stop on a Google human check, no bypass

### Who uses Google Hotels Scraper, and for what

- Travellers - find the cheapest check-in day for a trip
- Travel agencies - compare nightly prices across a week
- Analysts - build a hotel price history for a city
- Hotel managers - watch nearby rates by date

### Why this Google Hotels Scraper?

Low cases fail when Google blocks the request or shows no price for a sold-out date. This Google Hotels Scraper checks every run and tells you plainly when a page could not be read, instead of returning empty or wrong rows.

### Data you get from Google Hotels Scraper

Every result is one flat row with these fields (values from a real run):

| Field | Example |
|---|---|
| `name` | Czar Lisbon Hotel |
| `propertyType` | 4-star hotel |
| `hotelClass` | 4 |
| `price` | 592.8581 |
| `priceText` | GTQ 593 |
| `currency` | GTQ |
| `deal` | 28% less than usual |
| `rating` | 4.1 |
| `reviewCount` | 1466 |
| `reviewsByStars` | {"1": 67, "2": 63, "3": 176, "4": 470, "5": 690} |
| `latitude` | 38.7293279 |
| `longitude` | -9.1348492 |
| `checkInTime` | 3:00 PM |
| `checkOutTime` | 12:00 PM |
| `website` | http://www.czarlisbonhotel.com/ |
| `description` | Understated rooms in a polished lodging featuring an elegant... |
| `thumbnail` | https://lh3.googleusercontent.com/grass-cs/AABkmLfsKflgCcokO... |
| `query` | hotels in Lisbon |
| `checkIn` | 2026-11-18 |
| `checkOut` | 2026-11-19 |
| `nights` | 1 |
| `cheapestDateForHotel` | true |

### How to use Google Hotels Scraper

1. Press **Start** - the form already holds an example that works.
2. Put in your own input (see the fields on the Input tab).
3. Run it once, or put it on an **Apify Schedule** to get fresh rows every day.
4. Download the results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make, the Apify API or an AI agent (Apify MCP server).

#### Input example

```json
{
  "queries": [
    "hotels in Lisbon"
  ],
  "checkIn": "",
  "nights": 1,
  "sweepDays": 1,
  "adults": 2,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "maxResults": 3,
  "useApifyProxy": true
}
```

#### Output example (a real run)

```json
[
  {
    "name": "Czar Lisbon Hotel",
    "propertyType": "4-star hotel",
    "hotelClass": 4,
    "price": 592.8581,
    "priceText": "GTQ 593",
    "currency": "GTQ",
    "deal": "28% less than usual",
    "rating": 4.1,
    "reviewCount": 1466,
    "reviewsByStars": {
      "1": 67,
      "2": 63,
      "3": 176,
      "4": 470,
      "5": 690
    },
    "latitude": 38.7293279,
    "longitude": -9.1348492,
    "checkInTime": "3:00 PM",
    "checkOutTime": "12:00 PM",
    "website": "http://www.czarlisbonhotel.com/",
    "description": "Understated rooms in a polished lodging featuring an elegant restaurant, a bar & breakfast.",
    "thumbnail": "https://lh3.googleusercontent.com/grass-cs/AABkmLfsKflgCcokOJFCSOwE3L3yVwkWFvDlnDdx_IPKrl1OaQwaxdfO-KCJNLtZwfTLwTDBN_8nSiV-Ek4bXytfp2dsnrWUpz1V48xp2Kt9CImO6iDAQ_CyV_gNcUkuPrfelI2UQsIpyw=s150-w92-h150-n-k-no",
    "query": "hotels in Lisbon",
    "checkIn": "2026-11-18",
    "checkOut": "2026-11-19",
    "nights": 1,
    "cheapestDateForHotel": true
  },
  {
    "name": "The Central House Lisbon Baixa",
    "propertyType": "2-star hotel",
    "hotelClass": 2,
    "price": 410.52667,
    "priceText": "GTQ 411",
    "currency": "GTQ",
    "deal": null,
    "rating": 4.3,
    "reviewCount": 750,
    "reviewsByStars": {
      "1": 53,
      "2": 25,
      "3": 51,
      "4": 124,
      "5": 497
    },
    "latitude": 38.7131037,
    "longitude": -9.136800400000002,
    "checkInTime": "2:00 PM",
    "checkOutTime": "11:00 AM",
    "website": "https://www.thecentralhousegroup.com/",
    "description": "Straightforward dorms & private rooms in a casual hostel featuring a colorful cafe/bar.",
    "thumbnail": "https://lh3.googleusercontent.com/grass-cs/AABkmLevLjLmJ5v8-4kmgt9wJO3o0CfeViCXB8aKQSIRF-onZ0Crq-6GDpWiuhsQvPt7mftM_HYEYdK7OPR4778MlekdPC2bd_c4f6pEULgT-A3t1xlxDojixbnodiWSE7GgrmJdifKo=s150-w92-h150-n-k-no",
    "query": "hotels in Lisbon",
    "checkIn": "2026-11-18",
    "checkOut": "2026-11-19",
    "nights": 1,
    "cheapestDateForHotel": true
  }
]
```

One flat row per result.

### How much does Google Hotels Scraper cost?

You pay only per result (pay per event) - no monthly fee, no minimum, and the price per result is lower on Apify's Bronze, Silver and Gold plans. The exact price is on the **Pricing** tab. Apify's free plan credit is enough to try it on real input.

| You want | What you pay for |
|---|---|
| A quick test with the example | a few results |
| A daily scheduled run | only the rows that run returns |
| A big one-off export | the results delivered - set a maximum in the input |

### Also searched as

- google hotels prices
- hotel price tracker
- google travel hotels api
- cheapest hotel dates
- hotel price comparison

### FAQ

**Does Google Hotels Scraper need a login, cookies or an API key?** No. It reads public pages only.

**Can I run Google Hotels Scraper on a schedule?** Yes - with Apify Schedules; each run returns fresh rows.

**Can I call it from Python, JavaScript or an AI agent?** Yes - through the Apify API, the Apify client libraries or the Apify MCP server.

**Is it legal?** It collects only data anyone can see without logging in. You are responsible for using it within the source site's terms and data protection law (GDPR, CCPA).

**What if the site blocks a request?** The run retries from a fresh connection and, if it still cannot read the page, stops with a clear message - never with made-up rows.

**Do I need proxies?** No setup needed - Google Hotels Scraper uses Apify Proxy by default where the site needs it.

### Troubleshooting

- **No results:** check the input (a public URL or a search term that returns results in a normal browser), then try the example input once.
- **Fewer results than expected:** raise the maximum in the input; some sites show only a part of their data without logging in, and Google Hotels Scraper never logs in.
- **The run stopped with a message:** the message says what the site answered; run it again later or with fewer items.

### Your feedback

Missing a field, found a bug, or need another site? Open an issue on the **Issues** tab - issues are answered and fixed. If Google Hotels Scraper saved you time, a short review on this page helps others find it.

Data source: [www.google.com/travel/hotels](https://www.google.com/travel/hotels)

### More tools from this developer

- [Tweet Scraper: Tweet Details by URL, No Login or Cookies](https://apify.com/h1018y/anvil-tweet-scraper)
- [YouTube Thumbnail Downloader: Bulk, Every Size & Titles](https://apify.com/h1018y/anvil-youtube-thumbnail-downloader)
- [ML Conference Finder: NeurIPS, ICLR & ICML Alternatives](https://apify.com/h1018y/anvil-ml-conference-finder)
- [YouTube Transcript Scraper: Find Every Moment a Word Is Said](https://apify.com/h1018y/anvil-youtube-transcript-scraper)
- [Facebook Ads Library Scraper: Only New Ads & Days Running](https://apify.com/h1018y/anvil-facebook-ads-library-scraper)
- [Reddit Scraper: Keyword Alerts for New Posts & Comments](https://apify.com/h1018y/anvil-reddit-scraper)
- [Twitter Scraper: New Tweets From Any X Account, No Login](https://apify.com/h1018y/anvil-twitter-scraper)
- [Facebook Posts Scraper: New Posts & Engagement Growth](https://apify.com/h1018y/anvil-facebook-posts-scraper)

# Actor input Schema

## `queries` (type: `array`):

Where to look, e.g. hotels in Lisbon.

## `checkIn` (type: `string`):

YYYY-MM-DD. Empty = 30 days from today.

## `nights` (type: `integer`):

How many nights (1-30).

## `sweepDays` (type: `integer`):

0 = one date. 3 = four dates in a row; each hotel gets cheapestDateForHotel=true on its lowest price.

## `adults` (type: `integer`):

Guests (1-10).

## `currency` (type: `string`):

Currency code, e.g. USD or EUR.

## `language` (type: `string`):

Google page language, e.g. en.

## `country` (type: `string`):

Google country code of the searcher, e.g. us.

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

Hotels from the first Google page (1-20).

## `useApifyProxy` (type: `boolean`):

Send requests through Apify Proxy.

## `proxyGroups` (type: `array`):

Optional Apify proxy groups.

## Actor input object example

```json
{
  "queries": [
    "hotels in Lisbon"
  ],
  "checkIn": "",
  "nights": 1,
  "sweepDays": 1,
  "adults": 2,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "maxResults": 3,
  "useApifyProxy": true
}
```

# Actor output Schema

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

All result rows (open as table, JSON, CSV or Excel).

# 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 = {
    "queries": [
        "hotels in Lisbon"
    ],
    "nights": 1,
    "sweepDays": 1,
    "adults": 2,
    "currency": "USD",
    "maxResults": 3,
    "useApifyProxy": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("h1018y/anvil-google-hotels-all").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 = {
    "queries": ["hotels in Lisbon"],
    "nights": 1,
    "sweepDays": 1,
    "adults": 2,
    "currency": "USD",
    "maxResults": 3,
    "useApifyProxy": True,
}

# Run the Actor and wait for it to finish
run = client.actor("h1018y/anvil-google-hotels-all").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 '{
  "queries": [
    "hotels in Lisbon"
  ],
  "nights": 1,
  "sweepDays": 1,
  "adults": 2,
  "currency": "USD",
  "maxResults": 3,
  "useApifyProxy": true
}' |
apify call h1018y/anvil-google-hotels-all --silent --output-dataset

```

## MCP server setup

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

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/igy9TdEQU3ksvA1ah/builds/mx6b2E1l3aAb2S2fx/openapi.json
