# Google Search Results Scraper - SERP API, PAA & Rich Results (`santhej/google-search-results-scraper`) Actor

Scrape Google Search results at scale: organic rankings, People Also Ask, AI Overview, featured snippets, ads & related searches. Any keyword, 190+ countries, desktop or mobile. Clean JSON/CSV. 95%+ success. No proxies or API keys to manage.

- **URL**: https://apify.com/santhej/google-search-results-scraper.md
- **Developed by:** [Santhej Kallada](https://apify.com/santhej) (community)
- **Categories:** SEO tools, AI, MCP servers
- **Stats:** 4 total users, 4 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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 — SERP API for Organic Rankings, PAA, AI Overview & Ads

**Track Google rankings, steal competitor keywords, and feed live SERP data into your apps — without proxies, captchas, or a flaky scraper to babysit. 95%+ success, structured JSON, any country.**

Give it a list of keywords and get back every element on the Google results page: organic rankings, People Also Ask, AI Overview, featured snippets, ads, and related searches — one clean row each. Built for SEOs, agencies, and developers who need reliable SERP data at scale.

---

### What you can scrape

- 🔎 **Organic results** — rank, title, URL, domain, snippet, breadcrumb for every listing.
- ❓ **People Also Ask** — the questions Google surfaces for each query (content-gold for SEO).
- 🤖 **AI Overview** — capture Google's AI answer block when present.
- ⭐ **Featured snippets & rich results** — position-zero, ratings, prices, sitelinks.
- 📣 **Ads & shopping** — see who's bidding on your keywords.
- 🔗 **Related searches** — expand your keyword universe.

### Why this scraper

| | This actor | DIY scraping | Other SERP APIs |
|---|---|---|---|
| **Reliability** | 95%+ success, enterprise infra | Breaks on every Google change | Varies |
| **Proxies / captchas** | Handled — nothing to set up | You manage proxies & bans | Sometimes extra |
| **Coverage** | 190+ countries, desktop + mobile | Hard to localize | Tiered pricing |
| **Output** | Clean JSON / CSV / Excel | Raw HTML to parse | Varies |
| **Pricing** | Pay per page, no subscription | "Free" but costs you hours | $50–$500/mo plans |

### Perfect for

- **Rank tracking** — monitor where you and competitors rank for target keywords.
- **Keyword & content research** — mine People Also Ask and related searches for topics.
- **SERP monitoring** — detect AI Overviews, featured snippets, and SERP feature changes.
- **Competitive intelligence** — see who ranks and who's running ads in your niche.
- **AI & RAG pipelines** — feed fresh, structured search results to LLM agents and MCP tools.

### How to use it

1. Paste your **keywords** (one per line).
2. Choose **country**, **language**, **device**, and how many results per query.
3. Run it — download JSON/CSV or pull via the API.

#### Example input

```json
{
  "queries": ["best running shoes", "crm software"],
  "resultsDepth": 20,
  "locationCode": "2840",
  "languageCode": "en",
  "device": "desktop"
}
````

#### Example output (one row per result)

```json
{
  "query": "best running shoes",
  "type": "organic",
  "rank_absolute": 2,
  "title": "The 15 Best Running Shoes of 2026",
  "url": "https://www.runnersworld.com/gear/a19663621/best-running-shoes/",
  "domain": "www.runnersworld.com",
  "description": "The Brooks Ghost is our No. 1 shoe…",
  "breadcrumb": "runnersworld.com › … › Running Shoes"
}
```

### Pricing

Pay per SERP page scraped — no monthly fee, no minimum. A full results page (up to 100 results) is a flat, tiny charge. Scrape 10 keywords or 10,000; you only pay for what you run.

### FAQ

**Do I need proxies or to solve captchas?** No. All of that is handled — you just send keywords.

**Which countries and languages are supported?** 190+ countries and all major languages. Pick your country in the input.

**Can I get only organic results?** Yes — toggle "Organic results only" to drop ads, PAA, and other elements.

**Is this good for an AI agent?** Yes — output is clean structured JSON, ideal for MCP servers, n8n, Make, and custom LLM agents.

***

*Tags: google serp scraper, serp api, google search scraper, scrape google, rank tracker, keyword rankings, people also ask, ai overview, featured snippet, google results api, seo scraper.*

# Actor input Schema

## `queries` (type: `array`):

Keywords / search queries to scrape. One per line. Each query = 1 Google SERP page. Up to 1,000 per run.

## `resultsDepth` (type: `integer`):

How many results to return per query (10–100).

## `locationCode` (type: `string`):

Target country. Default United States (2840). UK 2826, Canada 2124, Australia 2036, India 2356, Germany 2276.

## `locationName` (type: `string`):

Precise location, e.g. 'New York,New York,United States' or 'London,England,United Kingdom'. Overrides Country when set. Leave blank to use Country.

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

Language code (e.g. en, es, de, fr).

## `dateRange` (type: `string`):

Restrict results by recency. Use Custom to set exact before/after dates.

## `dateAfter` (type: `string`):

Only results after this date. Format YYYY-MM-DD. Used only when Date range = Custom.

## `dateBefore` (type: `string`):

Only results before this date. Format YYYY-MM-DD. Used only when Date range = Custom.

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

Restrict to one domain, e.g. 'nytimes.com'. Composed into the query as site:domain.

## `exactPhrase` (type: `string`):

Match this exact phrase (wrapped in quotes in the query).

## `excludeWords` (type: `string`):

Comma/space separated words to exclude (each becomes -word).

## `intitle` (type: `string`):

Require this word/phrase in the page title.

## `inurl` (type: `string`):

Require this word in the page URL.

## `filetype` (type: `string`):

Restrict to a file type, e.g. 'pdf', 'doc', 'ppt'.

## `device` (type: `string`):

Desktop or mobile SERP.

## `organicOnly` (type: `boolean`):

If enabled, returns only organic results and drops ads, PAA, AI Overview, etc.

## Actor input object example

```json
{
  "queries": [
    "best running shoes",
    "crm software",
    "project management tools"
  ],
  "resultsDepth": 20,
  "locationCode": "2840",
  "languageCode": "en",
  "dateRange": "any",
  "device": "desktop",
  "organicOnly": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

All scraped SERP elements across queries.

## `summary` (type: `string`):

Queries, pages scraped, and row counts.

# 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": [
        "best running shoes",
        "crm software",
        "project management tools"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("santhej/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": [
        "best running shoes",
        "crm software",
        "project management tools",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("santhej/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": [
    "best running shoes",
    "crm software",
    "project management tools"
  ]
}' |
apify call santhej/google-search-results-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Search Results Scraper - SERP API, PAA & Rich Results",
        "description": "Scrape Google Search results at scale: organic rankings, People Also Ask, AI Overview, featured snippets, ads & related searches. Any keyword, 190+ countries, desktop or mobile. Clean JSON/CSV. 95%+ success. No proxies or API keys to manage.",
        "version": "0.0",
        "x-build-id": "8bPqLdpTNNjQDuSVA"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/santhej~google-search-results-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-santhej-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/santhej~google-search-results-scraper/runs": {
            "post": {
                "operationId": "runs-sync-santhej-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/santhej~google-search-results-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-santhej-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",
                "properties": {
                    "queries": {
                        "title": "Search queries",
                        "minItems": 1,
                        "maxItems": 1000,
                        "type": "array",
                        "description": "Keywords / search queries to scrape. One per line. Each query = 1 Google SERP page. Up to 1,000 per run.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "resultsDepth": {
                        "title": "Results per query",
                        "minimum": 10,
                        "maximum": 100,
                        "type": "integer",
                        "description": "How many results to return per query (10–100).",
                        "default": 20
                    },
                    "locationCode": {
                        "title": "Country",
                        "enum": [
                            "2840",
                            "2826",
                            "2124",
                            "2036",
                            "2356",
                            "2276",
                            "2250",
                            "2724",
                            "2380",
                            "2392"
                        ],
                        "type": "string",
                        "description": "Target country. Default United States (2840). UK 2826, Canada 2124, Australia 2036, India 2356, Germany 2276.",
                        "default": "2840"
                    },
                    "locationName": {
                        "title": "City / region (optional)",
                        "type": "string",
                        "description": "Precise location, e.g. 'New York,New York,United States' or 'London,England,United Kingdom'. Overrides Country when set. Leave blank to use Country."
                    },
                    "languageCode": {
                        "title": "Language",
                        "type": "string",
                        "description": "Language code (e.g. en, es, de, fr).",
                        "default": "en"
                    },
                    "dateRange": {
                        "title": "Date range",
                        "enum": [
                            "any",
                            "past-day",
                            "past-week",
                            "past-month",
                            "past-year",
                            "custom"
                        ],
                        "type": "string",
                        "description": "Restrict results by recency. Use Custom to set exact before/after dates.",
                        "default": "any"
                    },
                    "dateAfter": {
                        "title": "After date (custom range)",
                        "type": "string",
                        "description": "Only results after this date. Format YYYY-MM-DD. Used only when Date range = Custom."
                    },
                    "dateBefore": {
                        "title": "Before date (custom range)",
                        "type": "string",
                        "description": "Only results before this date. Format YYYY-MM-DD. Used only when Date range = Custom."
                    },
                    "site": {
                        "title": "Limit to site (site:)",
                        "type": "string",
                        "description": "Restrict to one domain, e.g. 'nytimes.com'. Composed into the query as site:domain."
                    },
                    "exactPhrase": {
                        "title": "Exact phrase",
                        "type": "string",
                        "description": "Match this exact phrase (wrapped in quotes in the query)."
                    },
                    "excludeWords": {
                        "title": "Exclude words",
                        "type": "string",
                        "description": "Comma/space separated words to exclude (each becomes -word)."
                    },
                    "intitle": {
                        "title": "In title (intitle:)",
                        "type": "string",
                        "description": "Require this word/phrase in the page title."
                    },
                    "inurl": {
                        "title": "In URL (inurl:)",
                        "type": "string",
                        "description": "Require this word in the page URL."
                    },
                    "filetype": {
                        "title": "File type (filetype:)",
                        "type": "string",
                        "description": "Restrict to a file type, e.g. 'pdf', 'doc', 'ppt'."
                    },
                    "device": {
                        "title": "Device",
                        "enum": [
                            "desktop",
                            "mobile"
                        ],
                        "type": "string",
                        "description": "Desktop or mobile SERP.",
                        "default": "desktop"
                    },
                    "organicOnly": {
                        "title": "Organic results only",
                        "type": "boolean",
                        "description": "If enabled, returns only organic results and drops ads, PAA, AI Overview, etc.",
                        "default": false
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
