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

Keyword ideas from Google autocomplete for web search, YouTube, Shopping, News and Images. Expands each keyword with a-z, 0-9, question words and prepositions, any language and country. One flat row per unique suggestion. Follows robots.txt; blocked requests are free.

- **URL**: https://apify.com/dottti/google-autocomplete-keywords.md
- **Developed by:** [Dottti](https://apify.com/dottti) (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.21 / 1,000 one unique keyword suggestion from google autocompletes

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 Keyword Scraper: Suggestions & Questions

Give a list of keywords. For each one the actor asks Google's public autocomplete (the suggestions you see while typing in the search box) and returns every suggestion as one flat row. It can expand each keyword with a-z and 0-9, question words and prepositions, for web search, YouTube, Google Shopping, Google News or Google Images, in any language and country.

### Who it is for

- **SEO and content teams** looking for long-tail keywords and the questions people type.
- **YouTube creators** who want title and topic ideas from YouTube's own suggestion list.
- **Shop owners and marketers** checking what buyers type after a product name (Shopping suggestions).
- **Agencies** who need the same keyword research in several countries and languages.

### What each row tells you

| Field | Meaning |
|---|---|
| `seed` | The keyword you gave |
| `suggestion` | The suggestion Google returned |
| `query` | The exact text that was sent (for example `how coffee` or `coffee b`) |
| `expansion` | How the query was made: `none`, `alphabet:b`, `questions:how`, `prepositions:for`, or `deeper:...` on depth 2 |
| `position` | Place in Google's list for that query (1 = first) |
| `depth` | 1 = from your keyword, 2 = suggestion of a suggestion |
| `source`, `language`, `country` | The list read, and the hl and gl codes used |
| `wordCount` | Number of words in the suggestion |
| `containsSeed` | True when every word of your keyword appears in the suggestion |
| `fetchedAt` | When the answer was read |

Each suggestion is returned once per run, even if several queries produce it. One free summary row per keyword gives requests made, unique suggestions, duplicates skipped and anything excluded.

### Example (real run on empty input, 23 Nov 2026)

```json
{
  "recordType": "suggestion",
  "seed": "coffee",
  "suggestion": "who coffee pregnancy",
  "query": "who coffee",
  "expansion": "questions:who",
  "position": 6,
  "depth": 1,
  "source": "web",
  "language": "en",
  "country": "us",
  "wordCount": 3,
  "containsSeed": true,
  "fetchedAt": "2026-11-23T09:51:48.360Z"
}
```

Summary row from the same run: "12 request(s), 120 new unique suggestion(s) for "coffee" (0 already found in this run, 0 excluded). This summary row is free."

### How to use it

1. Put your keywords in **Keywords**, one per line.
2. Pick the **Suggestion source** (web search, YouTube, Shopping, News or Images).
3. Pick an **Expansion**: none (1 request per keyword), questions (12), prepositions (10), alphabet (37) or all (57). Depth 2 also asks for suggestions of each new suggestion.
4. Set **Language** and **Country** (for example `de` and `de`).
5. Use **Most suggestions per keyword** to cap results and cost per keyword, and **Exclude words** to drop suggestions you do not want.

To track how suggestions change, save the input as a task and add it under Schedules (for example weekly), then compare datasets.

### Pricing

You pay per unique suggestion returned. Suggestions dropped by your filters, duplicates, summary rows, status rows and requests that Google blocked are not charged.

Platform usage is included in the price.

### How it behaves

- It reads Google's public suggestions endpoint (suggestqueries.google.com), the same list a browser loads while you type. It identifies itself honestly as `dottti-google-autocomplete-keywords`, reads that host's robots.txt before any request and follows it.
- Requests go out one at a time with a pause (500 ms by default, never under 400 ms). No proxy, no cookies, no browser, no account.
- If Google answers with an access check, a "too many requests" answer or an unusual-traffic page, the run stops right there without trying to get around it, says so in a free status row, and keeps what was already found.

### Limits

- Autocomplete gives suggestions only. There are no search volumes, CPC or difficulty numbers.
- Google usually returns up to 10 suggestions per query. Results change with language, country and time, and can differ from what you see in your own browser, which also uses your history and location.
- Expansion words (question words, prepositions) are English. For other languages, use expansion none or alphabet and put your own words in the keyword list.
- Google can limit automated requests at busy times. Blocked requests are free; run again later.
- Suggestions containing an "@" are left out.

# Actor input Schema

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

One seed keyword or phrase per line, for example coffee grinder. Each one is sent to Google autocomplete as typed, then expanded as chosen below. Empty = a small demo (coffee, with question words).

## `source` (type: `string`):

Which Google suggestion list to read: web search, YouTube, Google Shopping, Google News or Google Images.

## `expand` (type: `string`):

Extra queries per keyword. none = the keyword only (1 request). alphabet = keyword + a..z and 0..9 (37 requests). questions = who, what, when, where, why, how, which, can, is, are, does + keyword (12 requests). prepositions = keyword + for, with, without, to, near, vs, like, versus, and (10 requests). all = all of them (57 requests). Empty = none (questions on the demo).

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

1 = ask only the queries above. 2 = also ask Google for suggestions of every new suggestion found (many more ideas, many more requests). The per-keyword limit below still applies.

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

Interface language code sent as hl, for example en, de, es, fr, ar, ja, pt-BR. Suggestions follow the language of the keyword and this setting.

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

Two-letter country code sent as gl, for example us, gb, de, in, jo. Suggestions differ by country.

## `maxSuggestionsPerSeed` (type: `integer`):

Stop expanding a keyword after this many new unique suggestions. Each unique suggestion is one paid result, so this also caps the cost per keyword. Empty = 300 (150 on the demo).

## `excludeWords` (type: `array`):

Suggestions containing any of these words or parts of words (case ignored) are dropped and not charged, for example free or reddit.

## `onlyContainingSeed` (type: `boolean`):

Drop suggestions that do not contain every word of the seed keyword (Google sometimes suggests related searches without it). Dropped ones are not charged.

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

Time between two requests to Google. At least 400 ms; requests are sent one at a time.

## Actor input object example

```json
{
  "keywords": [
    "coffee"
  ],
  "source": "web",
  "expand": "questions",
  "depth": 1,
  "language": "en",
  "country": "us",
  "excludeWords": [],
  "onlyContainingSeed": false,
  "requestDelayMs": 500
}
```

# Actor output Schema

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

Unique keyword suggestions with the query that produced them, plus free summary and status rows.

# 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": [
        "coffee"
    ],
    "expand": "questions"
};

// Run the Actor and wait for it to finish
const run = await client.actor("dottti/google-autocomplete-keywords").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": ["coffee"],
    "expand": "questions",
}

# Run the Actor and wait for it to finish
run = client.actor("dottti/google-autocomplete-keywords").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": [
    "coffee"
  ],
  "expand": "questions"
}' |
apify call dottti/google-autocomplete-keywords --silent --output-dataset

```

## MCP server setup

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

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/HDALsZ0cepCaRggNA/builds/kombKZTs4js6Nzicf/openapi.json
