# Google Autocomplete Scraper - Long-Tail Keywords & Questions (`sonic_scraper/google-autocomplete-scraper`) Actor

Google Autocomplete scraper for keyword research: expand seed keywords into long-tail suggestions, question keywords, 'vs' comparisons, A-Z and 0-9 ideas for any country and language. Deduplicated, tagged by modifier and position. No API key.

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

## Pricing

from $0.70 / 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?

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 - Long-Tail Keywords & Question Ideas

Scrape Google Autocomplete suggestions in bulk and turn a few seed keywords into hundreds of **long-tail keywords, questions, comparisons, and modifiers** that people actually type into Google. No API key, no proxy needed for normal volumes. **$1.00 per 1,000 suggestions.**

![Google Autocomplete Scraper output in Apify: suggestion, seed, type, modifier, query sent, rank, geo](https://api.apify.com/v2/key-value-stores/lwQu1lCMCLQIIhSMQ/records/google-autocomplete-scraper-output.png)

*Real output from a default run of Google Autocomplete Scraper in Apify Console.*

### What can this Google Autocomplete scraper do?

- **Expand seed keywords** into Google search suggestions for any country (`geo`) and language.
- **Five expansion strategies** you can mix:
  - `questions` - how, what, why, when, where, who, which, can, is, does, should...
  - `prepositions` - for, with, without, near, like, to, app, tool, software, alternative, examples, tutorial
  - `alphabet` - "seed a" ... "seed z" (alphabet soup)
  - `numbers` - "seed 0" ... "seed 9" (models, years, lists)
  - `comparisons` - vs, or, versus, compared to (competitor discovery)
- **Deduplicate across the whole run** so every suggestion appears once.
- **Tag every suggestion** with its seed, the query that surfaced it, the modifier, and its position in the dropdown.
- **Bulk input** - paste seeds one per line or comma-separated.
- **Ready-to-paste outputs** - a flat `KEYWORDS` list and `KEYWORDS_BY_TYPE` grouping in the key-value store.

### What data can I extract?

One dataset row per suggestion:

| Field | Description |
|---|---|
| `seed` | The seed keyword you entered |
| `query` | The expanded query sent to Google Autocomplete |
| `suggestion` | The autocomplete suggestion (your long-tail keyword) |
| `modifier` | The modifier added to the seed, such as `how` or `vs` |
| `modifierType` | `seed`, `questions`, `prepositions`, `alphabet`, `numbers`, or `comparisons` |
| `position` | Position of the suggestion in Google's dropdown |
| `geo`, `language` | Country and language used |
| `source`, `fetchedAt` | Data source and timestamp |

The key-value store adds `SUMMARY` (queries sent, total and unique suggestions, top seeds), `KEYWORDS`, `KEYWORDS_BY_TYPE`, and `ERRORS`.

### How much does it cost?

Pay-per-event: **$0.001 per suggestion row** ($1.00 per 1,000), plus a tiny Actor-start fee. Turn on `dedupe` (default) so you only pay once per unique keyword, and use `maxSuggestionsPerQuery` and fewer expansion strategies to control volume. Example: one seed with `questions` + `comparisons` usually produces well under 200 unique suggestions. Check the Pricing tab for current rates.

### How to scrape Google Autocomplete keywords

1. Enter one or more seed keywords.
2. Pick expansion strategies (`questions`, `prepositions`, and `alphabet` are on by default).
3. Set the country and language.
4. Click **Start** and export results as CSV, Excel, JSON, or straight to Google Sheets.

### Input example

```json
{
  "keywords": ["ai seo tools", "standing desk"],
  "expansions": ["questions", "comparisons", "alphabet"],
  "geo": "US",
  "language": "en",
  "maxSuggestionsPerQuery": 10,
  "dedupe": true
}
```

### Output example

```json
{
  "seed": "standing desk",
  "query": "standing desk vs",
  "suggestion": "standing desk vs desk converter",
  "modifier": "vs",
  "modifierType": "comparisons",
  "position": 1,
  "geo": "US",
  "language": "en",
  "source": "google-autocomplete",
  "fetchedAt": "2026-10-25T10:00:00.000Z"
}
```

Illustrative output shape.

### Use cases

- **Long-tail SEO keyword research** - build topic clusters from real search phrasing.
- **FAQ and content briefs** - collect question keywords for H2s and FAQ sections.
- **PPC** - discover ad-group phrasings and negative keywords.
- **Competitor discovery** - "brand vs" and "brand alternative" suggestions show who buyers compare you with.
- **Local SEO** - "near" modifiers and country targeting reveal local intent.
- **Ecommerce** - product modifiers, sizes, and model numbers via `numbers` and `alphabet`.

### Integrations and API

Use the Apify API, schedules, webhooks, Make, Zapier, n8n, Google Sheets, or the Apify MCP server for AI agents.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("sonic_scraper/google-autocomplete-scraper").call(run_input={
    "keywords": ["ai seo tools"],
    "expansions": ["questions", "comparisons"],
})
keywords = {row["suggestion"] for row in client.dataset(run["defaultDatasetId"]).iterate_items()}
print(len(keywords), "unique long-tail keywords")
```

### FAQ

**Do I need a Google API key?** No. The default `http` mode uses Google's public suggest endpoint. A `serpapi` mode is available if you prefer your own SerpApi account.

**Does it return search volume?** No. Autocomplete shows what people type, not how often. Pair the output with a search-volume tool, or with the [Google Trends Scraper](https://apify.com/sonic_scraper/trendpulse-keyword-monitor) to check direction of interest.

**I'm getting rate limited.** Lower `maxConcurrency`, raise `requestDelayMs`, or enable Apify Proxy.

**Is it legal?** Autocomplete suggestions are public. Use the data in line with applicable law and Google's terms.

### Related Actors

- [Google Trends Scraper](https://apify.com/sonic_scraper/trendpulse-keyword-monitor) - interest over time, rising queries, breakouts.
- [Google AI Overview Tracker](https://apify.com/sonic_scraper/google-ai-overview-tracker) - see which of your keywords trigger AI Overviews and who gets cited.

# Changelog

This Actor's version history is a separate document: https://apify.com/sonic_scraper/google-autocomplete-scraper/changelog.md

# Actor input Schema

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

Seed keywords to expand. You can also paste them as text below.

## `keywordsText` (type: `string`):

Paste one seed per line or comma-separated.

## `expansions` (type: `array`):

Which query expansions to run per seed. More strategies = more keywords but more requests.

## `geo` (type: `string`):

Google country code, e.g. US, GB, CA, FR, DE.

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

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

## `maxKeywords` (type: `integer`):

Maximum number of seed keywords to process.

## `maxSuggestionsPerQuery` (type: `integer`):

Cap on suggestions kept from each autocomplete query.

## `dedupe` (type: `boolean`):

Keep only the first occurrence of each unique suggestion across the whole run.

## `fetchMode` (type: `string`):

'http' uses Google's public suggest endpoint (no key, recommended). 'serpapi' uses your SerpApi key for higher-volume reliability.

## `serpApiKey` (type: `string`):

Only needed when fetchMode is 'serpapi'. Get a free key at https://serpapi.com. Never logged.

## `requestDelayMs` (type: `integer`):

Delay between requests. Raise if you hit rate limits.

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

Parallel requests. Lower if you see 429s.

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

Optional. Use Apify Proxy for high-volume runs to avoid rate limits.

## `debugMode` (type: `boolean`):

Verbose logging.

## Actor input object example

```json
{
  "keywords": [
    "ai seo tools",
    "content marketing"
  ],
  "expansions": [
    "questions",
    "prepositions",
    "alphabet"
  ],
  "geo": "US",
  "language": "en",
  "maxKeywords": 100,
  "maxSuggestionsPerQuery": 10,
  "dedupe": true,
  "fetchMode": "http",
  "requestDelayMs": 300,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debugMode": false
}
```

# Actor output Schema

## `suggestions` (type: `string`):

One row per suggestion: suggestion, seed, modifier type, query, rank.

## `keywords` (type: `string`):

Deduplicated list of every suggestion — ready to paste into other tools.

## `keywordsByType` (type: `string`):

Suggestions bucketed by expansion type (questions, prepositions, etc.).

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

Totals, unique count, and top seeds by volume.

## `errors` (type: `string`):

Queries that failed, with error messages.

# 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": [
        "ai seo tools",
        "content marketing"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sonic_scraper/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": [
        "ai seo tools",
        "content marketing",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("sonic_scraper/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": [
    "ai seo tools",
    "content marketing"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call sonic_scraper/google-autocomplete-scraper --silent --output-dataset

```

## MCP server setup

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