SerpApi Official icon

SerpApi Official

Get live Google Search data and more from SerpApi's official node

Search → Google Hotels

AI-generated

Overview

This node performs a Google Hotels search using SerpApi's official API. It allows users to search for hotels based on various parameters such as search query, check-in and check-out dates, number of adults and children, country, language, currency, sorting options, price range, property types, amenities, ratings, brands, hotel class, and more. It supports advanced filtering options like free cancellation, special offers, eco certification, vacation rentals, and pagination through next page tokens. This node is useful for travel agencies, hotel booking platforms, or any application needing live hotel search data from Google Hotels.

Use Case Examples

  1. Searching for hotels in Bali with specific check-in and check-out dates, filtering by price range and amenities.
  2. Retrieving hotel details using a property token to get comprehensive information like address, phone, prices, and nearby places.
  3. Sorting hotel search results by highest rating or most reviewed to find the best options.

Properties

Name Meaning
Search Query (q) Defines the search query for Google Hotels, e.g., location or hotel name.
Check-in Date (check_in_date) Defines the check-in date in YYYY-MM-DD format.
Check-out Date (check_out_date) Defines the check-out date in YYYY-MM-DD format.
Additional Fields Collection of optional parameters to refine the search such as country, language, currency, number of adults and children, sorting, price range, property types, amenities, ratings, brands, hotel class, free cancellation, special offers, eco certification, vacation rentals, bedrooms, bathrooms, pagination tokens, JSON restrictor, caching, async mode, zero trace mode, and output format.

Output

JSON

  • organic_results - Array of hotel search results with detailed information.
  • property_details - Detailed information about a specific property when property_token is used.
  • pagination - Information about pagination and next page tokens.
  • search_metadata - Metadata about the search query and parameters.

Dependencies

  • SerpApi API key credential

Troubleshooting

  • Ensure all required parameters like search query, check-in and check-out dates are provided and correctly formatted.
  • Check API key credential is valid and has sufficient quota for SerpApi requests.
  • If using pagination, verify the next_page_token is valid and not expired.
  • For async searches, ensure to use the Search Archive API to retrieve results later.
  • If SSL issues occur, consider enabling the option to ignore SSL certificate validation or configure a proper proxy.

Links

Discussion