SerpApi Official icon

SerpApi Official

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

Search → Google Search

AI-generated

Overview

This node performs a Google Search using the SerpApi service, allowing users to retrieve live Google Search data programmatically. It is useful for automating search queries and extracting structured search results for various applications such as market research, SEO analysis, or content aggregation.

Use Case Examples

  1. Search for 'Coffee' on Google and retrieve the top 10 results.
  2. Perform a localized Google search by specifying a location or encoded location parameter.
  3. Filter search results by language, country, or specific Google domains.

Properties

Name Meaning
Search Query (q) Defines the query string to search for on Google.
Location (location) Specifies the geographic location from which the search should originate.
Encoded Location (uule) Google encoded location parameter for search; cannot be used with 'location' parameter.
Google Place ID (ludocid) ID of the Google My Business listing to scrape.
Additional Google Place ID (lsig) ID used to force knowledge graph map view to show up.
Google Knowledge Graph ID (kgmid) ID of the Google Knowledge Graph listing to scrape.
Google Cached Search Parameters ID (si) Cached search parameters for encrypted search queries.
Google Element Rendering (ibp) Controls rendering layouts and expansions for some elements.
Google Filter Search (uds) String filter provided by Google to filter search results.
Domain (google_domain) Google domain to use for the search.
Country (gl) Country code to use for the Google search.
Language (hl) Language code to use for the search.
Set Multiple Countries (cr) Limits the search to one or multiple countries using country codes separated by |.
Set Multiple Languages (lr) Limits the search to one or multiple languages using language codes separated by |.
Include/Exclude Site (as_dt) Controls whether to include or exclude results from the site named in the as_sitesearch parameter.
Required Phrase (as_epq) Phrase that all documents in the search results must contain.
Excluded Word/Phrase (as_eq) Word or phrase that should not appear in any documents in the search results.
Link to URL (as_lq) All search results should contain a link to a particular URL.
Search Range Start (as_nlo) Starting value for a search range.
Search Range End (as_nhi) Ending value for a search range.
Additional Search Terms (as_oq) Additional search terms where each document must contain at least one.
Search Terms (as_q) Search terms to check for in a document.
Time Period (as_qdr) Requests search results from a specified time period.
Related URL (as_rq) All search results should be pages related to the specified URL.
Site Search (as_sitesearch) All search results should be pages from a given site.
Advanced Search Parameters (tbs) Defines advanced search parameters not possible in the regular query field.
Adult Content Filtering (safe) Level of filtering for adult content; active or off.
Exclude Auto-corrected Results (nfpr) Exclude results from an auto-corrected query when the original query is misspelled.
Results Filtering (filter) Whether filters for 'Similar Results' and 'Omitted Results' are on or off.
Search Type (tbm) Type of search to perform (e.g., images, local, news, patents, shopping, videos).
Result Offset (start) Result offset to skip a number of results.
Number of Results (num) Maximum number of results to return.
Device (device) Device type to use for the search (desktop, tablet, mobile).
Disable Caching (no_cache) Force fetching new results even if cached version exists.
Async (async) Perform the search asynchronously.
ZeroTrace Mode (zero_trace) Enable ZeroTrace mode to skip storing search parameters and metadata (Enterprise only).
Output (output) Defines the final output format (JSON or HTML).
JSON Restrictor (json_restrictor) Restricts fields in the response JSON.

Output

JSON

  • search_results - Structured JSON results from the Google Search query.

Dependencies

  • SerpApi API key credential

Troubleshooting

  • Ensure the SerpApi API key credential is correctly configured and valid.
  • Check that the query parameter 'q' is provided and not empty.
  • Verify that mutually exclusive parameters like 'location' and 'uule' are not used together.
  • If the node returns errors related to rate limits, consider adjusting request frequency or batching settings.
  • For SSL issues, use the 'Ignore SSL Issues' option if necessary, but be cautious about security implications.

Links

Discussion