# Google Search Scraper — Organic Results & SERP Data Extractor (`maged120/google-search`) Actor

Scrape Google organic search results for any query. Returns titles, URLs, snippets, and result positions — no Google Search API key or quota needed.

- **URL**: https://apify.com/maged120/google-search.md
- **Developed by:** [Maged](https://apify.com/maged120) (community)
- **Categories:** SEO tools, Automation
- **Stats:** 16 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### What does Google Search Scraper do?

**Google Search Scraper** extracts organic search results from Google for any keyword — titles, URLs, snippets, and result positions — without a Google Search API key or quota limits.

This Actor runs on the [Apify platform](https://apify.com). Use it for SEO research, SERP monitoring, competitor analysis, or building search-result datasets.

### Why use Google Search Scraper?

- **No Google API key** — bypass Google Custom Search API's 100 queries/day free limit
- **True organic results** — get the same results a real user sees
- **Batch searches** — run hundreds of queries in one Actor run
- **Full SERP data** — position, title, URL, snippet, and rich result indicators
- **SEO research** — track rankings, find featured snippets, analyze competitor visibility

### How to use Google Search Scraper

1. Open the Actor and click **Try for free**
2. Enter search queries in the `queries` field
3. Set number of results, language, and country
4. Click **Start** — SERP data appears in the Output tab
5. Download as JSON or CSV

### Input

```json
{
  "queries": ["best python web scraping library", "apify vs scrapy"],
  "maxResults": 10,
  "language": "en",
  "country": "us"
}
```

| Field | Type | Description | Default |
|---|---|---|---|
| `queries` | array | Search keywords | required |
| `maxResults` | integer | Results per query | `10` |
| `language` | string | Results language code | `en` |
| `country` | string | Country for localized results | `us` |

### Output

```json
{
  "query": "best python web scraping library",
  "position": 1,
  "title": "Scrapy vs. Beautiful Soup vs. Selenium: Which Is Best?",
  "url": "https://example.com/scrapy-vs-beautifulsoup",
  "snippet": "We compare the top Python scraping libraries to help you choose...",
  "domain": "example.com"
}
```

### Output fields

| Field | Type | Description |
|---|---|---|
| `query` | string | Search query |
| `position` | number | Ranking position (1 = first result) |
| `title` | string | Result title |
| `url` | string | Result URL |
| `snippet` | string | Result description snippet |
| `domain` | string | Root domain of the result |

### Cost

| Volume | Estimated cost |
|---|---|
| 100 queries × 10 results | ~$0.05–$0.50 |
| 1,000 queries | ~$0.50–$5.00 |

### FAQ

**Does this include ads?**
The Actor returns organic results only — paid ads are excluded.

**Is this Actor maintained?**
Yes. Report bugs or feature requests in the Issues tab.

**Need help or have questions?**
Open an issue in the Issues tab or reach out on Discord: **maged03211**

# Actor input Schema

## `query` (type: `string`):

The search query to look for

## `debug_html` (type: `boolean`):

Saves the raw Google HTML to the key-value store as serp.html. Useful for diagnosing parsing problems after Google changes its markup.

## `google_domain` (type: `string`):

Google country domain to search. Google SERP proxy selects the country by domain, so use google.co.uk for the UK, google.de for Germany, etc.

## `search_type` (type: `string`):

Type of search (e.g. 'web', 'images', 'news')

## `results_per_page` (type: `integer`):

Number of results per page

## `pages` (type: `integer`):

How many pages to crawl from search results

## `start_page` (type: `integer`):

Page number to start crawling from

## `unique_urls` (type: `boolean`):

Return only unique URLs

## `unique_domains` (type: `boolean`):

Return only unique domains

## `language` (type: `string`):

Restrict results to a specific language (e.g. 'en')

## `region` (type: `string`):

Restrict results to a specific region (e.g. 'US')

## `last_update` (type: `string`):

Restrict results to a certain update period (e.g. 'day', 'week', 'month', 'year')

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

Restrict results to a specific site

## `custom_url` (type: `string`):

overrides most of the other filters, this is for advanced users who know how to use google search params and filters from the url directly

## `all_words` (type: `string`):

All these words must appear in results

## `exact_phrase` (type: `string`):

Exact phrase to appear in results

## `any_words` (type: `string`):

Any of these words can appear in results

## `none_words` (type: `string`):

None of these words should appear in results

## `numbers_from` (type: `integer`):

Minimum number value to appear in results (normally used for price lookup)

## `numbers_to` (type: `integer`):

Maximum number value to appear in results (normally used for price lookup)

## `terms_appearing` (type: `string`):

Where terms should appear (e.g. 'any', 'title', 'url', 'body')

## `file_type` (type: `string`):

Restrict results to a specific file type (e.g. 'pdf')

## `safe_search` (type: `boolean`):

Enable safe search filtering

## `from_date` (type: `string`):

Restrict results from this date (YYYY-MM-DD)

## `to_date` (type: `string`):

Restrict results up to this date (YYYY-MM-DD)

## `custom_tbs` (type: `string`):

Custom Google TBS parameter this is also for advanced users who know what tbs param is

## `delay` (type: `string`):

Min and max delay between requests, e.g. 0.6,0.9

## Actor input object example

```json
{
  "query": "python scraping",
  "debug_html": false,
  "google_domain": "google.com",
  "search_type": "web",
  "results_per_page": 10,
  "pages": 1,
  "start_page": 1,
  "unique_urls": false,
  "unique_domains": false,
  "safe_search": true,
  "delay": "0.6,0.9"
}
```

# 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 = {
    "query": "python scraping",
    "delay": "0.6,0.9"
};

// Run the Actor and wait for it to finish
const run = await client.actor("maged120/google-search").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 = {
    "query": "python scraping",
    "delay": "0.6,0.9",
}

# Run the Actor and wait for it to finish
run = client.actor("maged120/google-search").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 '{
  "query": "python scraping",
  "delay": "0.6,0.9"
}' |
apify call maged120/google-search --silent --output-dataset

```

## MCP server setup

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

```

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/0lSkwff1AkW8emNkz/builds/HSuNTbMuQzLy7MaeW/openapi.json
