HasData icon

HasData

Scrape data from various websites

Google SERP → Get AI Mode SERP Results

AI-generated

Summary

Scrapes Google SERP results via AI Mode.

Inputs

  • q (required) — Search query term.
  • additionalFields — Placeholder for additional fields; not used directly.
  • location — Google canonical location for the search.
  • uule — Encoded location parameter.
  • moreStores — Boolean to fetch additional store results.
  • nextPageToken — Token for retrieving next page of store results.
  • gl — Two‑letter country code to limit the search.
  • domain — Google domain to use.
  • hl — Two‑letter language code for search language.
  • lr — Language filter for result websites.
  • cr — Country code for event search (short videos only).
  • start — Number of results to skip for pagination (events).
  • topicToken — Token for a Google News topic.
  • sectionToken — Token for a sub‑section under a news topic.
  • publicationToken — Token for a specific publisher.
  • storyToken — Token for a single news story cluster.
  • so — Sort order for articles in a story.
  • tbs — Advanced search filters (date range, image, etc.).
  • safe — Adult content filtering option.
  • filter — Enable/disable similar/omitted result filters.
  • nfpr — Show or hide auto‑corrected results.
  • shoprs — Helper ID for applying shopping filters.
  • page — Page number for paginated results (short videos).
  • htichips — Filter parameter for refining event search.
  • start — Offset for pagination (serp, serp_light).
  • num — Number of results per page.
  • tbm — Type of search (images, videos, news, shopping, local).
  • deviceType — Device type to use for the search.
  • ludocid — Google Place ID for a specific location.
  • lsig — Additional Google Place ID.
  • kgmid — Google Knowledge Graph ID.

Output shape

Array of search result objects, each containing fields such as title, link, snippet, and optional AI mode details.

Results can be paginated using start/num; some parameters (e.g., tbm) affect the shape; errors are returned via HTTP status without a body.

Examples

Example 1: General web search for 'latest AI trends'.

q=latest AI trends&hl=en&gl=us&tbm=nws&num=10

Example 2: Fetch store locations for a product.

moreStores=true&domain=google.com&gl=us&lr=lang_en&num=5

Example 3: Search for images of 'electric cars' using AI Mode.

tbm=isch&q=electric cars&safe=active&lr=lang_en

Links

Discussion