SerpApi Official icon

SerpApi Official

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

Search → Google AI Mode

AI-generated

Overview

This node performs a Google AI Mode search using SerpApi's official API. It allows users to input a search query and customize the search with additional parameters such as location, device type, caching options, and output format. This node is useful for retrieving live Google AI Mode search results programmatically, which can be applied in scenarios like automated research, data gathering, or integrating AI-powered search results into workflows.

Use Case Examples

  1. A user wants to automate the retrieval of AI-generated search results for a specific query like 'What is coffee?' and process the results in their workflow.
  2. A developer needs to fetch Google AI Mode search results from different locations or devices to analyze search behavior variations.

Properties

Name Meaning
Search Query (q) Defines the query to search using Google AI Mode. Supports multiple languages.
Location (location) Defines the geographic location from which the search originates. Cannot be used with Encoded Location (uule).
Encoded Location (uule) Google encoded location for the search. Cannot be used with Location parameter.
Device (device) Specifies the device type for the search results: desktop, tablet, or mobile.
Disable Caching (no_cache) Forces fetching new results instead of using cached ones. Cache expires after 1 hour.
Async (async) Determines if the search is performed asynchronously. If true, results must be retrieved later via Search Archive API.
ZeroTrace Mode (zero_trace) Enterprise-only option to skip storing search parameters and metadata on SerpApi servers for privacy.
Output (output) Defines the format of the search results output: JSON (structured data) or HTML (raw HTML).
JSON Restrictor (json_restrictor) Restricts the fields returned in the JSON response to specified fields and ranges.

Output

JSON

  • search_metadata - Metadata about the search request and response.
  • search_parameters - Parameters used for the search query.
  • search_information - Information about the search results such as total results and time taken.
  • organic_results - List of organic search results returned by Google AI Mode.
  • ads_results - List of advertisement results if any.
  • related_questions - Related questions suggested by Google AI Mode.
  • knowledge_graph - Knowledge graph data related to the search query.

Dependencies

  • Requires an API key credential for SerpApi to authenticate requests.

Troubleshooting

  • Common issues include invalid or missing API key, which results in authentication errors.
  • Using incompatible parameters together, such as 'location' and 'uule', will cause errors.
  • Setting 'async' and 'no_cache' to true simultaneously is not allowed and will cause request failures.
  • Timeouts may occur if the server takes too long to respond; increasing the timeout setting can help.
  • If SSL certificate validation fails, enabling 'Ignore SSL Issues' option may resolve connection problems.

Links

Discussion