# Google Autocomplete Scraper: Keyword Suggestions & Questions (`whosandrw/google-autocomplete-scraper`) Actor

Google Autocomplete scraper for keyword research: suggestions from Google, YouTube, Bing, Amazon, Google Shopping and DuckDuckGo for any country and language. A-Z, question and preposition expansion. Export keyword ideas to CSV, Excel or JSON.

- **URL**: https://apify.com/whosandrw/google-autocomplete-scraper.md
- **Developed by:** [Felipe Moncada](https://apify.com/whosandrw) (community)
- **Categories:** SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 suggestions

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?

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 Autocomplete Scraper — Keyword Suggestions from Google, YouTube, Amazon & Bing

**Google Autocomplete Scraper** turns any keyword into hundreds of **real search suggestions**: the phrases Google, YouTube, Bing, Amazon, Google Shopping and DuckDuckGo show while people type. Use it for **keyword research**, **long-tail keyword ideas**, **"People also ask"-style questions**, YouTube video ideas and Amazon product keywords, for **any country and language**. Export to **CSV, Excel or JSON**, or call it as a **Google Autocomplete API**.

> 🇪🇸 **¿Hablas español?** [Ver la guía en español ↓](#-sugerencias-de-google-autocompletar-para-investigación-de-palabras-clave)

### Why this Google Autocomplete scraper

- ✅ **6 sources in one run:** Google Search, YouTube, Google Shopping, Bing, DuckDuckGo and Amazon.
- ✅ **Built-in keyword expansion:** A–Z (`keyword a`, `keyword b`…), 0–9, **questions** (how, what, why…) and **prepositions** (for, with, vs, near…), in English, Spanish, Portuguese, French, German and Italian.
- ✅ **Long-tail mode:** set *Depth* to also get the suggestions of every suggestion.
- ✅ **Any country and language:** `US`/`en`, `MX`/`es`, `BR`/`pt`, `DE`/`de`… suggestions are local.
- ✅ **No duplicates, no surprises:** each suggestion is returned once, and you only pay for suggestions you receive. Failed queries are never charged.
- ✅ **Fast and cheap:** plain HTTP requests, no browser. A 300-suggestion run takes seconds.

### What data you get

| Field | Description |
|---|---|
| `keyword` | The seed keyword you entered |
| `suggestion` | The autocomplete suggestion (your keyword idea) |
| `source` | `google`, `youtube`, `google-shopping`, `bing`, `duckduckgo` or `amazon` |
| `expansion` / `modifier` | How it was found: `base`, `alphabet` (+ letter), `questions` (+ word), `prepositions`, `deep` |
| `position` | Position in the suggestion list (1 = first shown) |
| `wordCount` | Number of words (filter long-tail keywords) |
| `country`, `language`, `query`, `depth`, `scrapedAt` | Context of the request |

### How to scrape Google Autocomplete suggestions

1. Click **Try for free**.
2. Type one or more **Keywords**.
3. Choose the **sources** (Google is the default) and the **Keyword expansion** you want.
4. Set **Country** and **Language**.
5. Click **Start** and download the suggestions from **Output** as CSV, Excel or JSON.

#### Input example

```json
{
  "keywords": ["email marketing", "crm software"],
  "sources": ["google", "youtube"],
  "expand": ["alphabet", "questions"],
  "country": "US",
  "language": "en"
}
```

#### Output example

```json
{
  "keyword": "email marketing",
  "suggestion": "how to do email marketing for free",
  "source": "google",
  "country": "US",
  "language": "en",
  "expansion": "questions",
  "modifier": "how",
  "query": "how email marketing",
  "position": 3,
  "depth": 0,
  "wordCount": 7,
  "scrapedAt": "2026-11-14T10:00:00Z"
}
```

### Use cases

- **SEO keyword research:** find long-tail keywords and questions to target with content.
- **Content and YouTube ideas:** see what people ask about a topic, in their own words.
- **Amazon and e-commerce keywords:** product search terms for listings and PPC campaigns.
- **PPC / Google Ads:** build keyword and negative keyword lists.
- **Market research:** compare what people search for across countries and languages.

### How much does it cost to scrape Google Autocomplete?

**$1 per 1,000 suggestions** ($0.001 each), with discounts on paid Apify plans. Examples:

- One keyword, Google only, no expansion: about 10–15 suggestions ≈ **$0.01**
- One keyword with A–Z expansion on Google: about 250–350 suggestions ≈ **$0.30**
- You can set a **maximum cost per run** in the Apify Console, and *Max suggestions per keyword* in the input.

### Use it as a Google Autocomplete API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("whosandrw/google-autocomplete-scraper").call(run_input={
    "keywords": ["email marketing"], "sources": ["google"], "expand": ["questions"],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["suggestion"])
```

Works with **Make, Zapier, n8n, Google Sheets** and AI agents through Apify integrations.

### FAQ

#### How many suggestions will I get per keyword?

Each autocomplete request returns up to 10–20 suggestions. Expansion multiplies that: A–Z sends 26 extra requests per keyword, questions about 10, and *Depth* asks again for every suggestion found.

#### Does it return search volume?

No. Autocomplete shows *what* people search, ordered by popularity (`position`), but not the monthly volume. To compare the popularity of keywords over time, use the **[Google Trends Scraper](https://apify.com/whosandrw/google-trends-scraper)**.

#### Do I need proxies?

The default Apify Proxy is enough. If a source rate-limits a request, it is retried automatically from a new IP.

#### Is it legal to scrape Google Autocomplete?

The Actor only reads public suggestion endpoints and collects no personal data. You are responsible for how you use the data.

### Related Actors

- **[Google Trends Scraper](https://apify.com/whosandrw/google-trends-scraper)** — interest over time, by region and related queries; compare unlimited keywords on one scale.
- **[Amazon Best Sellers Scraper](https://apify.com/whosandrw/amazon-bestsellers-scraper)** — top 100 products per category on 20+ Amazon marketplaces.
- **[Google News Scraper](https://apify.com/whosandrw/google-news-scraper)** — news articles by keyword, topic and date range in any country.

Found a problem or need a field? Open a ticket in the **Issues** tab (English or Spanish). We usually answer within a day.

***

### 🇪🇸 Sugerencias de Google Autocompletar para investigación de palabras clave

Convierte cualquier palabra clave en cientos de **sugerencias reales de búsqueda**: lo que Google, YouTube, Bing, Amazon, Google Shopping y DuckDuckGo muestran mientras la gente escribe. Ideal para **investigación de palabras clave (SEO)**, ideas de contenido, preguntas frecuentes, ideas de videos y palabras clave de productos en Amazon, para **cualquier país e idioma** (México, Colombia, Argentina, España…). Descárgalo en **Excel / CSV** o úsalo como API.

#### Cómo usarlo

1. Haz clic en **Try for free**.
2. Escribe tus **palabras clave**.
3. Elige las fuentes y la **expansión**: A–Z, **preguntas** (cómo, qué, por qué, cuándo…) y **preposiciones** (para, con, sin, cerca de…).
4. Pon **Country** `MX`, `CO`, `ES`… y **Language** `es`.
5. Haz clic en **Start** y descarga los resultados desde **Output**.

```json
{
  "keywords": ["zapatos para correr"],
  "sources": ["google", "youtube", "amazon"],
  "expand": ["alphabet", "questions"],
  "country": "MX",
  "language": "es"
}
```

**Precio:** US$1 por cada 1.000 sugerencias. Solo pagas por las sugerencias que recibes.

**¿Soporte en español?** Sí, abre un ticket en la pestaña **Issues** en español o en inglés.

# Actor input Schema

## `keywords` (type: `array`):

Seed keywords. Each one is sent to the autocomplete of every selected source, and you get back the suggestions people actually see when they type it.

## `sources` (type: `array`):

Where to get suggestions from. Google = web search; YouTube = video ideas; Amazon and Google Shopping = product keywords; Bing and DuckDuckGo = extra variations.

## `expand` (type: `array`):

Get many more suggestions per keyword. A-Z adds every letter after the keyword (keyword a, keyword b...). Questions adds how, what, why... before it. Prepositions adds for, with, vs, near... after it. Question and preposition words follow the selected language (English, Spanish, Portuguese, French, German, Italian).

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

Two-letter country code: suggestions are the ones shown to people in that country. Examples: US, GB, CA, AU, IN, DE, FR, ES, MX, CO, AR, BR.

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

Two-letter language code of the suggestions. Examples: en, es, pt, fr, de, it.

## `depth` (type: `integer`):

0 = only suggestions of your keywords. 1 = also ask the autocomplete for every suggestion found (long-tail keywords). 2 = two levels deep. Use Max suggestions per keyword to control cost.

## `maxSuggestionsPerKeyword` (type: `integer`):

Stop after this many suggestions for each keyword in each source. 0 = no limit.

## `deduplicate` (type: `boolean`):

Return each suggestion once per keyword and source, even if several expansions find it. You are only charged for the suggestions returned.

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

The default Apify Proxy is enough. If a source rate-limits, the request is retried from a new IP.

## Actor input object example

```json
{
  "keywords": [
    "email marketing"
  ],
  "sources": [
    "google"
  ],
  "expand": [
    "questions"
  ],
  "country": "US",
  "language": "en",
  "depth": 0,
  "maxSuggestionsPerKeyword": 0,
  "deduplicate": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Seed keyword, suggestion, source, expansion, position and word count.

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

Every field, including the exact query sent and the scrape time.

# 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 = {
    "keywords": [
        "email marketing"
    ],
    "sources": [
        "google"
    ],
    "expand": [
        "questions"
    ],
    "country": "US",
    "language": "en",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("whosandrw/google-autocomplete-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 = {
    "keywords": ["email marketing"],
    "sources": ["google"],
    "expand": ["questions"],
    "country": "US",
    "language": "en",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("whosandrw/google-autocomplete-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 '{
  "keywords": [
    "email marketing"
  ],
  "sources": [
    "google"
  ],
  "expand": [
    "questions"
  ],
  "country": "US",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call whosandrw/google-autocomplete-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,whosandrw/google-autocomplete-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/5zajZe5Ek0ZQkPO6c/builds/o9Nd5N0ohW53zkHZU/openapi.json
