# Google Search Scraper 💰 $4/1K pages · Rank Tracker · Real URLs (`first-penguin/google-search-scraper`) Actor

Scrape Google search results to JSON or CSV for $4 per 1,000 pages: rank, title, real URL, domain, snippet, People Also Ask, related searches and ads. Track your domains, stop paging once they are found, and get rank changes in Slack, Discord or a webhook. Empty pages are free.

- **URL**: https://apify.com/first-penguin/google-search-scraper.md
- **Developed by:** [First Penguin](https://apify.com/first-penguin) (community)
- **Categories:** SEO tools, AI, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 results pages

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Search Scraper: SERP API, rank tracker and real URLs

### What does it do?

Give it search terms (or Google Search URLs) and a country, and it returns **one row per Google results page**, plus a **one-row-per-result** view that drops straight into a rank-tracking sheet. No login, no Google API key, no proxy settings.

Most Google scrapers read every page you ask for on every run, and charge for all of them. This one can **stop reading a search as soon as your tracked domains are found**, so a weekly rank check costs only the pages it needs. It can also **compare with the previous run** and tell you, in Slack, Discord or a webhook, which domains moved up or down.

### How it works

1. **You send searches.** Plain words, Google operators (`site:`, `intitle:`, `"exact phrase"`, `-word`) or a Google Search URL copied from your browser. Duplicate searches are removed, so you are never charged twice.
2. **It reads Google's results pages** through Apify's dedicated Google Search proxy, page by page (about 10 results each). Google wraps every result link in its own redirect; the Actor turns it back into the **real page URL**.
3. **It returns one row per page and one row per result.** Pages that come back empty, or that Google refuses, are returned with a `reason` and **are not charged**.

### How is it different?

| | This Actor | A typical Google Search Actor |
|---|---|---|
| Rank tracking: stop paging when your domain is found | ✅ Pay only for the pages until it is found | ❌ Reads and charges every page you set |
| Rank changes since the last run | ✅ Up, down, new, dropped out, different URL | ❌ Today's positions only; you compare yourself |
| Alerts when rankings change | ✅ Slack, Discord, webhook | ❌ |
| Real URLs | ✅ Google redirect links resolved (unresolved ones are flagged) | ⚠️ Often Google redirect links |
| `site:`, date range, exact match, file type | ✅ As input fields | ✅ |
| Pages 2, 3 and beyond | ✅ Positions continue across pages | ✅ |
| Same input names as Apify's Google Search Results Scraper | ✅ Switch by changing the Actor ID | ❌ Own names |
| Empty or refused pages | Free, with a reason | Sometimes charged |
| AI Overview text | ❌ Not in the results page (see FAQ) | ✅ Some Actors, as a paid add-on |

### Use cases

- **Rank tracking for an SEO agency.** 200 client keywords, country `us`, up to 5 pages, tracked domain `example.com`, scheduled every Monday. If most keywords rank on page 1, you pay for 200 to 1,000 pages ($0.80 to $4.00). With **Compare with the previous run** on and **Smallest move to report** set to 3, Slack only hears about keywords that moved 3 places or more.
- **Local lead lists for sales.** Fifty "trade + city" searches such as `plumber Leeds`, 3 pages each. Use the real URL and domain columns to remove duplicates, then send them to your CRM. 150 pages = $0.60.
- **Finding people with X-ray search.** `site:linkedin.com/in "head of growth" Berlin`, 3 pages. You get the title, snippet and URL that Google shows; the Actor does not open LinkedIn itself.
- **Content research.** Collect the People also ask questions for 100 "how to" searches. In our test, about 6 in 10 results pages had People also ask.
- **A search tool for AI agents.** One search, one page, $0.004 per call. See the AI agents section below.

### Pricing

| | Price |
|---|---|
| One Google results page (about 10 organic results) | **$4 per 1,000 pages** |
| Real URLs, People also ask, related searches, ads, rank tracking and rank changes | Included |
| Empty pages, refused pages, and pages skipped because your tracked domains were already found | Free |

Running 1,000 pages costs at most $4.

### Input

| Field | What it does |
|---|---|
| `queries` | Search terms or Google Search URLs, one per line. Required. |
| `maxPagesPerQuery` | Results pages per search (default 1, up to 20). |
| `countryCode`, `languageCode`, `searchLanguage`, `locationUule` | Country (`gl`), interface language (`hl`), results language (`lr`) and exact location (`uule`). |
| `site`, `relatedToSite`, `forceExactMatch`, `wordsInTitle`, `wordsInText`, `wordsInUrl`, `fileTypes`, `quickDateRange`, `afterDate`, `beforeDate`, `includeUnfilteredResults` | Filters, with the same names as Apify's Google Search Results Scraper. |
| `trackDomains` | Your and your competitors' domains. Each search gets a ranking row. |
| `stopWhenTrackedFound` | Stop reading a search once every tracked domain is found (default on). |
| `monitorChanges`, `monitorName`, `minRankChange` | Compare with the previous run of the same monitor and report moves of at least this many places. |
| `slackWebhookUrl`, `discordWebhookUrl`, `webhookUrl` | Where to send the changes (one message per run). |
| `resolveUrls` | Turn Google redirect links into real URLs (default on). |

Smallest input:

```json
{ "queries": "best crm for small business" }
```

Weekly rank tracking:

```json
{
  "queries": "crm for startups\ncrm for real estate\nfree crm",
  "countryCode": "us",
  "maxPagesPerQuery": 5,
  "trackDomains": ["example.com", "competitor.example"],
  "monitorChanges": true,
  "monitorName": "client-a",
  "minRankChange": 3,
  "slackWebhookUrl": "https://hooks.slack.com/services/..."
}
```

### Output

#### What you get, and what you do not

| You get | You do not get |
|---|---|
| Position (continuous across pages), title, real URL, domain, displayed URL, snippet, date when Google shows one, emphasized words | AI Overview text |
| People also ask questions | People also ask answers (Google loads them only when someone clicks) |
| Related searches | Details of businesses in the map box (use a Google Maps Actor) |
| Ads, when Google shows them | Ads that Google shows only to signed-in people |

#### Example: one results page (made-up data)

```json
{
  "status": "ok",
  "searchQuery": { "term": "best widget shop", "page": 1, "countryCode": "US", "languageCode": "en", "url": "http://www.google.com/search?q=best+widget+shop&hl=en&gl=us" },
  "organicResults": [
    { "position": 1, "title": "The 10 Best Widget Shops of 2026", "url": "https://widgets.example/best-shops", "urlResolved": true, "domain": "widgets.example", "displayedUrl": "https://widgets.example › best-shops", "description": "We compared 40 widget shops on price, delivery and returns.", "date": "Mar 3, 2026", "emphasizedKeywords": ["widget shops"], "type": "organic", "matchesTracked": [] },
    { "position": 2, "title": "Widget Shop | Handmade widgets", "url": "https://shop.example/", "urlResolved": true, "domain": "shop.example", "displayedUrl": "https://shop.example", "description": "Handmade widgets, shipped in 2 days.", "date": null, "emphasizedKeywords": [], "type": "organic", "matchesTracked": ["shop.example"] }
  ],
  "peopleAlsoAsk": [{ "question": "Where can I buy a good widget?" }],
  "relatedQueries": [{ "title": "best widget shop online", "url": "https://www.google.com/search?q=best+widget+shop+online" }],
  "paidResults": [],
  "hasNextPage": true,
  "organicCount": 2,
  "scrapedAt": "2026-11-20T09:00:00.000Z"
}
```

#### Example: a tracked domain moved (made-up data)

```json
{
  "status": "rank",
  "searchTerm": "best widget shop",
  "countryCode": "US",
  "positions": { "shop.example": 2 },
  "rankingUrls": { "shop.example": "https://shop.example/" },
  "rankChanges": [{ "domain": "shop.example", "change": "up", "from": 6, "to": 2, "delta": 4, "url": "https://shop.example/" }],
  "top10Entered": ["shop.example"],
  "top10Left": ["oldshop.example"],
  "pagesRead": 1,
  "pendingChanges": [],
  "comparedWithScrapedAt": "2026-11-13T09:00:00.000Z"
}
```

#### Example: a page that was not delivered (not charged)

```json
{ "status": "no_results", "searchQuery": { "term": "zzqx widget 4711", "page": 1 }, "reason": "Google returned no results for this search on this page." }
```

Other statuses: `blocked` (Google refused the page after several tries), `unexpected`, `failed`, `invalid_input`.

### Monitoring mode

- Turn on **Compare with the previous run** and add **Domains to track**. Each search's ranking row shows `rankChanges`: `up`, `down`, `entered` (was not found last time), `dropped` (not found this time) or `url_changed` (a different page of the same domain ranks now). `top10Entered` and `top10Left` list the domains that came into or left the top 10.
- **Moves are confirmed before you hear about them.** Google results shift a little between runs, even minutes apart. By default a move is reported only when the next run shows it again, so a one-off jump does not ping your Slack; a real move reaches you one run later. Moves seen only once are listed in `pendingChanges`. In our test (10 searches, 12 domains, 4 runs a few minutes apart) this cut alerts by about 70%, but some still came from domains flickering around the last page you read (for example position 20). Turn off **Report a move only when it shows up in two runs in a row** to hear about every move at once.
- Do not run two runs with the same monitor name at the same time: both read the same previous results.
- **The previous results are stored only in your own Apify account** (a key-value store named after your monitor). The developer of this Actor does not keep them.
- Combine it with an Apify **schedule** to run daily or weekly.

### Measured results

Tested on Apify on 2026-11-20 and 2026-11-21 with this Actor:

| Test | Result |
|---|---|
| 99 different searches (trade + city, LinkedIn X-ray, "best ...", "how to ...", random Wikipedia titles and others), page 1 | **99 of 99** pages with results; 6 to 10 organic results per page (median 8) |
| Fields on those 822 results | Description 780 (95%), displayed URL 625 (76%), date 136 (17%) |
| People also ask / related searches | 62 and 63 of 99 pages |
| Ads | 16 ads on 5 of 99 pages (Google rarely shows ads to automated searches) |
| Google redirect links turned into real URLs | **595 of 813 (73%)**; the rest are returned as Google links with `urlResolved: false` |
| Rank tracking with 2 tracked domains, 10 searches, up to 5 pages | 39 pages read, **11 pages not read and not charged** because both domains were already found |
| Ranking alerts, 12 tracked domains, 10 searches, 4 runs a few minutes apart | Waiting for a second run cut alerts by about 70% |

### FAQ

**Why are some pages not delivered?** Google sometimes returns no results, or refuses a page. Those pages come back with a `status` and a `reason`, and are not charged. Run them again later.

**Why are some fields empty?** Dates, ads and People also ask appear only when Google shows them for that search.

**Why do I get fewer than 10 results on a page?** When Google adds a map, videos or People also ask, it shows 6 to 9 organic results instead of 10.

**Why is a URL a Google link?** Google sometimes answers the redirect with a check page instead of the destination. Those results keep Google's link and `urlResolved: false`; the domain is still filled from the displayed URL when possible.

**Can I get the AI Overview?** Not with this Actor. Google loads the AI Overview text separately after the page opens, so it is not in the results page we read.

**Can I switch from Apify's Google Search Results Scraper?** Yes for the common fields: send the same `queries`, `maxPagesPerQuery`, `countryCode`, `languageCode`, `searchLanguage`, `locationUule`, `site`, `forceExactMatch`, `quickDateRange` and the other filters. The main output fields (`searchQuery`, `organicResults`, `peopleAlsoAsk`, `relatedQueries`, `paidResults`) use the same names.

### Use it from AI agents

Available as a tool through [Apify's MCP server](https://mcp.apify.com).

- **Auth:** your Apify API token
- **Smallest input:** `{ "queries": "your search" }`
- **Output:** one row per results page with `organicResults` (position, title, url, domain, description)
- **Cost:** $0.004 per results page; empty or refused pages are free

### Support & feature requests

Found a bug, a missing field, or need another field or integration? Open an issue in the **Issues** tab. We add it to this Actor so you can use it right here on Apify. We aim to reply within one working day.

### Disclaimer

- This Actor reads only search results that Google shows to anyone without signing in.
- Results can contain people's names (for example X-ray searches). You are responsible for having a lawful reason to process personal data (GDPR and similar laws). The developer of this Actor is not the controller of the data you collect.
- This Actor is not affiliated with or endorsed by Google.

### Keywords

google search scraper, google serp scraper, serp api, google search api, google rank tracker, keyword rank checker, google search results scraper, people also ask scraper, site search, google x-ray search, serpapi alternative, google search results json

### Related Actors

- [Local Business Leads](https://apify.com/first-penguin/local-business-leads-monitor) – local businesses in Google Maps format
- [LinkedIn Company Scraper](https://apify.com/first-penguin/linkedin-company-scraper-monitor) – company data with change alerts
- [Google Ads Transparency Scraper](https://apify.com/first-penguin/google-ads-transparency-scraper-monitor) – Google ads with new-ad alerts

# Actor input Schema

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

One search per line. Plain words, Google operators (site:, intitle:, "exact phrase", -word) or a Google Search URL you copied from your browser (its country, language and date filters are kept). Duplicates are removed automatically.

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

How many results pages to read for each search. Each page has about 10 organic results. Positions continue across pages (page 2 starts at about 11).

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

Two-letter country code for the Google results, sent as Google's gl parameter, for example us, gb, de, se. Leave empty for Google's default.

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

Language of Google's interface (hl), for example en, de, fr. Affects labels and sometimes which results appear.

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

Only return pages written in this language (Google's lr parameter), for example de for German. Leave empty for all languages.

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

Google's uule code for a precise location, for example a city. Leave empty to use the country only.

## `fixLocation` (type: `boolean`):

Google changes results by location. When on and no exact location is set, every search uses the same city for its country (for example New York for us, London for gb), so rankings stay comparable between runs. Turn off to let Google pick.

## `trackDomains` (type: `array`):

Your domain and your competitors' domains, for example example.com. Each search gets a ranking row with the best position and ranking URL of every domain. Subdomains count (blog.example.com counts as example.com).

## `stopWhenTrackedFound` (type: `boolean`):

Saves money in rank tracking: once all tracked domains are found for a search, the remaining pages of that search are not read and not charged.

## `monitorChanges` (type: `boolean`):

Shows how each tracked domain moved since the last reported ranking with the same monitor name: up, down, new, dropped out, or a different ranking URL. Also lists domains that entered or left the top 10. The previous results are kept only in your own Apify account.

## `monitorName` (type: `string`):

Use a different name for each keyword list you track, for example one per client.

## `minRankChange` (type: `integer`):

Only report a tracked domain when it moved at least this many positions. Entering or dropping out is always reported.

## `confirmChanges` (type: `boolean`):

Google results move a little between runs even minutes apart. When on, a move is reported only if the next run shows it again, so one-off jumps do not trigger alerts (you hear about a real move one run later). Moves seen once are listed in pendingChanges. Turn off to report every move at once.

## `slackWebhookUrl` (type: `string`):

Get one message per run listing the ranking changes. Needs Compare with the previous run.

## `discordWebhookUrl` (type: `string`):

Same message, sent to a Discord channel.

## `webhookUrl` (type: `string`):

Receives the ranking changes as JSON (event rankings.changed).

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

Adds site: to every search, for example linkedin.com/in or example.com.

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

Adds related: to every search.

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

Wraps each search in quotes.

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

Adds intitle: for each word or phrase.

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

Adds intext: for each word or phrase.

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

Adds inurl: for each word.

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

Adds filetype:, for example pdf, docx, xlsx. Several types are combined with OR.

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

h (past hour), d (past day), w, m, y, optionally with a number: d7 = past 7 days, m6 = past 6 months.

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

YYYY-MM-DD or a relative value such as 8 days. Overrides Date range.

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

YYYY-MM-DD or a relative value such as 8 days. Overrides Date range.

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

Adds filter=0, which shows near-duplicate results Google normally hides.

## `resolveUrls` (type: `boolean`):

Google wraps result links in its own redirect. When on, each link is turned into the real page URL. When a link cannot be resolved, you get Google's link and urlResolved is false.

## `maxConcurrency` (type: `integer`):

How many searches run at the same time.

## Actor input object example

```json
{
  "queries": "best crm for small business\nplumber Leeds",
  "maxPagesPerQuery": 1,
  "countryCode": "us",
  "languageCode": "en",
  "fixLocation": true,
  "trackDomains": [],
  "stopWhenTrackedFound": true,
  "monitorChanges": false,
  "monitorName": "default",
  "minRankChange": 1,
  "confirmChanges": true,
  "forceExactMatch": false,
  "includeUnfilteredResults": false,
  "resolveUrls": true,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `pages` (type: `string`):

One row per Google results page: organic results, People also ask, related searches, ads, or the reason it was not delivered.

## `results` (type: `string`):

Every organic result as its own row with position, real URL and domain. Best for rank tracking and spreadsheets.

## `rankings` (type: `string`):

Best position and ranking URL of each tracked domain per search, and changes since the last run.

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

Pages delivered and charged, pages not delivered by reason, pages skipped because tracked domains were found, resolved URLs and notification errors.

# 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 crm for small business
plumber Leeds`
};

// Run the Actor and wait for it to finish
const run = await client.actor("first-penguin/google-search-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 crm for small business
plumber Leeds""" }

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

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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 crm for small business\\nplumber Leeds"
}' |
apify call first-penguin/google-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,first-penguin/google-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/U72Rxxjkkja8gU7dN/builds/HP0bBu46QbyswdzCL/openapi.json
