# Google Search Results Scraper (`scrapeengine/google-search-results-scraper`) Actor

Scrape Google search results with accuracy, including titles, URLs, snippets, rankings, and featured elements. This Apify scraper helps you track keywords, monitor competitors, analyze SERPs, and gather structured data for SEO research and market insights.

- **URL**: https://apify.com/scrapeengine/google-search-results-scraper.md
- **Developed by:** [ScrapeEngine](https://apify.com/scrapeengine) (community)
- **Categories:** Agents, Automation, Lead generation
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$19.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### Google Search Results Scraper

The Google Search Results Scraper is a production-ready google SERP scraper that turns messy result pages into clean, structured JSON for analysis and automation. It solves the pain of manual google search results scraping by extracting titles, URLs, snippets, rankings, paid ads, shopping products, People Also Ask, related queries, and optional AI summaries at scale. Built for marketers, developers, data analysts, and researchers, this google serp scraping tool doubles as a google search results API for pipelines, dashboards, and automated google SERP scraping workflows. 🚀

### What data / output can you get?

This actor streams standardized SERP-style JSON items to the Apify dataset. Below are key fields you’ll get back, with examples.

| Data type | Description | Example value |
| --- | --- | --- |
| searchQuery.term | Full query with applied operators/filters | "javascript site:developer.mozilla.org" |
| url | Final SERP URL for the request | "https://www.google.com/search?q=javascript+site%3Adeveloper.mozilla.org&gl=US&hl=en" |
| resultsTotal | Parsed “About X results” value (if present) | 1250000 |
| hasNextPage | Whether another SERP page is detected | true |
| relatedQueries[] | Related queries derived from top organic titles | [{"title":"JavaScript tutorial","url":"https://www.google.com/search?q=JavaScript+tutorial&hl=en&gl=us"}] |
| organicResults[] | Organic results with title, URL, snippet, sitelinks, position | {"title":"JavaScript | MDN","url":"https://developer.mozilla.org/...","displayedUrl":"developer.mozilla.org","description":"JavaScript (JS)...","type":"organic","position":1} |
| paidResults[] | Paid ads (if found) with title, URL, position | {"title":"Learn JS Fast","url":"https://ads.example.com","displayedUrl":"ads.example.com","type":"paid","position":1} |
| paidProducts[] | Shopping/commerce blocks with title and prices | {"title":"Best JavaScript book","displayedUrl":"shop.example.com","prices":["$19.99"]} |
| peopleAlsoAsk[] | PAA questions (with optional URL) | {"question":"What is JavaScript used for?","url":null,"answer":null,"date":null} |
| aiOverview | AI Overview text and references (when enabled) | {"text":"JavaScript is a programming language...","references":[{"title":"MDN","url":"https://developer.mozilla.org/..."}]} |
| htmlSnapshotUrl | Key-value store key if HTML snapshots are saved | "javascript_20260412_120501_p1.html" |

Notes:
- html appears when saveHtml is true.
- htmlSnapshotUrl is set when saveHtmlToKeyValueStore is true (links to the stored HTML file).
- peopleAlsoAsk may include null values for answer/date when not present.

Export your dataset to JSON, CSV, or Excel directly from Apify. Bonus fields include suggestedResults, customData (for Perplexity and ChatGPT add-ons), optional html, and optional icon data when includeIcons is enabled.

### Key features

- 🚀 Always-on proxy resilience  
  Uses Apify proxies by default with a Google SERP proxy and automatic fallback to RESIDENTIAL on block (with retries). Once residential is used, it sticks to it for subsequent requests.

- 📦 Batch scraping & bulk automation  
  Paste multiple queries or full Google Search URLs (one per line). The actor processes each and streams results page-by-page to the dataset.

- 🔎 Accurate SERP parsing  
  Extracts organicResults, paidResults, paidProducts, peopleAlsoAsk, relatedQueries, suggestedResults, resultsTotal, and the final SERP URL — ideal for google serp data extraction and a reliable google serp scraping api.

- 🌍 Full location & language control  
  Emulate local SERPs with countryCode, searchLanguage, languageCode, and exact location via locationUule. Supports mobileResults and includeUnfilteredResults.

- 🧠 AI & Answer Engine add-ons  
  Enable aiMode with a serpApiKey to collect AI Overviews. Enrich customData with Perplexity and ChatGPT search toggles for cross-engine narrative analysis.

- 🧰 Advanced filters that mirror Google operators  
  forceExactMatch, site, relatedToSite, wordsInTitle, wordsInText, wordsInUrl, fileTypes, quickDateRange, beforeDate, afterDate — to precisely scrape Google search results.

- 🖼️ HTML snapshots & icons (optional)  
  Save HTML to the dataset (html) or key-value store (htmlSnapshotUrl) for debugging and replay. Optionally include icon image data with includeIcons.

- 💻 Developer-friendly outputs  
  Standardized JSON fits neatly into automations and “google results scraper python” workflows. Integrate via the Apify API for a plug‑and‑play google search results crawler.

- 📊 Ready to export & analyze  
  Export items to JSON/CSV/Excel or connect to your data stack for dashboards, SEO analyses, and reporting.

### How to use Google Search Results Scraper - step by step

1. Sign in to Apify and open the Google Search Results Scraper actor.
2. In the Input tab, paste your queries into the queries field — one search term or a full Google Search URL per line.
3. Set volume controls: resultsPerPage (1–100) and maxPagesPerQuery (each page ≈ ~10 results).
4. Configure locale: countryCode, searchLanguage, languageCode, and optional locationUule for exact local emulation. Toggle mobileResults if you need mobile SERPs.
5. Apply filters as needed: forceExactMatch, site or relatedToSite, wordsInTitle/wordsInText/wordsInUrl, fileTypes, date filters (quickDateRange, beforeDate, afterDate), and includeUnfilteredResults.
6. Choose add-ons and extras: aiMode with serpApiKey (AI Overview), Perplexity, ChatGPT, focusOnPaidAds, saveHtml, saveHtmlToKeyValueStore, includeIcons.
7. Click Start. The run uses Apify’s Google SERP proxy and automatically falls back to RESIDENTIAL if blocked. Watch logs for page-by-page progress.
8. Open the Output tab to preview results, then export as JSON/CSV/Excel.

Pro tip: Treat this as a google search results API by triggering the actor via the Apify API for scheduled runs, downstream processing, or “google serp scraper online” automations.

### Use cases

| Use case name | Description |
| --- | --- |
| SEO ranking tracking | Monitor keyword visibility by collecting organicResults positions across countries and languages for consistent trend analysis. |
| Competitor SERP analysis | Compare paidResults and organicResults to understand who’s bidding, who’s winning, and why — at scale. |
| Google Ads intelligence | Enable focusOnPaidAds to extract ad placements and messaging alongside paidProducts for high‑intent queries. |
| Content research & PAA mining | Scrape People Also Ask to discover question clusters and support Answer Engine Optimization. |
| E‑commerce & pricing watch | Capture paidProducts blocks and prices to track featured items and shopping units across markets. |
| Local SEO audits | Apply countryCode and locationUule to emulate local searches and validate local pack/organic differences. |
| Data pipelines & APIs | Use the standardized JSON as a google serp scraping api feed for enrichment, dashboards, or ML features. |
| Academic & market research | Build longitudinal datasets from relatedQueries and organicResults to study SERP structures and market trends. |

### Why choose Google Search Results Scraper?

The google serp scraper you can trust for precision, automation, and scale.

- ✅ High‑fidelity SERP JSON: Structured fields for organic, paid, products, PAA, related queries, and metadata.
- 🌐 Geo & language control: countryCode, searchLanguage, languageCode, and locationUule for hyperlocal emulation.
- 📈 Built for scale: Bulk queries, page‑by‑page streaming, and robust proxy fallback for resilient runs.
- 🧠 AEO‑ready: Optional aiMode with SerpApi, plus Perplexity and ChatGPT flags in customData for cross‑engine comparisons.
- 🔒 Ethical & configurable: Collects publicly available Google Search results; you control filters, modes, and snapshots.
- 💻 Developer‑first: Clean JSON structure for google search results scraping software and automation pipelines.
- 🧩 Better than extensions: Avoid brittle UI automation — this is a production‑grade google search results scraper bot.

In short, it’s a dependable google search results scraping solution for teams that need accuracy, resilience, and integration‑ready outputs.

### Is it legal / ethical to use Google Search Results Scraper?

Yes — when used responsibly. This actor collects data from publicly available Google Search result pages. You are responsible for complying with Google’s Terms of Service, robots.txt, and applicable laws (e.g., GDPR/CCPA). Avoid scraping personal data without a lawful basis, respect platform restrictions, and consult your legal team for edge cases. The tool does not access private or authenticated content.

### Input parameters & output format

#### Example input (JSON)
```json
{
  "queries": "javascript\npython site:developer.mozilla.org\nhttps://www.google.com/search?q=best+javascript+framework&hl=en&gl=us",
  "resultsPerPage": 50,
  "maxPagesPerQuery": 2,
  "countryCode": "us",
  "searchLanguage": "en",
  "languageCode": "en",
  "forceExactMatch": false,
  "site": null,
  "relatedToSite": null,
  "wordsInTitle": ["guide", "tutorial"],
  "wordsInText": [],
  "wordsInUrl": [],
  "quickDateRange": null,
  "beforeDate": null,
  "afterDate": null,
  "fileTypes": [],
  "mobileResults": false,
  "includeUnfilteredResults": false,
  "saveHtml": false,
  "saveHtmlToKeyValueStore": true,
  "includeIcons": false,
  "aiMode": "aiModeOff",
  "serpApiKey": null,
  "perplexitySearch": {
    "enablePerplexity": false,
    "searchRecency": "",
    "returnImages": false,
    "returnRelatedQuestions": false
  },
  "chatGptSearch": {
    "enableChatGpt": false
  },
  "maximumLeadsEnrichmentRecords": 0,
  "leadsEnrichmentDepartments": [],
  "focusOnPaidAds": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["GOOGLE_SERP"]
  }
}
````

#### All input parameters

- queries (string, required)\
  Description: Use regular search words or enter Google Search URLs. You can also apply advanced Google search techniques (e.g., AI site:twitter.com or javascript OR python). Ensure queries don’t exceed 32 words.\
  Default: not set

- resultsPerPage (integer)\
  Description: Desired results per page (passed to num). Google may return fewer due to quality filters.\
  Default: 100 (min 1, max 100)

- maxPagesPerQuery (integer)\
  Description: Maximum pages to scrape per query (≈10 organic per page).\
  Default: 1 (min 1)

- aiMode (string)\
  Description: Add‑on to scrape Google’s AI Mode (AI Overviews) for AEO/GEO, brand visibility, competitor analysis.\
  Default: "aiModeOff" (enum: aiModeOff, aiModeWithSearchResults, aiModeOnly)

- serpApiKey (string, nullable, secret)\
  Description: Optional. When set and aiMode is not off, fetch AI Overview via SerpApi.\
  Default: not set

- perplexitySearch (object)\
  Description: Add‑on to fetch AI answers from Perplexity (Sonar) for cross‑platform analysis.\
  Default: {"enablePerplexity": false, "searchRecency": "", "returnImages": false, "returnRelatedQuestions": false}\
  Properties:
  - enablePerplexity (boolean) — default false
  - searchRecency (string, nullable; "", "day", "week", "month", "year") — default ""
  - returnImages (boolean) — default false
  - returnRelatedQuestions (boolean) — default false

- chatGptSearch (object)\
  Description: Add‑on to fetch AI answers using OpenAI’s search model; output includes query fan‑out in customData.\
  Default: {"enableChatGpt": false}\
  Properties:
  - enableChatGpt (boolean) — default false

- maximumLeadsEnrichmentRecords (integer)\
  Description: Add‑on to enrich with business leads per domain (cost multiplier; filters out large chains/platforms).\
  Default: 0 (min 0)

- leadsEnrichmentDepartments (array of string)\
  Description: Filter leads by departments (works only if maximumLeadsEnrichmentRecords > 0).\
  Default: \[] (enum includes "c-suite", "product", "engineering-technical", "design", "education", "finance", "human-resources", "information-technology", "legal", "marketing", "medical-health", "operations", "sales", "consulting")

- focusOnPaidAds (boolean)\
  Description: Add‑on to enable paid results (ads) extraction; uses ad‑specialized proxy with retries (extra cost per page).\
  Default: false

- countryCode (string, select)\
  Description: Country for search and Google domain (e.g., google.es for Spain).\
  Default: "us"

- searchLanguage (string, nullable select)\
  Description: Restricts results to a specific language (lr param).\
  Default: not set

- languageCode (string, select)\
  Description: Google interface language (hl param).\
  Default: "en"

- locationUule (string, nullable)\
  Description: Exact location UULE code for local search emulation.\
  Default: not set

- forceExactMatch (boolean)\
  Description: Wraps query in quotes for exact phrase matches (may return fewer results).\
  Default: false

- site (string, nullable)\
  Description: Restrict results to a site (site:example.com).\
  Default: not set

- relatedToSite (string, nullable)\
  Description: Filter by pages related to a site (related:example.com). Ignored if site is set.\
  Default: not set

- wordsInTitle (array of string)\
  Description: Filters with intitle:"word" (added per word).\
  Default: \[] (maxItems 32)

- wordsInText (array of string)\
  Description: Filters with intext:"word" (added per word).\
  Default: \[] (maxItems 32)

- wordsInUrl (array of string)\
  Description: Filters with inurl:"word" (added per word).\
  Default: \[] (maxItems 32)

- quickDateRange (string, nullable)\
  Description: Date range shortcut (e.g., d10, w1, m3, y1), passed via tbs=qdr:.\
  Default: not set

- beforeDate (string, nullable, absoluteOrRelative)\
  Description: Filter results before date (YYYY‑MM‑DD) or relative (e.g., 8 days, 3 months).\
  Default: not set

- afterDate (string, nullable, absoluteOrRelative)\
  Description: Filter results after date (YYYY‑MM‑DD) or relative.\
  Default: not set

- fileTypes (array of string select)\
  Description: filetype: operator (e.g., pdf, docx). Multiple types combined with OR.\
  Default: \[] (maxItems 10)

- mobileResults (boolean)\
  Description: Return mobile SERP layout when enabled; otherwise desktop.\
  Default: false

- includeUnfilteredResults (boolean)\
  Description: Include lower‑quality results that Google normally filters out.\
  Default: false

- saveHtml (boolean)\
  Description: Save page HTML into dataset (html field). Increases dataset size.\
  Default: false

- saveHtmlToKeyValueStore (boolean)\
  Description: Save page HTML to key‑value store and link via htmlSnapshotUrl in the dataset.\
  Default: true

- includeIcons (boolean)\
  Description: Include icon image data in result items when found.\
  Default: false

- proxyConfiguration (object, editor: proxy)\
  Description: Always uses proxies. Prefill uses Apify Proxy with GOOGLE\_SERP group; automatically falls back to RESIDENTIAL when blocked.\
  Default: not set (prefill available)

#### Example output (JSON)

```json
{
  "searchQuery": {
    "term": "javascript site:developer.mozilla.org",
    "url": "https://www.google.com/search?q=javascript+site%3Adeveloper.mozilla.org&gl=US&hl=en",
    "device": "DESKTOP",
    "page": 1,
    "type": "SEARCH",
    "domain": "google.com",
    "countryCode": "US",
    "languageCode": "en",
    "locationUule": null,
    "resultsPerPage": 10
  },
  "searchQueryTerm": "javascript site:developer.mozilla.org",
  "url": "https://www.google.com/search?q=javascript+site%3Adeveloper.mozilla.org&gl=US&hl=en",
  "hasNextPage": true,
  "serpProviderCode": "O",
  "resultsTotal": 1250000,
  "relatedQueries": [
    {
      "title": "JavaScript tutorial",
      "url": "https://www.google.com/search?q=JavaScript+tutorial&hl=en&gl=us"
    }
  ],
  "paidResults": [
    {
      "title": "Learn JS Fast",
      "url": "https://ads.example.com",
      "displayedUrl": "ads.example.com",
      "description": "",
      "emphasizedKeywords": ["javascript site:developer.mozilla.org"],
      "siteLinks": [],
      "productInfo": {},
      "type": "paid",
      "position": 1
    }
  ],
  "paidProducts": [
    {
      "title": "Best JavaScript book",
      "displayedUrl": "shop.example.com",
      "prices": ["$19.99"]
    }
  ],
  "aiOverview": null,
  "organicResults": [
    {
      "title": "JavaScript | MDN",
      "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript",
      "displayedUrl": "developer.mozilla.org",
      "description": "JavaScript (JS) is a lightweight...",
      "emphasizedKeywords": ["javascript site:developer.mozilla.org"],
      "siteLinks": [],
      "productInfo": {},
      "type": "organic",
      "position": 1
    }
  ],
  "suggestedResults": [
    {
      "title": "JavaScript tutorial",
      "url": "https://www.google.com/search?q=JavaScript+tutorial&hl=en&gl=us",
      "type": "organic",
      "position": 1
    }
  ],
  "peopleAlsoAsk": [
    {
      "answer": null,
      "question": "What is JavaScript used for?",
      "title": "What is JavaScript used for?",
      "url": null,
      "date": null
    }
  ],
  "customData": {
    "perplexitySearch": {
      "enablePerplexity": false,
      "searchRecency": null,
      "returnImages": false,
      "returnRelatedQuestions": false
    },
    "chatGptSearch": {
      "enableChatGpt": false
    },
    "maximumLeadsEnrichmentRecords": 0,
    "leadsEnrichmentDepartments": []
  },
  "htmlSnapshotUrl": "javascript_20260412_120501_p1.html"
}
```

### FAQ

#### Is this a google SERP scraper free tool?

Pricing is managed on Apify and shown on the actor’s Pricing tab. You can run the actor on Apify and export results; check your subscription for available trial minutes and monthly plans.

#### Does it always use a proxy?

Yes. The actor initializes with a Google SERP proxy and automatically falls back to a residential proxy with retries if Google blocks the request. Once residential is used, it sticks to it for subsequent requests.

#### Can it scrape People Also Ask and shopping results?

Yes. The output includes peopleAlsoAsk and paidProducts when found, alongside organicResults and paidResults.

#### How many results per query can I get?

Use resultsPerPage (1–100) and maxPagesPerQuery to control volume. Google often returns ~10 organic results per page regardless of the num parameter, but additional pages increase total coverage.

#### Can I emulate location and languages?

Yes. Use countryCode, searchLanguage (lr), languageCode (hl), and locationUule for exact location. You can also enable mobileResults for a mobile SERP layout.

#### Does it support AI Overviews?

Yes. Set aiMode and provide a serpApiKey to fetch Google’s AI Overview (when available). The result appears under aiOverview with text and references.

#### Can I integrate this with my code or API?

Yes. Run the actor via the Apify API to integrate with pipelines (e.g., a google serp scraping api flow). The output’s standardized JSON is suitable for automation and “google results scraper python” scripts.

#### What about ads?

Enable focusOnPaidAds to optimize extraction for paidResults. This mode retries with an ad‑specialized proxy and applies an extra cost per search page (see Pricing).

### Closing thoughts

Google Search Results Scraper is built for accurate, scalable google serp data extraction. With resilient proxies, advanced filters, location emulation, and optional AI add‑ons, it delivers a clean SERP JSON feed for marketers, developers, analysts, and researchers. Export data to JSON/CSV/Excel, call it via the Apify API like a google search results API, and automate your SEO insights. Start scraping smarter SERPs today.

# Actor input Schema

## `queries` (type: `string`):

Use regular search words or enter Google Search URLs. You can also apply advanced Google search techniques, such as AI site:twitter.com or javascript OR python. You can also define selected search filters as separate fields below (in the Advanced search filters section). Just ensure that your queries do not exceed 32 words to comply with Google Search limits.

## `resultsPerPage` (type: `integer`):

Specifies the desired number of results per page that is passed to Google Search as the num parameter. However, Google applies its own internal filtering and quality checks, so the actual number of returned results may differ from this value, especially on the first page. To potentially retrieve more results closer to your desired count, consider enabling the "Unfiltered results" option from the "Additional settings" section below, which includes results that Google normally filters out.

## `maxPagesPerQuery` (type: `integer`):

Maximum number of pages to scrape per search query. Each page contains approximately 10 results.

## `aiMode` (type: `string`):

Enable scraping of Google's AI Mode to perform Answer Engine Optimization (AEO), GEO targeting, track brand visibility, and analyze competitors.

## `serpApiKey` (type: `string`):

Optional. When set and AI Mode is not off, fetches AI Overview via SerpApi.

## `perplexitySearch` (type: `object`):

Enable Perplexity to retrieve AI-generated answers and citations using the Sonar model. This feature is designed for cross-platform analysis, allowing you to directly compare Google AI Mode and ChatGPT results against Perplexity's perspective to identify narrative differences and coverage gaps.

Note: An additional fee applies per result when this feature is active. Please refer to the Pricing tab for your specific rate.

## `chatGptSearch` (type: `object`):

Enable ChatGPT to retrieve AI-generated answers powered by OpenAI's search model. This feature is designed for cross-platform analysis, allowing you to directly compare Google AI Mode and Perplexity results against ChatGPT's perspective to identify narrative differences, coverage gaps, and search engine biases.

The output includes query fan-out under queryFanOut, showing additional search queries the model generated to answer your question.

Note: An additional fee applies per result when this feature is active. Please refer to the Pricing tab for your specific rate.

## `maximumLeadsEnrichmentRecords` (type: `integer`):

Enrich your results with detailed contact and company information, including employee names, job titles, emails, phone numbers, LinkedIn profiles, and key company data like industry and number of employees.

This setting allows you to set the maximum number of leads records you want to scrape per each domain found. By default, it's set to 0 which means that no leads information will be scraped.

⚠️ Note that some of the fields contain personal data. GDPR protects personal data in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your use case is legitimate, please consult an attorney.

To keep your leads relevant, we automatically filter out large chains and online platforms (e.g., social media, retail giants, food delivery services).

⚠️ Cost warning: This is a multiplier. Requesting 10 leads for 1,000 domains will attempt to find 10,000 total leads. You are only charged for leads successfully found.

## `leadsEnrichmentDepartments` (type: `array`):

You can use this filter to include only specific departments (like Sales, Marketing, or C-Suite). Note: This will only work if the ⏩ Add-on: Extract business leads information - Maximum leads per domain (maximumLeadsEnrichmentRecords) option is enabled. Please note that some job titles are sometimes miscategorized in the wrong departments.

## `focusOnPaidAds` (type: `boolean`):

Enable extraction of paid results (Google Ads). This feature improves ad detection accuracy by using an ad-specialized proxy to perform up to 3 retries for each search query. Best used for queries likely to show ads. An extra cost per search page applies when enabled, regardless of ads found. Pricing depends on your Apify subscription plan.

## `countryCode` (type: `string`):

Specifies the country used for the search and the Google Search domain (e.g. google.es for Spain). By default, the Actor uses United States (google.com).

## `searchLanguage` (type: `string`):

Restricts search results to pages in a specific language. For example, choosing 'German' results in pages only in German. Passed to Google Search as the lr URL query parameter. Read more here.

## `languageCode` (type: `string`):

Language of the Google Search interface (menus, buttons, etc. - not the search results themselves). Passed to Google Search as the hl URL query parameter. From Google Reference: You can use the hl request parameter to identify the language of your graphical interface. The hl parameter value may affect search results, especially on international queries when language restriction (using the lr parameter) is not explicitly specified. Read more here.

## `locationUule` (type: `string`):

The code for the exact location for the Google search. It's passed to Google Search as the uule URL query parameter. You can use the UULE code generator. Learn more about emulating local search.

## `forceExactMatch` (type: `boolean`):

If checked, the scraper will search for the exact phrase in the query. This is done by wrapping the query in quotes. Note that this may return fewer results. Also note that if you're using operators such as OR or AND, the whole query will be wrapped in quotes, such as "Windows AND macOS". If you want to search for queries such as "Windows" AND "macOS", you need to specify them directly in the queries field.

## `site` (type: `string`):

Limits the search to a specific site, such as: site:example.com. Note that the site filter takes precedence over the relatedToSite filter. If both filters are set, the relatedToSite filter will be ignored and not added to the search queries.

## `relatedToSite` (type: `string`):

Filters pages related to a specific site, such as: related:example.com. Note that the site filter takes precedence over the relatedToSite filter. If both filters are set, the relatedToSite filter will be ignored and not added to the search queries.

## `wordsInTitle` (type: `array`):

Filters pages with specific words in the title. The scraper uses the intitle: operator, even for multiple words (e.g. recipe site:allrecipes.com intitle:"easy apple" intitle:pie). There's also a allintitle: operator available, but it's problematic when combined with other search filters, so the scraper avoids using it. If you need to use the allintitle: operator specifically, you can include it in your custom queries from the queries field.

## `wordsInText` (type: `array`):

Filters pages with specific words in the text. The scraper uses the intext: operator, even for multiple words (e.g. cartoon site:wikipedia.com intext:cat intext:mouse). There's also a allintext: operator available, but it's problematic when combined with other search filters, so the scraper avoids using it. If you need to use the allintext: operator specifically, you can include it in your custom queries from the queries field.

## `wordsInUrl` (type: `array`):

Filters pages with specific words in the URL. The scraper uses the inurl: operator, even for multiple words (e.g. recipe site:allrecipes.com inurl:apple inurl:pie). There's also a allinurl: operator available, but it's problematic when combined with other search filters, so the scraper avoids using it. If you need to use the allinurl: operator specifically, you can include it in your custom queries from the queries field.

## `quickDateRange` (type: `string`):

Filters results from a specific date range. d\[number] specifies the number of past days (e.g. the past 10 days can be written as d10). The same applies to hours, weeks, months, and years: h\[number], w\[number], m\[number], y\[number]. Example for the past year: 'y1' or even 'y'. The value is passed to Google Search using the tbs URL query parameter, prefixed with qdr:. You should avoid combining this filter with the beforeDate and afterDate filters to prevent conflicts.

## `beforeDate` (type: `string`):

Filters results from before the specified date. Either absolute date (e.g. 2024-05-03) or relative date from now into the past (e.g. 8 days, 3 months). Absolute time is always interpreted in the UTC timezone, not your local timezone - please convert accordingly. Supported relative date & time units: days, weeks, months, years. You should avoid combining this filter with the quickDateRange filter to prevent conflicts.

## `afterDate` (type: `string`):

Filters results from after the specified date. Either absolute date (e.g. 2024-05-03) or relative date from now into the past (e.g. 8 days, 3 months). Absolute time is always interpreted in the UTC timezone, not your local timezone - please convert accordingly. Supported relative date & time units: days, weeks, months, years. You should avoid combining this filter with the quickDateRange filter to prevent conflicts.

## `fileTypes` (type: `array`):

Filters results of specific file types using the filetype: operator, such as filetype:pdf. You can select multiple file types as well. They will be combined with the OR operator, for example: filetype:doc OR filetype:txt. If you need to use a file type that is not in the list (such as a source code file type), you can include it in your custom queries from the queries field, using the filetype: operator.

## `mobileResults` (type: `boolean`):

If checked the scraper will return results for mobile version of Google search. Otherwise desktop results are returned.

## `includeUnfilteredResults` (type: `boolean`):

If checked the lower quality results that Google normally filters out will be included.

## `saveHtml` (type: `boolean`):

If checked the HTML of the Google Search results pages will be stored to the default dataset, under the html property. This is useful if you need to process the HTML, but it makes the dataset large.

## `saveHtmlToKeyValueStore` (type: `boolean`):

If checked the HTML of the Google Search results pages will be stored to the default key-value store and links to the files stored to the dataset under the htmlSnapshotUrl property. This is useful for debugging since you can easily view the pages in the browser. However, the use of this feature may slow down the Actor.

## `includeIcons` (type: `boolean`):

If checked, all of the results (organicResults, paidResults, suggestedResults) will contain Base64-encoded icon image data if found.

## `proxyConfiguration` (type: `object`):

This actor always uses proxies to maximize success rates. By default, it starts with a Google SERP proxy and falls back to residential proxy (with 3 retries) if blocked. Once a residential proxy is used, it will stick to it for all subsequent requests.

## Actor input object example

```json
{
  "queries": "javascript\ntypescript\npython",
  "resultsPerPage": 100,
  "maxPagesPerQuery": 1,
  "aiMode": "aiModeOff",
  "perplexitySearch": {
    "enablePerplexity": false,
    "searchRecency": "",
    "returnImages": false,
    "returnRelatedQuestions": false
  },
  "chatGptSearch": {
    "enableChatGpt": false
  },
  "maximumLeadsEnrichmentRecords": 0,
  "leadsEnrichmentDepartments": [],
  "focusOnPaidAds": false,
  "countryCode": "us",
  "languageCode": "en",
  "forceExactMatch": false,
  "wordsInTitle": [],
  "wordsInText": [],
  "wordsInUrl": [],
  "fileTypes": [],
  "mobileResults": false,
  "includeUnfilteredResults": false,
  "saveHtml": false,
  "saveHtmlToKeyValueStore": true,
  "includeIcons": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "GOOGLE_SERP"
    ]
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": `javascript
typescript
python`,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "GOOGLE_SERP"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeengine/google-search-results-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": """javascript
typescript
python""",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["GOOGLE_SERP"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeengine/google-search-results-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": "javascript\\ntypescript\\npython",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "GOOGLE_SERP"
    ]
  }
}' |
apify call scrapeengine/google-search-results-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapeengine/google-search-results-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Search Results Scraper",
        "description": "Scrape Google search results with accuracy, including titles, URLs, snippets, rankings, and featured elements. This Apify scraper helps you track keywords, monitor competitors, analyze SERPs, and gather structured data for SEO research and market insights.",
        "version": "0.1",
        "x-build-id": "g35UCanUE2B2NQPHE"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapeengine~google-search-results-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapeengine-google-search-results-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapeengine~google-search-results-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapeengine-google-search-results-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapeengine~google-search-results-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapeengine-google-search-results-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "queries"
                ],
                "properties": {
                    "queries": {
                        "title": "🔍 Search term(s)",
                        "type": "string",
                        "description": "Use regular search words or enter Google Search URLs. You can also apply advanced Google search techniques, such as AI site:twitter.com or javascript OR python. You can also define selected search filters as separate fields below (in the Advanced search filters section). Just ensure that your queries do not exceed 32 words to comply with Google Search limits."
                    },
                    "resultsPerPage": {
                        "title": "📊 Results per page",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Specifies the desired number of results per page that is passed to Google Search as the num parameter. However, Google applies its own internal filtering and quality checks, so the actual number of returned results may differ from this value, especially on the first page. To potentially retrieve more results closer to your desired count, consider enabling the \"Unfiltered results\" option from the \"Additional settings\" section below, which includes results that Google normally filters out.",
                        "default": 100
                    },
                    "maxPagesPerQuery": {
                        "title": "📄 Max pages per search",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of pages to scrape per search query. Each page contains approximately 10 results.",
                        "default": 1
                    },
                    "aiMode": {
                        "title": "⏩ Add-on: Google AI Mode ($)",
                        "enum": [
                            "aiModeOff",
                            "aiModeWithSearchResults",
                            "aiModeOnly"
                        ],
                        "type": "string",
                        "description": "Enable scraping of Google's AI Mode to perform Answer Engine Optimization (AEO), GEO targeting, track brand visibility, and analyze competitors.",
                        "default": "aiModeOff"
                    },
                    "serpApiKey": {
                        "title": "🔑 SerpApi key (for AI Overview)",
                        "type": "string",
                        "description": "Optional. When set and AI Mode is not off, fetches AI Overview via SerpApi."
                    },
                    "perplexitySearch": {
                        "title": "⏩ Add-on: Perplexity AI search ($)",
                        "type": "object",
                        "description": "Enable Perplexity to retrieve AI-generated answers and citations using the Sonar model. This feature is designed for cross-platform analysis, allowing you to directly compare Google AI Mode and ChatGPT results against Perplexity's perspective to identify narrative differences and coverage gaps.\n\nNote: An additional fee applies per result when this feature is active. Please refer to the Pricing tab for your specific rate.",
                        "properties": {
                            "enablePerplexity": {
                                "title": "✨ Enable Perplexity AI",
                                "type": "boolean",
                                "description": "Fetch AI answer using Perplexity Sonar model.",
                                "default": false
                            },
                            "searchRecency": {
                                "title": "🔍 Search Recency",
                                "type": "string",
                                "description": "Specify the time range for Perplexity search results.",
                                "editor": "select",
                                "nullable": true,
                                "enum": [
                                    "",
                                    "day",
                                    "week",
                                    "month",
                                    "year"
                                ],
                                "enumTitles": [
                                    "None",
                                    "day",
                                    "week",
                                    "month",
                                    "year"
                                ]
                            },
                            "returnImages": {
                                "title": "🖼️ Include images in Perplexity AI answers",
                                "type": "boolean",
                                "description": "Include images in Perplexity response.",
                                "default": false
                            },
                            "returnRelatedQuestions": {
                                "title": "❓ Include related questions in Perplexity AI answers",
                                "type": "boolean",
                                "description": "Include related questions in Perplexity response.",
                                "default": false
                            }
                        },
                        "default": {
                            "enablePerplexity": false,
                            "searchRecency": "",
                            "returnImages": false,
                            "returnRelatedQuestions": false
                        }
                    },
                    "chatGptSearch": {
                        "title": "⏩ Add-on: ChatGPT Search ($)",
                        "type": "object",
                        "description": "Enable ChatGPT to retrieve AI-generated answers powered by OpenAI's search model. This feature is designed for cross-platform analysis, allowing you to directly compare Google AI Mode and Perplexity results against ChatGPT's perspective to identify narrative differences, coverage gaps, and search engine biases.\n\nThe output includes query fan-out under queryFanOut, showing additional search queries the model generated to answer your question.\n\nNote: An additional fee applies per result when this feature is active. Please refer to the Pricing tab for your specific rate.",
                        "properties": {
                            "enableChatGpt": {
                                "title": "💬 Enable ChatGPT search",
                                "type": "boolean",
                                "description": "Fetch AI answer using OpenAI search model.",
                                "default": false
                            }
                        },
                        "default": {
                            "enableChatGpt": false
                        }
                    },
                    "maximumLeadsEnrichmentRecords": {
                        "title": "⏩ Add-on: Extract Business Leads Information - Maximum leads per domain ($)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Enrich your results with detailed contact and company information, including employee names, job titles, emails, phone numbers, LinkedIn profiles, and key company data like industry and number of employees.\n\nThis setting allows you to set the maximum number of leads records you want to scrape per each domain found. By default, it's set to 0 which means that no leads information will be scraped.\n\n⚠️ Note that some of the fields contain personal data. GDPR protects personal data in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your use case is legitimate, please consult an attorney.\n\nTo keep your leads relevant, we automatically filter out large chains and online platforms (e.g., social media, retail giants, food delivery services).\n\n⚠️ Cost warning: This is a multiplier. Requesting 10 leads for 1,000 domains will attempt to find 10,000 total leads. You are only charged for leads successfully found.",
                        "default": 0
                    },
                    "leadsEnrichmentDepartments": {
                        "title": "🏢 Leads departments selection",
                        "type": "array",
                        "description": "You can use this filter to include only specific departments (like Sales, Marketing, or C-Suite). Note: This will only work if the ⏩ Add-on: Extract business leads information - Maximum leads per domain (maximumLeadsEnrichmentRecords) option is enabled. Please note that some job titles are sometimes miscategorized in the wrong departments.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "c-suite",
                                "product",
                                "engineering-technical",
                                "design",
                                "education",
                                "finance",
                                "human-resources",
                                "information-technology",
                                "legal",
                                "marketing",
                                "medical-health",
                                "operations",
                                "sales",
                                "consulting"
                            ],
                            "enumTitles": [
                                "C-Suite",
                                "Product",
                                "Engineering & Technical",
                                "Design",
                                "Education",
                                "Finance",
                                "Human Resources",
                                "Information Technology",
                                "Legal",
                                "Marketing",
                                "Medical & Health",
                                "Operations",
                                "Sales",
                                "Consulting"
                            ]
                        },
                        "default": []
                    },
                    "focusOnPaidAds": {
                        "title": "⏩ Add-on: Enable paid results (ads) extraction ($)",
                        "type": "boolean",
                        "description": "Enable extraction of paid results (Google Ads). This feature improves ad detection accuracy by using an ad-specialized proxy to perform up to 3 retries for each search query. Best used for queries likely to show ads. An extra cost per search page applies when enabled, regardless of ads found. Pricing depends on your Apify subscription plan.",
                        "default": false
                    },
                    "countryCode": {
                        "title": "🌍 Country",
                        "enum": [
                            "af",
                            "al",
                            "dz",
                            "as",
                            "ad",
                            "ao",
                            "ai",
                            "aq",
                            "ag",
                            "ar",
                            "am",
                            "aw",
                            "au",
                            "at",
                            "az",
                            "bs",
                            "bh",
                            "bd",
                            "bb",
                            "by",
                            "be",
                            "bz",
                            "bj",
                            "bm",
                            "bt",
                            "bo",
                            "ba",
                            "bw",
                            "bv",
                            "br",
                            "io",
                            "bn",
                            "bg",
                            "bf",
                            "bi",
                            "kh",
                            "cm",
                            "ca",
                            "cv",
                            "ky",
                            "cf",
                            "td",
                            "cl",
                            "cn",
                            "cx",
                            "cc",
                            "co",
                            "km",
                            "cg",
                            "cd",
                            "ck",
                            "cr",
                            "ci",
                            "hr",
                            "cu",
                            "cy",
                            "cz",
                            "dk",
                            "dj",
                            "dm",
                            "do",
                            "ec",
                            "eg",
                            "sv",
                            "gq",
                            "er",
                            "ee",
                            "et",
                            "fk",
                            "fo",
                            "fj",
                            "fi",
                            "fr",
                            "gf",
                            "pf",
                            "tf",
                            "ga",
                            "gm",
                            "ge",
                            "de",
                            "gh",
                            "gi",
                            "gr",
                            "gl",
                            "gd",
                            "gp",
                            "gu",
                            "gt",
                            "gn",
                            "gw",
                            "gy",
                            "ht",
                            "hm",
                            "va",
                            "hn",
                            "hk",
                            "hu",
                            "is",
                            "in",
                            "id",
                            "ir",
                            "iq",
                            "ie",
                            "il",
                            "it",
                            "jm",
                            "jp",
                            "jo",
                            "kz",
                            "ke",
                            "ki",
                            "kp",
                            "kr",
                            "kw",
                            "kg",
                            "la",
                            "lv",
                            "lb",
                            "ls",
                            "lr",
                            "ly",
                            "li",
                            "lt",
                            "lu",
                            "mo",
                            "mk",
                            "mg",
                            "mw",
                            "my",
                            "mv",
                            "ml",
                            "mt",
                            "mh",
                            "mq",
                            "mr",
                            "mu",
                            "yt",
                            "mx",
                            "fm",
                            "md",
                            "mc",
                            "mn",
                            "ms",
                            "ma",
                            "mz",
                            "mm",
                            "na",
                            "nr",
                            "np",
                            "nl",
                            "an",
                            "nc",
                            "nz",
                            "ni",
                            "ne",
                            "ng",
                            "nu",
                            "nf",
                            "mp",
                            "no",
                            "om",
                            "pk",
                            "pw",
                            "ps",
                            "pa",
                            "pg",
                            "py",
                            "pe",
                            "ph",
                            "pn",
                            "pl",
                            "pt",
                            "pr",
                            "qa",
                            "re",
                            "ro",
                            "ru",
                            "rw",
                            "sh",
                            "kn",
                            "lc",
                            "pm",
                            "vc",
                            "ws",
                            "sm",
                            "st",
                            "sa",
                            "sn",
                            "cs",
                            "sc",
                            "sl",
                            "sg",
                            "sk",
                            "si",
                            "sb",
                            "so",
                            "za",
                            "gs",
                            "es",
                            "lk",
                            "sd",
                            "sr",
                            "sj",
                            "sz",
                            "se",
                            "ch",
                            "sy",
                            "tw",
                            "tj",
                            "tz",
                            "th",
                            "tl",
                            "tg",
                            "tk",
                            "to",
                            "tt",
                            "tn",
                            "tr",
                            "tm",
                            "tc",
                            "tv",
                            "ug",
                            "ua",
                            "ae",
                            "gb",
                            "us",
                            "um",
                            "uy",
                            "uz",
                            "vu",
                            "ve",
                            "vn",
                            "vg",
                            "vi",
                            "wf",
                            "eh",
                            "ye",
                            "zm",
                            "zw"
                        ],
                        "type": "string",
                        "description": "Specifies the country used for the search and the Google Search domain (e.g. google.es for Spain). By default, the Actor uses United States (google.com).",
                        "default": "us"
                    },
                    "searchLanguage": {
                        "title": "🔤 Search language",
                        "enum": [
                            "",
                            "ar",
                            "bg",
                            "ca",
                            "cs",
                            "da",
                            "de",
                            "el",
                            "en",
                            "es",
                            "et",
                            "fi",
                            "fr",
                            "hr",
                            "hu",
                            "id",
                            "is",
                            "it",
                            "iw",
                            "ja",
                            "ko",
                            "lt",
                            "lv",
                            "nl",
                            "no",
                            "pl",
                            "pt",
                            "ro",
                            "ru",
                            "sk",
                            "sl",
                            "sr",
                            "sv",
                            "tr",
                            "zh-CN",
                            "zh-TW"
                        ],
                        "type": "string",
                        "description": "Restricts search results to pages in a specific language. For example, choosing 'German' results in pages only in German. Passed to Google Search as the lr URL query parameter. Read more here."
                    },
                    "languageCode": {
                        "title": "🌐 Interface Language",
                        "enum": [
                            "af",
                            "sq",
                            "sm",
                            "ar",
                            "az",
                            "eu",
                            "be",
                            "bn",
                            "bh",
                            "bs",
                            "bg",
                            "ca",
                            "zh-CN",
                            "zh-TW",
                            "hr",
                            "cs",
                            "da",
                            "nl",
                            "en",
                            "eo",
                            "et",
                            "fo",
                            "fi",
                            "fr",
                            "fy",
                            "gl",
                            "ka",
                            "de",
                            "el",
                            "gu",
                            "iw",
                            "hi",
                            "hu",
                            "is",
                            "id",
                            "ia",
                            "ga",
                            "it",
                            "ja",
                            "jw",
                            "kn",
                            "ko",
                            "la",
                            "lv",
                            "lt",
                            "mk",
                            "ms",
                            "ml",
                            "mt",
                            "mr",
                            "ne",
                            "no",
                            "nn",
                            "oc",
                            "fa",
                            "pl",
                            "pt-BR",
                            "pt-PT",
                            "pa",
                            "ro",
                            "ru",
                            "gd",
                            "sr",
                            "si",
                            "sk",
                            "sl",
                            "es",
                            "su",
                            "sw",
                            "sv",
                            "tl",
                            "ta",
                            "te",
                            "th",
                            "ti",
                            "tr",
                            "uk",
                            "ur",
                            "uz",
                            "vi",
                            "cy",
                            "xh",
                            "zu"
                        ],
                        "type": "string",
                        "description": "Language of the Google Search interface (menus, buttons, etc. - not the search results themselves). Passed to Google Search as the hl URL query parameter. From Google Reference: You can use the hl request parameter to identify the language of your graphical interface. The hl parameter value may affect search results, especially on international queries when language restriction (using the lr parameter) is not explicitly specified. Read more here.",
                        "default": "en"
                    },
                    "locationUule": {
                        "title": "📍 Exact location (Google UULE parameter)",
                        "type": "string",
                        "description": "The code for the exact location for the Google search. It's passed to Google Search as the uule URL query parameter. You can use the UULE code generator. Learn more about emulating local search."
                    },
                    "forceExactMatch": {
                        "title": "🎯 Force exact match",
                        "type": "boolean",
                        "description": "If checked, the scraper will search for the exact phrase in the query. This is done by wrapping the query in quotes. Note that this may return fewer results. Also note that if you're using operators such as OR or AND, the whole query will be wrapped in quotes, such as \"Windows AND macOS\". If you want to search for queries such as \"Windows\" AND \"macOS\", you need to specify them directly in the queries field.",
                        "default": false
                    },
                    "site": {
                        "title": "🌐 Site",
                        "type": "string",
                        "description": "Limits the search to a specific site, such as: site:example.com. Note that the site filter takes precedence over the relatedToSite filter. If both filters are set, the relatedToSite filter will be ignored and not added to the search queries."
                    },
                    "relatedToSite": {
                        "title": "🔗 Related to site",
                        "type": "string",
                        "description": "Filters pages related to a specific site, such as: related:example.com. Note that the site filter takes precedence over the relatedToSite filter. If both filters are set, the relatedToSite filter will be ignored and not added to the search queries."
                    },
                    "wordsInTitle": {
                        "title": "📝 Words in title",
                        "maxItems": 32,
                        "type": "array",
                        "description": "Filters pages with specific words in the title. The scraper uses the intitle: operator, even for multiple words (e.g. recipe site:allrecipes.com intitle:\"easy apple\" intitle:pie). There's also a allintitle: operator available, but it's problematic when combined with other search filters, so the scraper avoids using it. If you need to use the allintitle: operator specifically, you can include it in your custom queries from the queries field.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "wordsInText": {
                        "title": "📄 Words in text",
                        "maxItems": 32,
                        "type": "array",
                        "description": "Filters pages with specific words in the text. The scraper uses the intext: operator, even for multiple words (e.g. cartoon site:wikipedia.com intext:cat intext:mouse). There's also a allintext: operator available, but it's problematic when combined with other search filters, so the scraper avoids using it. If you need to use the allintext: operator specifically, you can include it in your custom queries from the queries field.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "wordsInUrl": {
                        "title": "🔗 Words in URL",
                        "maxItems": 32,
                        "type": "array",
                        "description": "Filters pages with specific words in the URL. The scraper uses the inurl: operator, even for multiple words (e.g. recipe site:allrecipes.com inurl:apple inurl:pie). There's also a allinurl: operator available, but it's problematic when combined with other search filters, so the scraper avoids using it. If you need to use the allinurl: operator specifically, you can include it in your custom queries from the queries field.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "quickDateRange": {
                        "title": "⏱️ Quick date range",
                        "type": "string",
                        "description": "Filters results from a specific date range. d[number] specifies the number of past days (e.g. the past 10 days can be written as d10). The same applies to hours, weeks, months, and years: h[number], w[number], m[number], y[number]. Example for the past year: 'y1' or even 'y'. The value is passed to Google Search using the tbs URL query parameter, prefixed with qdr:. You should avoid combining this filter with the beforeDate and afterDate filters to prevent conflicts."
                    },
                    "beforeDate": {
                        "title": "📅 Before date",
                        "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
                        "type": "string",
                        "description": "Filters results from before the specified date. Either absolute date (e.g. 2024-05-03) or relative date from now into the past (e.g. 8 days, 3 months). Absolute time is always interpreted in the UTC timezone, not your local timezone - please convert accordingly. Supported relative date & time units: days, weeks, months, years. You should avoid combining this filter with the quickDateRange filter to prevent conflicts."
                    },
                    "afterDate": {
                        "title": "📆 After date",
                        "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
                        "type": "string",
                        "description": "Filters results from after the specified date. Either absolute date (e.g. 2024-05-03) or relative date from now into the past (e.g. 8 days, 3 months). Absolute time is always interpreted in the UTC timezone, not your local timezone - please convert accordingly. Supported relative date & time units: days, weeks, months, years. You should avoid combining this filter with the quickDateRange filter to prevent conflicts."
                    },
                    "fileTypes": {
                        "title": "📎 File types",
                        "maxItems": 10,
                        "type": "array",
                        "description": "Filters results of specific file types using the filetype: operator, such as filetype:pdf. You can select multiple file types as well. They will be combined with the OR operator, for example: filetype:doc OR filetype:txt. If you need to use a file type that is not in the list (such as a source code file type), you can include it in your custom queries from the queries field, using the filetype: operator.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "pdf",
                                "csv",
                                "epub",
                                "ps",
                                "htm",
                                "html",
                                "xls",
                                "xlsx",
                                "ppt",
                                "pptx",
                                "doc",
                                "docx",
                                "odp",
                                "ods",
                                "odt",
                                "rtf",
                                "svg",
                                "tex",
                                "txt",
                                "wml",
                                "wap",
                                "xml",
                                "xps",
                                "md",
                                "readme",
                                "log",
                                "yml",
                                "yaml",
                                "toml",
                                "ipynb",
                                "sas",
                                "sql",
                                "rdf",
                                "avif",
                                "avi",
                                "mkv",
                                "mov",
                                "flv",
                                "asf",
                                "ogv"
                            ],
                            "enumTitles": [
                                "Adobe Portable Document Format (pdf)",
                                "Comma-Separated Values (csv)",
                                "Electronic Publication (epub)",
                                "Adobe PostScript (ps)",
                                "HTML (htm)",
                                "HTML (html)",
                                "Microsoft Excel (xls)",
                                "Microsoft Excel (xlsx)",
                                "Microsoft PowerPoint (ppt)",
                                "Microsoft PowerPoint (pptx)",
                                "Microsoft Word (doc)",
                                "Microsoft Word (docx)",
                                "OpenOffice presentation (odp)",
                                "OpenOffice spreadsheet (ods)",
                                "OpenOffice text (odt)",
                                "Rich Text Format (rtf)",
                                "Scalable Vector Graphics (svg)",
                                "TeX/LaTeX (tex)",
                                "Text (txt)",
                                "Wireless Markup Language (wml)",
                                "Wireless Markup Language (wap)",
                                "XML (xml)",
                                "XML Paper Specification (xps)",
                                "Markdown (md)",
                                "Readme (readme)",
                                "Log file (log)",
                                "YAML (yml)",
                                "YAML (yaml)",
                                "TOML (toml)",
                                "Jupyter Notebook (ipynb)",
                                "SAS (sas)",
                                "SQL (sql)",
                                "Resource Description Framework (rdf)",
                                "AV1 Image File Format (avif)",
                                "Audio Video Interleave (avi)",
                                "Matroska Multimedia Container (mkv)",
                                "QuickTime Movie (mov)",
                                "Flash Video (flv)",
                                "Advanced Systems Format (asf)",
                                "Ogg Video (ogv)"
                            ]
                        },
                        "default": []
                    },
                    "mobileResults": {
                        "title": "📱 Mobile results",
                        "type": "boolean",
                        "description": "If checked the scraper will return results for mobile version of Google search. Otherwise desktop results are returned.",
                        "default": false
                    },
                    "includeUnfilteredResults": {
                        "title": "🔓 Unfiltered results",
                        "type": "boolean",
                        "description": "If checked the lower quality results that Google normally filters out will be included.",
                        "default": false
                    },
                    "saveHtml": {
                        "title": "💾 Save HTML to dataset",
                        "type": "boolean",
                        "description": "If checked the HTML of the Google Search results pages will be stored to the default dataset, under the html property. This is useful if you need to process the HTML, but it makes the dataset large.",
                        "default": false
                    },
                    "saveHtmlToKeyValueStore": {
                        "title": "🗄️ Save HTML to key-value store",
                        "type": "boolean",
                        "description": "If checked the HTML of the Google Search results pages will be stored to the default key-value store and links to the files stored to the dataset under the htmlSnapshotUrl property. This is useful for debugging since you can easily view the pages in the browser. However, the use of this feature may slow down the Actor.",
                        "default": true
                    },
                    "includeIcons": {
                        "title": "🖼️ Include icon image data (base64)",
                        "type": "boolean",
                        "description": "If checked, all of the results (organicResults, paidResults, suggestedResults) will contain Base64-encoded icon image data if found.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "🔒 Proxy configuration",
                        "type": "object",
                        "description": "This actor always uses proxies to maximize success rates. By default, it starts with a Google SERP proxy and falls back to residential proxy (with 3 retries) if blocked. Once a residential proxy is used, it will stick to it for all subsequent requests."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
