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

🚀 Google Search Engine Scraper API – Extract real-time Google search results easily. Get organic results, paid ads, People Also Ask, Related Queries, reviews, and prices. Supports 25+ languages & 21+ countries. Export structured results in JSON, Excel, or CSV for SEO & market research.

- **URL**: https://apify.com/datascoutapi/google-search-results-scraper.md
- **Developed by:** [halam](https://apify.com/datascoutapi) (community)
- **Categories:** SEO tools, Developer tools, Lead generation
- **Stats:** 380 total users, 4 monthly users, 100.0% runs succeeded, 6 bookmarks
- **User rating**: 3.55 out of 5 stars

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Results Scraper - Apify

Get Authentic Google Search Results from 21+ Countries in 25+ Languages

Our Google Search Results Scraper makes it incredibly easy to extract search results from Google across different countries and languages. Whether you're conducting market research, monitoring competitors, or gathering content ideas, this actor delivers reliable, localized search results without the complexity of managing proxies or handling anti-bot measures.

### Why Choose This Google Search Results Scraper?

#### 🌍 True Global Reach

Access authentic search results from 21 different countries including the United States, United Kingdom, Germany, Japan, South Korea, Russia, Saudi Arabia, and many more. Each country provides genuine localized results that reflect what users in that region actually see when they search.

#### 🗣️ Multi-Language Intelligence

With support for 25+ languages and automatic language detection, you can search in English, Spanish, French, German, Chinese, Japanese, Korean, Arabic, Russian, and dozens of other languages. The system automatically detects your content's language and selects the best country for authentic regional results.

#### ⚡ Smart Content Processing

Instead of manually creating search queries, simply provide your content and let our intelligent system handle the rest. Long texts are automatically split into optimal search chunks (1-16 words), ensuring you get the most relevant results for every part of your content.

#### 🚀 High Performance

Built for speed and reliability, this actor processes multiple searches simultaneously and delivers results quickly. Perfect for both small research projects and large-scale data collection needs.

### How It Works

This actor simplifies Google search scraping by handling all the technical complexity behind the scenes. You provide your search content, choose your preferences, and receive organized, ranked results.

The Process:

1. **Content Analysis** - Your input is analyzed and intelligently processed
2. **Smart Chunking** - Long content is automatically broken into optimal search segments
3. **Multi-Regional Search** - Searches are performed across your selected countries/languages
4. **Result Organization** - All results are ranked and organized by relevance
5. **Clean Output** - You receive structured data ready for analysis

### Supported Languages

Our actor supports 25+ languages with intelligent detection:
English, Spanish, French, German, Italian, Portuguese, Russian, Chinese, Japanese, Korean, Arabic, Hindi, Dutch, Swedish, Polish, Turkish, Czech, Danish, Finnish, Greek, Hebrew, Indonesian, Malay, Thai, Vietnamese, and more.

### Input Options

The actor supports three input formats. **Please use only one of the following formats per task:**

#### 1️⃣ Content Example

**Input:**

```json
{
  "content": "Artificial Intelligence"
}
```

**Output (truncated):**

```json
[
  {
    "chunk": "Artificial Intelligence",
    "resultCount": 10
  },
  {
    "rank": 1,
    "title": "What is Artificial Intelligence? | IBM",
    "url": "https://www.ibm.com/topics/artificial-intelligence",
    "description": "Artificial intelligence (AI) is technology that enables computers to perform tasks that typically require human intelligence.",
    "chunk": "Artificial Intelligence",
    "country": "United States",
    "engine": "Google.com",
    "sourcesFound": 10,
    "success": true,
    "error": null
  }
]
```

#### 2️⃣ Queries Example

**Input:**

```json
{
  "queries": ["what is artificial intelligence?"]
}
```

**Output (truncated):**

```json
[
  {
    "chunk": "what is artificial intelligence?",
    "resultCount": 10
  },
  {
    "rank": 1,
    "title": "What is artificial intelligence? | IBM",
    "url": "https://www.ibm.com/topics/artificial-intelligence",
    "description": "Artificial intelligence (AI) is technology that enables computers to perform tasks that typically require human intelligence.",
    "chunk": "what is artificial intelligence?",
    "country": "United States",
    "engine": "Google.com",
    "sourcesFound": 10,
    "success": true,
    "error": null
  }
]
```

#### 3️⃣ Texts Example

**Input:**

```json
{
  "texts": [
    "Artificial Intelligence is the simulation of human intelligence in machines that are programmed to think and learn."
  ]
}
```

**Output (truncated):**

```json
[
  {
    "chunk": "Artificial Intelligence is the simulation of human intelligence in machines that are programmed to t...",
    "resultCount": 10
  },
  {
    "rank": 1,
    "title": "AI Explained - AI Leadership Council",
    "url": "https://aihub.uga.edu/ai-explained/",
    "description": "AI is technology that enables computers and machines to simulate human learning, comprehension, problem solving, decision making, creativity and autonomy.",
    "chunk": "Artificial Intelligence is the simulation of human intelligence in machines that are programmed to t...",
    "country": "United States",
    "engine": "Google.com",
    "sourcesFound": 10,
    "success": true,
    "error": null
  }
]
```

**⚠️ Important:** Please use only one input format per task:

- Use `content` for a single piece of content that will be automatically chunked
- Use `queries` for an array of separate search queries
- Use `texts` for an array of longer texts that will be automatically chunked

Using multiple input formats in the same task will result in only one being processed, which may not be the one you intended.

#### Parameters:

- `maxResultsPerChunk`: Maximum results to return per chunk (0 for unlimited, default: 10, maximum: 100)
- `language`: Auto-detect language or select specific language for search results ('auto' for automatic detection)
- `country`: Select country for authentic regional search results ('auto' for auto-selection based on language)

#### Language and Country Selection:

- **Auto Detection**: When language is set to "Auto Detect", the system will automatically detect the language of your content and select an appropriate country for authentic regional results.
- **Manual Selection**: You can manually select both language and country from the dropdowns for specific regional targeting.
- **Smart Combination**: When language is manually selected and country is set to "Auto Select", the system will choose the most relevant country for your selected language.

#### Additional Features:

- **Intelligent Chunking**: Automatically processes content by splitting it into optimal chunks of 1-16 words for best search results
- **Chunk Ranking**: Results are ranked within each chunk for easy identification of most relevant sources
- **Multi-format Support**: Accepts single content, multiple queries, or multiple long texts in a single request
- **Flexible Results**: Control the number of results per chunk with maxResultsPerChunk parameter

### 📊 Output Format

The actor returns results in an organized JSON structure. Each response includes:

- **Chunk Information** – Every unique search chunk from the original text with the number of results found.
- **Ranked Results** – Each chunk returns ranked results (rank: 1, 2, 3…) with title, URL, and description.
- **Filtered Chunks** – Only chunks with 1–16 words are processed (longer ones are automatically filtered out).

#### 1️⃣ Single Keyword Example

**Input:**

```json
{
  "content": "iPhone"
}
```

**Output (truncated):**

```json
[
  {
    "chunk": "iPhone",
    "resultCount": 10
  },
  {
    "rank": 1,
    "title": "iPhone - Apple",
    "url": "https://www.apple.com/iphone/",
    "description": "Explore the full lineup of iPhone. Choose the best iPhone for you, with trade-in savings and carrier deals.",
    "chunk": "iPhone",
    "country": "United States",
    "engine": "Google.com",
    "sourcesFound": 10,
    "success": true,
    "error": null
  }
]
```

#### 2️⃣ Single Long-Tail Keyword Example

**Input:**

```json
{
  "queries": ["artificial intelligence"]
}
```

**Output (truncated):**

```json
[
  {
    "chunk": "what is artificial intelligence?",
    "resultCount": 10
  },
  {
    "rank": 1,
    "title": "What is artificial intelligence? | IBM",
    "url": "https://www.ibm.com/topics/artificial-intelligence",
    "description": "Artificial intelligence (AI) is technology that enables computers to perform tasks that typically require human intelligence.",
    "chunk": "what is artificial intelligence?",
    "country": "United States",
    "engine": "Google.com",
    "sourcesFound": 10,
    "success": true,
    "error": null
  }
]
```

#### 3️⃣ Multiple Long-Tail Content Example

**Input:**

```json
{
  "texts": [
    "Artificial Intelligence is the simulation of human intelligence in machines that are programmed to think and learn."
  ]
}
```

**Output (truncated):**

```json
[
  {
    "chunk": "Artificial Intelligence is the simulation of human intelligence in machines that are programmed to t...",
    "resultCount": 10
  },
  {
    "rank": 1,
    "title": "AI Explained - AI Leadership Council",
    "url": "https://aihub.uga.edu/ai-explained/",
    "description": "AI is technology that enables computers and machines to simulate human learning, comprehension, problem solving, decision making, creativity and autonomy.",
    "chunk": "Artificial Intelligence is the simulation of human intelligence in machines that are programmed to t...",
    "country": "United States",
    "engine": "Google.com",
    "sourcesFound": 10,
    "success": true,
    "error": null
  }
]
```

### 🌍 Multi-Language Results

The actor automatically detects and fetches results from the localized Google domain.

##### 🇷🇺 Russian (Google.ru)

```json
{
  "rank": 1,
  "title": "Искусственный интеллект — Википедия",
  "url": "https://ru.wikipedia.org/wiki/Искусственный_интеллект",
  "description": "Искусственный интеллект (ИИ) — раздел информатики, изучающий методы создания систем...",
  "country": "Russia",
  "engine": "Google.ru"
}
```

##### 🇯🇵 Japanese (Google.jp)

```json
{
  "rank": 1,
  "title": "人工知能 - Wikipedia",
  "url": "https://ja.wikipedia.org/wiki/人工知能",
  "description": "人工知能（AI）は、人間の知能を模倣するコンピュータシステムのことを指します。",
  "country": "Japan",
  "engine": "Google.jp"
}
```

##### 🇪🇸 Spanish (Google.es)

```json
{
  "rank": 1,
  "title": "Inteligencia artificial - Wikipedia",
  "url": "https://es.wikipedia.org/wiki/Inteligencia_artificial",
  "description": "La inteligencia artificial (IA) es la capacidad de los sistemas computacionales para realizar tareas propias de la inteligencia humana.",
  "country": "Spain",
  "engine": "Google.es"
}
```

##### 🇩🇪 German (Google.de)

```json
{
  "rank": 1,
  "title": "Künstliche Intelligenz – Wikipedia",
  "url": "https://de.wikipedia.org/wiki/Künstliche_Intelligenz",
  "description": "Künstliche Intelligenz (KI) bezeichnet die Nachbildung von Aspekten der menschlichen Intelligenz durch Maschinen.",
  "country": "Germany",
  "engine": "Google.de"
}
```

##### 🇫🇷 French (Google.fr)

```json
{
  "rank": 1,
  "title": "Intelligence artificielle — Wikipédia",
  "url": "https://fr.wikipedia.org/wiki/Intelligence_artificielle",
  "description": "L'intelligence artificielle (IA) est la mise en œuvre de techniques visant à permettre aux machines d'imiter l'intelligence humaine.",
  "country": "France",
  "engine": "Google.fr"
}
```

##### 🇵🇹 Portuguese (Google.pt)

```json
{
  "rank": 1,
  "title": "Inteligência artificial – Wikipédia",
  "url": "https://pt.wikipedia.org/wiki/Intelig%C3%AAncia_artificial",
  "description": "A inteligência artificial (IA) é a capacidade dos sistemas de realizarem tarefas que normalmente requerem inteligência humana.",
  "country": "Portugal",
  "engine": "Google.pt"
}
```

##### 🇨🇳 Chinese (Google.com.hk)

```json
{
  "rank": 1,
  "title": "人工智能 - 维基百科",
  "url": "https://zh.wikipedia.org/wiki/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD",
  "description": "人工智能（AI）是研究如何使计算机系统能够执行通常需要人类智慧的任务的领域。",
  "country": "China (HK)",
  "engine": "Google.com.hk"
}
```

##### 🇮🇳 Hindi (Google.co.in)

```json
{
  "rank": 1,
  "title": "कृत्रिम बुद्धिमत्ता - विकिपीडिया",
  "url": "https://hi.wikipedia.org/wiki/%E0%A4%95%E0%A5%83%E0%A4%A4%E0%A5%8D%E0%A4%B0%E0%A4%BF%E0%A4%AE_%E0%A4%AC%E0%A5%81%E0%A4%A6%E0%A5%8D%E0%A4%A7%E0%A4%BF%E0%A4%AE%E0%A4%A4%E0%A5%8D%E0%A4%A4%E0%A4%BE",
  "description": "कृत्रिम बुद्धिमत्ता (AI) वह क्षेत्र है जिसमें मशीनों को मानवीय सोच और निर्णय लेने की क्षमता दी जाती है।",
  "country": "India",
  "engine": "Google.co.in"
}
```

##### 🇸🇦 Arabic (Google.ae)

```json
{
  "rank": 1,
  "title": "الذكاء الاصطناعي - ويكيبيديا",
  "url": "https://ar.wikipedia.org/wiki/%D8%A7%D9%84%D8%B0%D9%83%D8%A7%D8%A1_%D8%A7%D9%84%D8%A7%D8%B5%D8%B7%D9%86%D8%A7%D8%B9%D9%8A",
  "description": "الذكاء الاصطناعي (AI) هو فرع من علوم الحاسوب يهدف إلى إنشاء أنظمة قادرة على محاكاة الذكاء البشري.",
  "country": "UAE",
  "engine": "Google.ae"
}
```

##### 🇹🇷 Turkish (Google.com.tr)

```json
{
  "rank": 1,
  "title": "Yapay zekâ - Vikipedi",
  "url": "https://tr.wikipedia.org/wiki/Yapay_zek%C3%A2",
  "description": "Yapay zekâ (YZ) makinelerin insan zekâsını taklit edebilme yeteneğini inceleyen bilim dalıdır.",
  "country": "Turkey",
  "engine": "Google.com.tr"
}
```

##### 🇰🇷 Korean (Google.co.kr)

```json
{
  "rank": 1,
  "title": "인공지능 - 위키백과",
  "url": "https://ko.wikipedia.org/wiki/%EC%9D%B8%EA%B3%B5%EC%A7%80%EB%8A%A5",
  "description": "인공지능(AI)은 인간의 지능을 기계로 모방하려는 연구 분야이다.",
  "country": "South Korea",
  "engine": "Google.co.kr"
}
```

##### 🇮🇹 Italian (Google.it)

```json
{
  "rank": 1,
  "title": "Intelligenza artificiale - Wikipedia",
  "url": "https://it.wikipedia.org/wiki/Intelligenza_artificiale",
  "description": "L'intelligenza artificiale (IA) è la disciplina che studia la progettazione di sistemi in grado di imitare l'intelligenza umana.",
  "country": "Italy",
  "engine": "Google.it"
}
```

##### 🇳🇱 Dutch (Google.nl)

```json
{
  "rank": 1,
  "title": "Kunstmatige intelligentie - Wikipedia",
  "url": "https://nl.wikipedia.org/wiki/Kunstmatige_intelligentie",
  "description": "Kunstmatige intelligentie (KI) is het vakgebied dat zich bezighoudt met systemen die taken kunnen uitvoeren waarvoor menselijke intelligentie nodig is.",
  "country": "Netherlands",
  "engine": "Google.nl"
}
```

##### 🇵🇱 Polish (Google.pl)

```json
{
  "rank": 1,
  "title": "Sztuczna inteligencja – Wikipedia",
  "url": "https://pl.wikipedia.org/wiki/Sztuczna_inteligencja",
  "description": "Sztuczna inteligencja (AI) to dziedzina zajmująca się tworzeniem systemów naśladujących ludzką inteligencję.",
  "country": "Poland",
  "engine": "Google.pl"
}
```

### Usage

1. Add your search content using one of the input formats above
2. Set maxResultsPerChunk to control how many results per chunk (default: 10, minimum: 1)
3. Run the actor
4. Collect your organized search results from the dataset

This actor is perfect for when you need reliable, high-quality Google search results without managing the complex infrastructure required for web scraping. It's especially useful for processing long texts that need to be automatically chunked and searched. The intelligent chunking ensures optimal search queries (1-16 words) for the best results, allowing even single-word searches like "grammarly" to work effectively.

***

### 📬 Contact & Support

Need help or have questions?
Reach us at: datascoutapi@gmail.com

# Actor input Schema

## `query` (type: `array`):

Add your search queries - click + to add more

## `maxResultsPerChunk` (type: `integer`):

Maximum results to return per chunk (0 for unlimited, default: 10)

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

Auto-detect language or select specific language for search results. When set to 'auto', the system will automatically detect the language of your content and select an appropriate country for authentic regional results.

## `country` (type: `string`):

Select country for authentic regional search results. When language is set to 'Auto Detect', the system will automatically select an appropriate country based on the detected language. When set to 'auto', the system will choose the most relevant country for your selected language.

## Actor input object example

```json
{
  "query": [
    "Artificial Intelligence"
  ],
  "maxResultsPerChunk": 10,
  "language": "auto",
  "country": "auto"
}
```

# 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": [
        "Artificial Intelligence"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascoutapi/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 = { "query": ["Artificial Intelligence"] }

# Run the Actor and wait for it to finish
run = client.actor("datascoutapi/google-search-results-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 '{
  "query": [
    "Artificial Intelligence"
  ]
}' |
apify call datascoutapi/google-search-results-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascoutapi/google-search-results-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/2hzltwaDGpyFFirgn/builds/boAf6QMIjtjtzmjd7/openapi.json
