# Google Autocomplete Keywords (A-Z, Questions, 100+ Countries) (`locaihost/google-autocomplete`) Actor

Turn one keyword into hundreds of Google Autocomplete suggestions: A-Z and 0-9 expansions, questions, prepositions and YouTube suggest, in 100+ countries. One row per unique phrase with word count and question flag, plus a free summary row. $0.50 per 1,000 suggestions. No login.

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

## Pricing

from $0.38 / 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 Keywords (A-Z, Questions, 100+ Countries)

Type one keyword, get back every phrase Google's search box suggests for it: the plain list, the list for every letter and digit after it, the list for question words in front of it, and optionally YouTube's own suggestions. One row per unique suggestion, ready as JSON or CSV. 116 countries, 55 languages, no login, no API key.

What people use it for:

- Long-tail keyword ideas: one seed becomes hundreds of real phrases people type.
- Question lists for content briefs and FAQ pages, straight from the question-word expansions.
- Comparing countries and languages: the same keyword suggests different things in each market.
- Seeing what people search on YouTube versus Google, side by side in one run.

### What do I get in one run?

One row per unique suggestion per source, with the query that found it and its place in that list:

| Column | What it is |
|---|---|
| keyword | The seed keyword you typed |
| suggestion | The phrase Autocomplete returned |
| source | google or youtube |
| prefix | The query that returned it, for example "coffee grinder c" |
| position | Where it stood in that query's suggestion list, 1 is the top |
| relevance | Google's own score for the suggestion in that list, higher ranks first; empty when Google gives none |
| depth | 1 for suggestions from a seed query, 2 when a found suggestion was asked once more |
| wordCount | Words in the suggestion |
| isQuestion | True when it starts with an English question word |
| country, language | The market the list is localised to |
| scrapedAt | When it was read |

At the very end there is one free summary row (one per country and language when you run several): how many seeds you sent, how many unique suggestions came back per source, and the top modifier words (the words that show up in suggestions besides your seed's own words, for example "best", "near" or "diy").

### Where do the suggestions come from?

Google Autocomplete itself, the suggest endpoint the search box calls as you type. It is a public, robots-allowed JSON endpoint that answers without any login or cookie, so the Actor needs nothing from you and nothing from an account. YouTube is the same endpoint with YouTube's own suggestion list, also without a login. That is the whole list of sources: anything that would need a cookie or an account is left out.

### Does it come with search volumes?

No, and that is worth saying plainly: Autocomplete is a ranking, not a count. Google does not publish search volume anywhere in it, so no scraper can honestly attach a number to these phrases. What you do get is the order Google ranks suggestions in, which is its own signal of popularity. If you need volumes, take this export to a tool that sells them.

### How do I start a run?

Paste your keywords and press Start. Or paste this into the JSON tab of the input:

```json
{"keywords": ["coffee grinder"], "country": "us", "language": "en", "expand": ["alphabet", "questions"], "depth": 1, "sources": ["google"]}
```

### What can I set?

- **Keywords** (required): up to 1,000 seed phrases, one per line. Duplicates are skipped.
- **Country**: 116 options, from the United States to Vietnam. Google localises suggestions per country.
- **Language**: 55 options, or Country default. Suggestions come back in that language.
- **Expansions**: how each keyword is turned into more queries.
  - alphabet: "coffee grinder a" through "coffee grinder z", plus 0 to 9
  - questions: "how coffee grinder", "what coffee grinder" and eleven more question words
  - prepositions: "coffee grinder for", "coffee grinder vs", "coffee grinder near" and more
  - before: "a coffee grinder" through "z coffee grinder", letters in front
  - Default: alphabet and questions. Fewer expansions make a faster, cheaper run.
- **Depth**: 1 asks only the keyword's own queries. 2 also feeds every suggestion found back into Autocomplete once. Depth 2 multiplies both the rows and the run time.
- **Max suggestions per keyword**: the default 300 stops collecting for a keyword once it has 300 unique suggestions. 0 means no limit.
- **Sources**: Google by default, or Google and YouTube together. YouTube needs no login either.

A few more settings work from the JSON tab or the API:

- `countries` and `languages`: lists, to run several markets in one go, for example `"countries": ["us", "gb", "de"]`. Each country runs with each listed language (or its own language when none is listed), one after another, up to 20 pairs.
- `maxItems`: the most suggestion rows for the whole run, across every keyword and market. The run stops cleanly there.
- `onlyNew`: true returns only suggestions an earlier run of the same keywords and settings did not deliver (see below).

### How many suggestions will one keyword give?

The plain query returns up to about 15. With alphabet on (36 extra queries) and questions on (13 more), a keyword typically lands between 200 and 400 unique phrases, which is why the per keyword default cap is 300. Depth 2 can multiply that by ten or more, since every phrase found becomes its own query. More expansion means more rows and a longer run.

### What does it cost?

$0.50 per 1,000 suggestions on the free plan, less on paid plans, plus $0.00005 when a run starts. The summary row is free. Your maximum charge per run is respected: the run stops cleanly when it is reached and keeps every row found.

Measured on 15 Nov 2026:

| Input | Rows | Time | Cost at the free-plan price |
|---|---|---|---|
| 1 keyword, alphabet + questions (the prefill) | 300 | 2 s | $0.15 |
| 3 keywords, Germany, all expansions, Google + YouTube | 900 | 4 s | $0.45 |
| 5 keywords, depth 2, cap 2,000 each | 10,000 | 96 s | $5.00 |
| 1 keyword in 3 countries, 100 per keyword, maxItems 250 | 250 | 1 s | $0.13 |

### Why does the same phrase appear once, not once per letter?

Suggestions are deduplicated per keyword and source across all the queries that found them. The row keeps the prefix and position of the query that surfaced it first. The same phrase from Google and from YouTube is two rows, because the source column differs.

### Can I run it on a schedule or from my own code?

Yes. Use Schedules in the Console to re-run the same input weekly or monthly and watch how suggestions shift. The API and Python snippets in the Input tab of the run page work as they are; every run's results live in a dataset you can export as JSON, CSV, Excel or through the API.

### Can I get only the suggestions that are new since last time?

Yes. Add `"onlyNew": true` in the JSON tab and schedule the same input. The first run returns everything; each later run returns only phrases not delivered before for that keyword, source, country and language, so you pay only for what changed. When nothing is new, the run says so and charges nothing. The memory is kept per set of keywords and settings, so changing the keywords or expansions starts a fresh list.

### Is it legal to scrape Google Autocomplete?

The suggest endpoint is public, robots-allowed, and returns the same suggestions your browser requests as you type. No login is involved and no personal data comes back. Use it for keyword research and market analysis, as intended.

### Need help?

If a run does something odd, send the run URL from Console and the input you used. Issues opened on the Actor's page on Apify get answered fastest.

# Changelog

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

# Actor input Schema

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

Seed phrases, one per line. Each is sent to Autocomplete on its own and through every expansion you pick below. Paste up to 1,000.

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

Google localises Autocomplete by country. The same keyword returns different suggestions in each one.

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

The language Google answers in. Country default uses the country's main language.

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

How each keyword is turned into more Autocomplete queries. Alphabet asks "keyword a" to "keyword z" and "keyword 0" to "keyword 9". Questions asks "how keyword", "what keyword" and so on. Prepositions asks "keyword for", "keyword vs", "keyword near" and so on. Before asks "a keyword" to "z keyword".

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

1 asks only the keyword's own queries. 2 also feeds every suggestion found back into Autocomplete once, which multiplies the result count and the run time.

## `maxSuggestions` (type: `integer`):

The run stops collecting for a keyword once it has this many unique suggestions. 0 means no limit.

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

Google is the search box's own list. YouTube reads YouTube's search suggestions from the same endpoint, so you can compare what people type on each. Both need no login.

## Actor input object example

```json
{
  "keywords": [
    "coffee grinder",
    "standing desk",
    "is coffee bad for you"
  ],
  "country": "us",
  "language": "en",
  "expand": [
    "alphabet",
    "questions"
  ],
  "depth": 1,
  "maxSuggestions": 300,
  "sources": [
    "google"
  ]
}
```

# Actor output Schema

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

Every suggestion: keyword, the query that found it, position, source, word count and question flag.

## `questions` (type: `string`):

The suggestions that start with a question word.

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

Seed keywords, unique suggestion counts per source and the top modifier words.

# 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 grinder"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/google-autocomplete").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 grinder"] }

# Run the Actor and wait for it to finish
run = client.actor("locaihost/google-autocomplete").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 grinder"
  ]
}' |
apify call locaihost/google-autocomplete --silent --output-dataset

```

## MCP server setup

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

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/vPky9lyfM0gfmTj3f/builds/HjPMqVxDcT9JAKfMS/openapi.json
