SerpApi Official icon

SerpApi Official

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

Search → Google Local

AI-generated

Overview

This node performs a Google Local search using SerpApi's official API. It allows users to search for local businesses or places based on a query and location parameters. This is useful for applications needing local search results such as finding nearby coffee shops, restaurants, or other local services.

Use Case Examples

  1. Search for 'Coffee' shops in a specific location using the 'location' parameter.
  2. Use the 'uule' parameter to specify a Google encoded location for more precise local search.
  3. Customize the search by setting parameters like 'google_domain' to target a specific Google domain, or 'gl' to specify the country for the search.

Properties

Name Meaning
Search Query (q) Defines the query you want to search, e.g., 'Coffee'.
Location (location) Defines the origin location for the search, e.g., a city or region.
Additional Fields Collection of optional parameters to customize the search, including encoded location (uule), Google domain, country, language, Google Place ID, advanced search parameters, result offset, device type, caching options, async mode, ZeroTrace mode, output format, and JSON restrictor.
Request Options Node-level request options such as batching, SSL certificate validation, proxy settings, and timeout.

Output

JSON

  • search_metadata - Metadata about the search request and response.
  • local_results - Array of local search results returned by Google Local search.
  • organic_results - Organic search results related to the query.
  • related_searches - Related search queries suggested by Google.
  • pagination - Pagination information for the search results.

Dependencies

  • SerpApi API key credential

Troubleshooting

  • Ensure the SerpApi API key credential is correctly configured and valid.
  • If no results are returned, verify the query and location parameters are correctly set and supported by SerpApi.
  • Avoid using 'uule' and 'location' parameters together as they are mutually exclusive.
  • If the request times out, consider increasing the timeout setting in Request Options.
  • For async searches, ensure to use the Search Archive API to retrieve results later.

Links

Discussion