VOOZH about

URL: https://apify.com/khalidd3v/google-hotel-scraper

⇱ AI Google Hotel Scraper Β· Apify


Pricing

$3.00 / 1,000 results

Go to Apify Store

AI Google Hotel Scraper

Advanced Google Hotels Scraper with AI-Powered Data Extraction Extract comprehensive hotel data from Google Hotels using our AI-enhanced scraper. Perfect for travel agencies, price comparison platforms, market researchers, and booking services.

Pricing

$3.00 / 1,000 results

Rating

0.0

(0)

Developer

πŸ‘ Khalid Ali Khan

Khalid Ali Khan

Maintained by Community

Actor stats

0

Bookmarked

21

Total users

2

Monthly active users

4 months ago

Last modified

Share

Google Hotel Scraper - Apify Actor

An advanced Python scraper for Google Hotels designed to run on Apify platform. This scraper extracts comprehensive hotel data including ratings, prices, contact details, amenities, reviews, and more.

Features

πŸ” Search & Filtering

  • Location-based search: Search hotels by location, city, or hotel name
  • Date range filtering: Filter by check-in and check-out dates
  • Guest & room configuration: Specify number of guests and rooms
  • Rating filtering: Filter hotels by minimum and maximum ratings (0-5 stars)
  • Price filtering: Set minimum and maximum price ranges
  • Currency support: Support for multiple currencies (USD, EUR, GBP, etc.)
  • Sorting options: Sort by relevance, price (low to high), price (high to low), or rating

πŸ“Š Data Extraction

  • Basic information: Hotel name, address, rating, review count
  • Pricing: Current price, price per night, currency
  • Contact details: Website, phone number, email (when available)
  • Amenities: List of hotel amenities and facilities
  • Images: Hotel images (optional)
  • Reviews: Customer reviews (optional)
  • Description: Hotel description and details

πŸ“ˆ Price Tracking

  • Price history: Track price changes over time
  • Date-specific tracking: Track prices for specific check-in/check-out dates
  • Historical data: Store price history for analysis

βš™οΈ Advanced Options

  • Headless mode: Run browser in headless mode
  • Custom timeouts: Configure wait times for page elements
  • Result limits: Control maximum number of results
  • Proxy support: Built-in proxy configuration support

Getting Started

Using on Apify Store

This actor is available on the Apify Store. Simply:

  1. Find the Actor: Search for "Google Hotel Scraper" on the Apify Store
  2. Run the Actor: Click "Try for free" or "Run" button
  3. Configure Input: Enter your search parameters in the input form
  4. Get Results: Download your results from the Dataset (JSON) or Key-Value Store (CSV)

No installation or setup required - just run and pay per usage!

For Developers

If you want to run this locally for development or testing:

  1. Install dependencies:
pip install-r requirements.txt
playwright install chromium
  1. Set up local storage:
exportAPIFY_LOCAL_STORAGE_DIR=./apify_storage
mkdir-p apify_storage/key_value_stores/default
  1. Create input file:
$cp example_input.json apify_storage/key_value_stores/default/INPUT.json
  1. Run locally:
$python src/main.py

Input Schema

The scraper accepts the following input parameters:

Required

  • searchQuery (string): Hotel name, location, or search term (e.g., "hotels in Paris", "Marriott New York")

Optional

Search Parameters

  • location (string): Specific location or city name
  • checkInDate (string): Check-in date in YYYY-MM-DD format
  • checkOutDate (string): Check-out date in YYYY-MM-DD format
  • guests (integer): Number of guests (default: 2, min: 1, max: 10)
  • rooms (integer): Number of rooms (default: 1, min: 1, max: 10)

Filtering

  • minRating (number): Minimum hotel rating 0-5 (default: 0)
  • maxRating (number): Maximum hotel rating 0-5 (default: 5)
  • minPrice (number): Minimum price per night (default: 0)
  • maxPrice (number): Maximum price per night (default: null)
  • currency (string): Currency code - USD, EUR, GBP, etc. (default: "USD")
  • sortBy (string): Sort results by - "relevance", "price_low", "price_high", "rating" (default: "relevance")

Extraction Options

  • extractContactDetails (boolean): Extract email, website, and phone number (default: true)
  • extractReviews (boolean): Extract hotel reviews (default: false)
  • extractAmenities (boolean): Extract hotel amenities (default: true)
  • extractImages (boolean): Extract hotel images (default: false)

Price Tracking

  • trackPrices (boolean): Track price changes over time (default: false)
  • priceTrackingDays (integer): Number of days to track prices (default: 7, min: 1, max: 30)

Advanced

  • maxResults (integer): Maximum number of hotels to scrape (default: 50, min: 1, max: 500)
  • headless (boolean): Run browser in headless mode (default: true)
  • waitForSelectorTimeout (integer): Timeout for waiting for selectors in milliseconds (default: 30000, min: 1000, max: 120000)
  • proxyConfiguration (object): Proxy configuration for the scraper (default: {})

Output Format

The scraper provides data in two formats:

1. JSON Dataset (Default)

Results are pushed to the Apify dataset as JSON objects.

2. CSV Export

Results are also saved as hotels.csv in the Key-Value Store for easy analysis in Excel or other tools.

The scraper outputs an array of hotel objects with the following structure:

{
"scrapedAt":"2024-01-15T10:30:00",
"url":"https://www.google.com/travel/hotels/...",
"name":"Hotel Name",
"rating":4.5,
"reviewCount":1234,
"price":150,
"pricePerNight":150,
"currency":"USD",
"address":"123 Main St, City, Country",
"location":{},
"images":["https://..."],
"amenities":["Wi-Fi","Pool","Parking"],
"contactDetails":{
"website":"https://hotelwebsite.com",
"phone":"+1-234-567-8900",
"email":"info@hotel.com"
},
"reviews":[
{
"text":"Great hotel!",
"extractedAt":"2024-01-15T10:30:00"
}
],
"description":"Hotel description...",
"checkInDate":"2024-02-01",
"checkOutDate":"2024-02-05",
"guests":2,
"rooms":1,
"priceHistory":[
{
"price":150,
"date":"2024-01-15T10:30:00",
"checkInDate":"2024-02-01",
"checkOutDate":"2024-02-05"
}
]
}

CSV Output

The CSV file includes the following columns:

  • name, url, rating, reviewCount, price, pricePerNight, currency
  • address, checkInDate, checkOutDate, guests, rooms
  • website, phone, email (from contactDetails)
  • amenities (comma-separated), images (comma-separated), description
  • scrapedAt

Access the CSV file from the Key-Value Store in your Apify run results.

Usage Examples

Basic Search

{
"searchQuery":"hotels in New York"
}

Search with Dates and Filters

{
"searchQuery":"hotels in Paris",
"checkInDate":"2024-06-01",
"checkOutDate":"2024-06-05",
"guests":2,
"rooms":1,
"minRating":4.0,
"maxPrice":200,
"currency":"EUR"
}

Advanced Search with All Features

{
"searchQuery":"Marriott hotels",
"location":"London",
"checkInDate":"2024-07-01",
"checkOutDate":"2024-07-07",
"guests":4,
"rooms":2,
"minRating":4.5,
"maxRating":5.0,
"minPrice":100,
"maxPrice":500,
"currency":"GBP",
"sortBy":"rating",
"maxResults":100,
"extractContactDetails":true,
"extractReviews":true,
"extractAmenities":true,
"extractImages":true,
"trackPrices":true,
"priceTrackingDays":14
}

Running on Apify

Via Apify Store (Recommended)

  1. Go to the Apify Store and search for "Google Hotel Scraper"
  2. Click on the actor to view details
  3. Click "Try for free" or "Run" button
  4. Enter your input parameters
  5. Click "Start" to run
  6. Download results from Dataset (JSON) or Key-Value Store (CSV)

Via Apify API

You can also run the actor programmatically using the Apify API:

const apifyClient =require('apify-client');
const client =newapifyClient.ApifyClient({
token:'YOUR_API_TOKEN',
});
const run =await client.actor('YOUR_ACTOR_ID').call({
searchQuery:'hotels in New York',
maxResults:50,
extractContactDetails:true
});
// Get results
const{ items }=await client.dataset(run.defaultDatasetId).listItems();

Environment Variables

No special environment variables are required. The scraper uses Apify's built-in Actor SDK for data storage and logging.

Troubleshooting

Common Issues

  1. No results found:

    • Check if the search query is valid
    • Verify that hotels exist for the specified location
    • Try adjusting filters (ratings, prices)
  2. Timeout errors:

    • Increase waitForSelectorTimeout value
    • Check internet connection
    • Verify Google Hotels is accessible
  3. Missing data:

    • Some hotels may not have all information available
    • Try enabling extractContactDetails and extractReviews for more data
    • Google Hotels structure may change - selectors may need updates
  4. Rate limiting:

    • The scraper includes built-in rate limiting
    • If issues persist, add delays between requests
    • Consider using proxies

Project Structure

google-hotel-scraper/
β”œβ”€β”€ src/
β”‚ └── main.py # Main scraper code
β”œβ”€β”€ .actor/
β”‚ β”œβ”€β”€ actor.json # Apify actor configuration
β”‚ β”œβ”€β”€ INPUT_SCHEMA.json # Input schema definition
β”‚ └── input.json # Example input
β”œβ”€β”€ requirements.txt # Python dependencies
β”œβ”€β”€ Dockerfile # Docker configuration
└── README.md # This file

License

This project is provided as-is for educational and commercial use.

Support

For issues, questions, or contributions, please open an issue on the repository.

Changelog

Version 1.0.0

  • Initial release
  • Basic hotel scraping functionality
  • Rating and price filtering
  • Contact details extraction
  • Price tracking support
  • Apify integration

You might also like

Google Hotels Scraper

scrapapi/google-hotels-scraper

Google Hotels Scraper extracts hotel listings from Google Hotels search results. It collects hotel names, prices, ratings, reviews, locations, amenities, and booking links. Ideal for travel research, price monitoring, market analysis, and building hotel datasets.

Google Hotels Scraper

scrapeai/google-hotels-scraper

A scraper that extracts hotel listings from Google Travel search pages. It collects hotel names, prices, ratings, locations, amenities, and booking links from dynamic Google Hotels results for travel analysis, price comparison, and market research.

Google Hotels Scraper

scrapier/google-hotels-scraper

This Google Hotels Scraper extracts pricing, ratings, reviews, amenities, photos, and booking links. Ideal for travel platforms, market researchers, and businesses comparing hotel performance across regions.

Google Hotels Scraper

scraperforge/google-hotels-scraper

🏨 Google Hotels Scraper extracts hotel listings from Google Hotels/Travelβ€”prices, reviews, ratings, amenities, location, photos & availabilityβ€”into clean CSV/JSON. πŸš€ Ideal for rate tracking, OTA comparison, market research & travel apps. πŸ”’ Fast, reliable, anti-blocking.

Google Hotels Scraper

scrapio/google-hotels-scraper

Collect detailed Google Hotels information automaticallyβ€”hotel names, prices, availability, reviews, amenities, and maps data. Great for travel agencies, analysts, and developers needing structured hotel datasets for reporting or automation.

Google Hotels Scraper

martin.forejt/google-hotels-scraper

Google Hotels Scraper is an actor for extracting prices from Google search results.

468

3.6

Google Hotels Scraper

simpleapi/google-hotels-scraper

Get comprehensive hotel data from Google Hotelsβ€”listings, prices, ratings, reviews, photos, and amenities. Clean, structured output makes it perfect for travel research, dynamic pricing models, and marketplace data enrichment.

Google Hotels Search Scraper

johnvc/google-hotels-search-scraper

Extract comprehensive hotel data from Google Hotels including prices, ratings, amenities, property details, and images. Supports advanced filtering, vacation rentals, localization, and multi-page pagination. Ideal for market research, price monitoring, and travel applications.

Google Hotels Scraper

codingfrontend/google-hotels-scraper

Scrape Google Hotels search results including hotel names, prices, ratings, reviews, star class, amenities, and addresses.

πŸ‘ User avatar

codingfrontend

2