# Google Autocomplete Scraper - YouTube, Bing, Amazon & 14 More (`topapi/google-autocomplete-scraper`) Actor

Scrape Google autocomplete keyword suggestions plus YouTube, Bing, Amazon, TikTok, DuckDuckGo, Yahoo, eBay, Walmart, Yandex, Baidu, Naver, Wikipedia, App Store and Google Play. A-Z, question and preposition expansion, any country and language, relevance and intent per row. $0.72 per 1,000.

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

## Pricing

from $0.72 / 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.

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

### What does Google Autocomplete Scraper do?

**Google Autocomplete Scraper** collects the suggestions a search box shows while you type, for your keywords: Google (web, images, news and shopping), YouTube, Bing, Amazon, TikTok, DuckDuckGo, Yahoo, eBay, Walmart, Yandex, Baidu, Naver, Wikipedia, the App Store and Google Play. Each suggestion is one row with its rank, Google's relevance score (Google rows), how many lookups surfaced it, the text that was typed, and question and intent tags. SEO writers, PPC teams, Amazon sellers, YouTubers and app marketers use it for long-tail keyword research.

Also known as: Google suggest scraper · keyword suggestion tool · autocomplete API · Google keyword ideas · YouTube autocomplete scraper · Amazon autocomplete scraper · AnswerThePublic alternative

- **18 search boxes in one run**: pick any mix; every row has the same shape, with an `engine` column.
- **Long-tail expansion**: A to Z after or before the keyword, 0 to 9, question words, prepositions, comparisons, buyer words, your own prefixes and suffixes, and Google's "complete in front of the keyword" mode.
- **Up to 3 levels deep**: the strongest suggestions are looked up again as keywords.
- **Any country and language**: Google, YouTube and Bing locales, 22 Amazon marketplaces with departments, eBay sites, App Store storefronts, TikTok regions. Several countries in one run.
- **Signals per row**: Google relevance and type, `volumeProxy` (how many lookups returned it), best rank, word count, question, long-tail and intent tags, Google entity names and images, Amazon thumbnails, eBay categories.
- **Monitor mode**: scheduled runs return only suggestions you have not received before.
- **No login, no API key, no proxy needed**: the public suggest endpoints each search box uses itself.

### What data can you get from Google autocomplete?

<table>
<tr><td>🔎 Keyword and the text typed (`keyword`, `query`)</td><td>💡 Suggestion (`suggestion`)</td><td>🥇 Rank (`position`, `bestPosition`)</td></tr>
<tr><td>📈 Google relevance score (`relevance`)</td><td>🏷️ Suggestion type (`suggestType`)</td><td>🔁 Lookups that returned it (`volumeProxy`, `foundVia`)</td></tr>
<tr><td>🧭 Search box (`engine`, `engineName`)</td><td>🔤 Expansion and modifier (`expansion`, `modifier`)</td><td>🌳 Level and parent (`depth`, `parentKeyword`)</td></tr>
<tr><td>❓ Question / long tail (`isQuestion`, `isLongTail`)</td><td>🎯 Intent (`searchIntent`, `intentRule`, `isCommercial`)</td><td>🔢 Words and characters (`wordCount`, `characterCount`)</td></tr>
<tr><td>➕ Words added to your keyword (`addedWords`)</td><td>🧷 Contains every keyword word (`containsSeed`)</td><td>🧩 Near-duplicate group (`clusterId`)</td></tr>
<tr><td>👤 Google entity name, description, image</td><td>🛒 Amazon marketplace, domain, department, thumbnail</td><td>🗂️ eBay categories</td></tr>
<tr><td>🔗 Results page link (`searchUrl`)</td><td>🌍 Country and language</td><td>🆕 Monitor status, first seen</td></tr>
</table>

Measured on our test runs (2026-11-06, default 256 MB): one keyword on Google with the default expansions returned **530 suggestions in 1.6 seconds**, every one with Google's relevance score and type. Five keywords on Google, Bing and Amazon returned 5,908 suggestions in 5.9 seconds. "photo editor" on all 18 search boxes returned 3,690 suggestions: Google web 470, Google Images 472, Google News 469, Google Shopping 224, YouTube 406, Bing 349, Yahoo 306, DuckDuckGo 211, TikTok 200, App Store 194, Yandex 131, Google Play 129, Baidu 71, Amazon 39, Walmart 7, eBay 6, Wikipedia 6.

### How to scrape Google autocomplete with Google Autocomplete Scraper

1. [Create a free Apify account](https://console.apify.com/sign-up). It comes with $5 of monthly credit and no card is needed.
2. Open **Google Autocomplete Scraper** and click **Try for free**.
3. Type your keywords into **Keywords**, one per line (e.g. `coffee grinder`).
4. Pick the **Search boxes** (Google is preselected), the **Country** and the **Language**, and the expansions you want.
5. Click **Start**. Rows appear in the dataset as each search box finishes.
6. Open the **Storage** tab and **Export** as JSON, CSV or Excel, or connect a schedule.

### ⬇️ Input

| Parameter | Type | Description |
|---|---|---|
| **🔍 What to look up** | | |
| `keywords` | array | Seed keywords, one per line. Empty = a 20-row sample for "coffee grinder". |
| `seedUrls` | array | Web pages whose title, H1 headings and meta keywords become keywords (up to 10 per page). |
| `engines` | array | `google`, `google-images`, `google-news`, `google-shopping`, `youtube`, `bing`, `amazon`, `tiktok`, `duckduckgo`, `yahoo`, `ebay`, `walmart`, `yandex`, `baidu`, `naver`, `wikipedia`, `appstore`, `googleplay`. Default `["google"]`. |
| **🌍 Country and language** | | |
| `country` / `language` | string | Default `US` / `en`. Sets the locale of every search box. |
| `countries` / `languages` | array | Several at once; every combination is looked up. |
| `amazonMarketplace` / `amazonMarketplaces` | string / array | `auto` (match the country) or US, CA, MX, BR, UK, DE, FR, IT, ES, NL, SE, PL, BE, IE, TR, AE, SA, EG, IN, JP, AU, SG. |
| `amazonDepartment` / `amazonDepartments` | string / array | Amazon alias: `aps` (all, default), `stripbooks`, `electronics`, `fashion`, `grocery` ... |
| **🔤 Expansion** | | |
| `expandAlphabet` | boolean | "keyword a" ... "keyword z". Default on. |
| `expandQuestions` | boolean | "how keyword", "what keyword" ... Default on. Own words per language for de, fr, es, it, pt, nl. |
| `expandPrefixAlphabet` | boolean | "a keyword" ... "z keyword". |
| `expandNumbers` | boolean | "keyword 0" ... "keyword 9". |
| `expandPrepositions` | boolean | for, with, without, near, to, can, is. |
| `expandComparisons` | boolean | vs, versus, or, and, like. |
| `expandBuyerModifiers` | boolean | best, cheap, top, buy, price, review, deals, for sale, near me, online. |
| `cursorBeforeSeed` | boolean | Google: complete the text in front of the keyword ("best coffee grinder", "burr coffee grinder"). |
| `addTrailingSpace` | boolean | Also look up "keyword ". |
| `questionWords`, `customPrefixes`, `customSuffixes` | array | Your own words. |
| `maxDepth` | integer | 1-3. 2 and 3 look up the strongest suggestions again. Default 1. |
| `recursionMaxTermsPerLevel` | integer | Suggestions followed per level, per keyword and search box. Default 20. |
| **✂️ Filters** (removed rows are never charged) | | |
| `includeSeed` | boolean | Keep the keyword itself when suggested. Default on. |
| `mustContainSeed`, `mustIncludeTerms`, `excludeTerms` | boolean / array | Word filters. |
| `onlyQuestions`, `onlyLongTail`, `minWordCount`, `maxWordCount` | boolean / integer | Shape filters (long tail = 3+ words). |
| **📦 Output** | | |
| `maxResults` | integer | Rows in the whole run. Default 1000, 0 = no limit. |
| `maxResultsPerKeyword` | integer | Rows per keyword per search box and country. 0 = no limit. |
| `maxSuggestionsPerQuery` | integer | First N suggestions of each lookup. 0 = all. |
| `maxLookups` | integer | Safety cap on lookups. Default 10,000. |
| `dedupe`, `dedupeAcrossKeywords`, `mergeEngines` | boolean | One row per suggestion per keyword and box (default), across keywords, or across boxes. |
| `resultOrder` | string | `popularity` (default), `engine`, `alphabetical`. |
| `groupSimilar`, `includeEntities` | boolean | Near-duplicate groups; Google entity names and images. |
| `googleClient` | string | `chrome` (15 suggestions + relevance, default), `firefox`, `gws-wiz`. |
| `outputFormat`, `summaryTopN` | string / integer | `detailed`, `simple`, `grouped` (+ a KEYWORDS record with each keyword's top N). |
| **🔁 Monitoring** | | |
| `monitorMode`, `monitorStoreName`, `resetMonitor` | boolean / string | Deliver only suggestions not delivered before. |
| **⚙️ Advanced** | | |
| `proxyConfiguration`, `maxConcurrency`, `requestDelayMs`, `maxRequestRetries`, `writeRunSummary` | | Egress, parallel lookups per box (10), pacing, retries (3), run report. |

The input names of other autocomplete actors also work (`seeds`, `sources`, `platforms`, `alphabet_expand`, `appendAlphabet`, `expansionMode`, `expansions`, `gl`, `hl`, `regions`, `marketplace`, `alias`, `maxItems`, `expansionDepth` ...), so a saved input can be pasted in.

#### Input JSON

```json
{
  "keywords": ["coffee grinder", "espresso machine"],
  "engines": ["google", "youtube", "amazon"],
  "country": "US",
  "language": "en",
  "expandAlphabet": true,
  "expandQuestions": true,
  "maxResults": 2000
}
```

#### Pick fewer expansions for a quick list, more for the long tail

One keyword with the default A to Z + questions is 40 lookups per search box. Google returns 15 suggestions a lookup, so expect 500-600 rows after de-duplication. Turn every expansion on and set Levels to 3 for about 2,000 Google rows per keyword.

#### Type keywords the way people start a search

Short, common keywords give the most suggestions. A long or rare phrase can return nothing; the status message then says so and nothing is charged.

### ⬆️ Output

One row per suggestion (a real row from our test run, `details` shortened):

```json
{
  "keyword": "coffee grinder",
  "query": "are coffee grinder",
  "suggestion": "is coffee grinder",
  "position": 6,
  "depth": 1,
  "engine": "google",
  "expansion": "questions",
  "modifier": "are",
  "relevance": 555,
  "suggestType": "QUERY",
  "volumeProxy": 3,
  "bestPosition": 1,
  "foundVia": ["are coffee grinder", "does coffee grinder", "will coffee grinder"],
  "wordCount": 3,
  "isQuestion": true,
  "isLongTail": true,
  "searchIntent": "question",
  "intentRule": "is",
  "searchUrl": "https://www.google.com/search?q=is%20coffee%20grinder&hl=en&gl=us",
  "country": "US",
  "language": "en",
  "id": "YVYjrkcnDGI1qN",
  "scrapedAt": "2026-11-06T05:11:32.620Z"
}
```

An Amazon row carries the store: `"marketplace": "UK"`, `"amazonDomain": "amazon.co.uk"`, `"department": "aps"`, `"thumbnail": "https://m.media-amazon.com/images/I/41q6JQ9RfNL.__AC_SL75__.jpg"` and `details.refTag` / `strategyId`. A TikTok row carries `details.groupId`, `recallReasons` and `cutQueryTokens`.

#### Fields

| Field | Meaning | Filled on our runs |
|---|---|---|
| `keyword`, `query`, `suggestion`, `position`, `bestPosition` | Keyword, typed text, suggestion, its rank | 100% |
| `volumeProxy`, `foundVia` | Lookups of this run that returned it (a popularity signal, not a search volume) | 100% |
| `engine`, `engineName`, `expansion`, `modifier`, `depth`, `parentKeyword` | Where and how it was found | 100% |
| `relevance` | Google's relevance score (Google boxes, chrome client) | 100% of Google rows |
| `suggestType` | The box's own type (Google, Amazon, eBay, Walmart, Baidu) | 100% of those rows |
| `wordCount`, `characterCount`, `isQuestion`, `isLongTail`, `containsSeed`, `searchIntent`, `isCommercial`, `addedWords` | Derived tags | 100% |
| `intentRule` | Word that set the intent (null = informational) | 34% of a Google run |
| `entityName`, `entityDescription`, `thumbnail` | Google entity data with `includeEntities` (only when Google shows an entity) | 2 of 10 for "taylor sw", 0 for "photo editor" |
| `thumbnail` (Amazon, Walmart) | Product image Amazon or Walmart sends with some suggestions | 4-28% of Amazon rows, 0-5 of 10 Walmart rows |
| `categories` | eBay category suggestions | 1 of 10 eBay rows |
| `marketplace`, `amazonDomain`, `department` | Amazon rows | 100% of Amazon rows |
| `searchUrl`, `sourceUrl` | Results page / the suggest request | 100% |
| `engines`, `engineCount`, `positionsByEngine` | With `mergeEngines` | 100% of merged rows |
| `clusterId`, `isClusterRepresentative` | With `groupSimilar` | 100% |
| `monitorStatus`, `firstSeenAt` | Monitor mode | 100% |
| `details` | The box's own extras (Google subtypes, Amazon refTag and strategyId, TikTok group id and recall reasons, Yahoo type) | Google, Amazon, TikTok, Yahoo, YouTube rows |
| `id`, `scrapedAt`, `country`, `language`, `seedUrl` | Row id (the monitor key), time, locale, source page | 100% (`seedUrl` with `seedUrls`) |

### How can I use autocomplete keyword data?

- 📝 **SEO writers**: turn one topic into hundreds of long-tail titles and FAQ questions (`onlyQuestions`).
- 💰 **PPC teams**: find buyer phrases (`expandBuyerModifiers`, `isCommercial`) and negative keywords.
- 🛒 **Amazon and eBay sellers**: listing keywords per marketplace and department.
- 🎬 **YouTubers and TikTok creators**: video topics people type into those boxes.
- 📱 **App marketers**: App Store and Google Play search terms per storefront.
- 🌍 **International SEO**: the same keyword across countries and languages in one dataset.
- 🔔 **Trend watchers**: a daily monitor shows new suggestions the day they appear.

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

| Search box | Price per suggestion | Per 1,000 |
|---|---|---|
| Google (web, images, news, shopping), Bing, Amazon, DuckDuckGo, Yahoo, eBay, Walmart, Yandex, Baidu, Naver, Wikipedia | $0.00072 | **$0.72** |
| YouTube | $0.00022 | **$0.22** |
| TikTok | $0.0013 | **$1.30** |
| App Store, Google Play | $0.0009 | **$0.90** |

| Run | Rows | Charge |
|---|---|---|
| The prefill: "coffee grinder", Google, 100 rows | 100 | $0.072 |
| One keyword, Google, default expansions | 530 | $0.38 |
| 1,000 Google suggestions | 1,000 | $0.72 |
| 1,000 YouTube suggestions | 1,000 | $0.22 |

There is no start fee and no monthly rent, and Apify platform usage is included in these prices. Filtered rows, duplicates, failed lookups and suggestions already seen in monitor mode are not charged. Set a **maximum charge** on the run to cap the cost: the run stops cleanly at it.

### Integrations, API, scheduling & MCP

Google Autocomplete Scraper works with the [Apify API](https://docs.apify.com/api/v2), the Apify [Python](https://docs.apify.com/api/client/python) and [JavaScript](https://docs.apify.com/api/client/js) clients, [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [n8n](https://apify.com/integrations/n8n), Google Sheets, webhooks and the [Apify MCP server](https://mcp.apify.com) for AI agents.

#### Run it on a schedule

Turn on **Only new suggestions**, give the watch list a **Monitor name**, and add an [Apify schedule](https://docs.apify.com/platform/schedules) (e.g. daily). Each run returns only suggestions not delivered before; a run with nothing new returns 0 rows and charges nothing.

```json
{
  "keywords": ["coffee grinder", "espresso machine"],
  "engines": ["google", "amazon"],
  "monitorMode": true,
  "monitorStoreName": "coffee-watch"
}
```

### More search and keyword scrapers

- [Bing Search Scraper](https://apify.com/topapi/bing-search-scraper): Bing results, ads, People Also Ask and related searches.
- [Google Images Scraper](https://apify.com/topapi/google-images-scraper): image URLs, sizes and source pages.
- [YouTube Shorts Scraper](https://apify.com/topapi/youtube-shorts-scraper): Shorts with views, channels and hashtags.
- [Google SERP Scraper](https://apify.com/scrapersdelight/google-serp-scraper): organic Google results by query.
- [Google Trends Scraper](https://apify.com/scrapersdelight/google-trends-interest-scraper): interest over time and by region.
- [YouTube Search Scraper](https://apify.com/scrapersdelight/youtube-search-scraper): videos and channels for a search.

### Limits & empty runs

- Each lookup returns what the box shows: Google 15, YouTube 14, Bing up to 25, Amazon 10, Google Play 5, most others 8-10.
- Baidu reads China in Chinese, Naver Korea in Korean, Walmart the US store, whatever the country input.
- Wikipedia asks automated clients to identify themselves, so Wikipedia lookups send a User-Agent naming this actor and run 2 at a time. On our two test runs 234 of 234 Wikipedia lookups answered (a burst of 429s moved one run to an Apify datacenter IP).
- Google changes its lists between calls: a monitor run seconds after the first found 8-16 new Google suggestions.
- If a search box refuses the run's IP, the run moves to an Apify datacenter IP, then a residential one, and never charges for a lookup that failed.
- An empty run means the keyword had no suggestion there, or everything was filtered or seen before; the status message says which.

### FAQ

#### How much does Google Autocomplete Scraper cost?

$0.72 per 1,000 Google, Bing or Amazon suggestions, $0.22 per 1,000 YouTube suggestions, $1.30 per 1,000 TikTok and $0.90 per 1,000 App Store or Google Play suggestions. No start fee.

#### How many keywords can Google Autocomplete Scraper return for one seed?

With the default A to Z + questions: about 500-600 Google suggestions per keyword (530 on our test). All expansions and 3 levels: about 2,000.

#### Does Google Autocomplete Scraper give search volume?

No. `volumeProxy` counts how many lookups returned a suggestion, and `relevance` is Google's own score; both rank suggestions against each other but are not monthly searches.

#### Can Google Autocomplete Scraper get YouTube or Amazon suggestions?

Yes, and 15 more search boxes, in one run, with the same row shape.

#### Can I monitor new Google suggestions with Google Autocomplete Scraper?

Yes. Monitor mode on a schedule delivers only suggestions not seen before; a run with nothing new charges nothing.

#### Do I need a Google account, API key or proxy for Google Autocomplete Scraper?

No. It reads the public suggest endpoints with no login or key. A proxy is optional.

#### Can I use Google Autocomplete Scraper with the Apify API or an MCP server?

Yes: start runs from the API, the Python or JavaScript client, Make, Zapier or n8n, or from an AI agent through the Apify MCP server.

#### Why did my Google Autocomplete Scraper run return no results?

The keyword had no suggestions in those boxes (try a shorter one), the filters removed everything, or monitor mode had seen it all. The status message says which. Nothing is charged for an empty run.

#### Is it legal to scrape Google autocomplete suggestions?

The suggestions are public text shown to every visitor. How you use them is up to you; check your own legal requirements.

#### Your feedback

Something missing or not working? Open an issue in the **Issues** tab and we will look at it.

# Actor input Schema

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

Seed keywords, one per line, as you would start typing them, e.g. "coffee grinder", "how to learn python". Each keyword is looked up in every search box you pick, with the expansions below.

## `seedUrls` (type: `array`):

Web page links, one per line. Each page's title, H1 headings and meta keywords become keywords (up to 10 per page). Rows from them carry the page in seedUrl.

## `engines` (type: `array`):

Which search boxes to read. Google (web, images, news, shopping), Bing, Amazon, DuckDuckGo, Yahoo, eBay, Walmart, Yandex, Baidu, Naver and Wikipedia rows are 'suggestion' events; YouTube, TikTok and the app stores have their own prices.

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

Two-letter country code, e.g. US, GB, DE, FR, IN, JP. Sets Google/YouTube gl, the Bing market, the DuckDuckGo and Yahoo region, the eBay site, the App Store storefront, the TikTok region and the Amazon marketplace (unless set below).

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

Language code, e.g. en, de, fr, es, ja, zh-CN. Sets Google/YouTube hl, the Bing market, the Wikipedia edition, the TikTok app language and the question words and prepositions used for expansion.

## `countries` (type: `array`):

Several countries in one run, one code per line (replaces Country). Each one is a separate set of lookups and rows.

## `languages` (type: `array`):

Several languages in one run, one code per line (replaces Language).

## `amazonMarketplace` (type: `string`):

The Amazon store to read. "Match the country" picks it from Country (US if Amazon has no store there).

## `amazonMarketplaces` (type: `array`):

Compare several Amazon stores in one run, one code per line (US, UK, DE, FR, IT, ES, CA, MX, BR, NL, SE, PL, BE, IE, TR, AE, SA, EG, IN, JP, AU, SG). Replaces the marketplace above.

## `amazonDepartment` (type: `string`):

Amazon search department alias: aps (all departments), stripbooks, electronics, fashion, grocery, beauty, toys-and-games, sporting, tools, garden, automotive, pets, baby-products, videogames, digital-text (Kindle) ...

## `amazonDepartments` (type: `array`):

Several departments in one run, one alias per line (replaces the department above).

## `expandAlphabet` (type: `boolean`):

Also look up "keyword a", "keyword b" ... "keyword z" (26 lookups per keyword and search box). The classic way to get hundreds of long-tail suggestions.

## `expandQuestions` (type: `boolean`):

Also look up "how keyword", "what keyword", "why keyword" ... (13 English question words; German, French, Spanish, Italian, Portuguese and Dutch get their own).

## `expandPrefixAlphabet` (type: `boolean`):

Also look up "a keyword" ... "z keyword" (26 more lookups). Finds what people type before your keyword.

## `expandNumbers` (type: `boolean`):

Also look up "keyword 0" ... "keyword 9" (years, sizes, model numbers).

## `expandPrepositions` (type: `boolean`):

Also look up "keyword for", "keyword with", "keyword without", "keyword near", "keyword to", "keyword can", "keyword is".

## `expandComparisons` (type: `boolean`):

Also look up "keyword vs", "keyword versus", "keyword or", "keyword and", "keyword like".

## `expandBuyerModifiers` (type: `boolean`):

Also look up "best keyword", "cheap keyword", "top keyword", "buy keyword", "keyword price", "keyword review", "keyword deals", "keyword for sale", "keyword near me", "keyword online" (in the run's language).

## `cursorBeforeSeed` (type: `boolean`):

Google only: ask Google to complete the text BEFORE your keyword (cursor at the start), e.g. "best coffee grinder", "burr coffee grinder". One extra lookup per keyword.

## `addTrailingSpace` (type: `boolean`):

Also look up the keyword with a trailing space, which some search boxes complete differently.

## `questionWords` (type: `array`):

Replace the built-in question words, one per line, e.g. how, what, is, best way to.

## `customPrefixes` (type: `array`):

Words to put in front of every keyword, one per line, e.g. "best", "cheap", "used".

## `customSuffixes` (type: `array`):

Words to put after every keyword, one per line, e.g. "for women", "under 50", "2026".

## `maxDepth` (type: `integer`):

1 = the keyword's own lookups. 2 = the strongest suggestions found are looked up again as keywords (deeper long tail). 3 = once more.

## `recursionMaxTermsPerLevel` (type: `integer`):

With Levels 2 or 3: how many of the most-surfaced suggestions are looked up again, per keyword and search box.

## `includeSeed` (type: `boolean`):

Keep a row when a search box suggests exactly your keyword. Off = only new phrases.

## `mustContainSeed` (type: `boolean`):

Keep only suggestions that contain every word of the keyword (in any order).

## `mustIncludeTerms` (type: `array`):

Keep only suggestions that contain at least one of these words or phrases.

## `excludeTerms` (type: `array`):

Drop suggestions that contain any of these words or phrases, e.g. brand names, "near me", "reddit".

## `onlyQuestions` (type: `boolean`):

Keep only suggestions that start with a question word or end with a question mark.

## `onlyLongTail` (type: `boolean`):

Keep only suggestions of 3 words or more.

## `minWordCount` (type: `integer`):

Keep only suggestions with at least this many words (0 = any).

## `maxWordCount` (type: `integer`):

Keep only suggestions with at most this many words (0 = any).

## `maxResults` (type: `integer`):

Stop after this many rows in the whole run (0 = no limit). One keyword on one search box with the default expansions gives about 200-400.

## `maxResultsPerKeyword` (type: `integer`):

At most this many rows per keyword per search box and country (0 = no limit). The most-surfaced suggestions are kept.

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

Keep only the first N suggestions of each lookup (0 = all the search box returns: Google 15, YouTube 14, Bing up to 25, most others 8-10).

## `maxLookups` (type: `integer`):

Safety cap on lookups (requests to the search boxes) in one run.

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

One row per suggestion per keyword and search box, however many lookups returned it (volumeProxy counts them). Off = one row per lookup that returned it.

## `dedupeAcrossKeywords` (type: `boolean`):

A suggestion already delivered for one keyword is not delivered (or charged) again for the next.

## `mergeEngines` (type: `boolean`):

Merge the same suggestion found in several search boxes into one row (engines, engineCount, positionsByEngine). It is charged once, at the cheapest of those search boxes' prices.

## `resultOrder` (type: `string`):

Most surfaced first (volumeProxy, then rank), the order the search boxes returned them, or A to Z.

## `groupSimilar` (type: `boolean`):

Tag suggestions that use the same words (plurals and word order ignored) with one clusterId; the first of each group gets isClusterRepresentative = true.

## `includeEntities` (type: `boolean`):

For Google: also read the google.com search box's entity data (entityName, entityDescription, thumbnail, e.g. "Taylor Swift - American singer-songwriter"). One extra request per Google lookup, no extra charge.

## `googleClient` (type: `string`):

chrome: 15 suggestions with Google's relevance score (default). firefox: the plain 10. gws-wiz: the 10 google.com shows, with entity data.

## `outputFormat` (type: `string`):

detailed = every field. simple = keyword, suggestion, engine, position, volumeProxy, country, language. grouped = detailed rows plus a KEYWORDS record (key-value store) with each keyword's top suggestions.

## `summaryTopN` (type: `integer`):

Writes a KEYWORDS record with each keyword's lookups, counts and its top N suggestions (0 = no record unless the row format is grouped).

## `monitorMode` (type: `boolean`):

Deliver only suggestions this monitor has not delivered before (per keyword, search box and country). Run it on a schedule to see what is new in the search boxes.

## `monitorStoreName` (type: `string`):

Name of the key-value store that remembers delivered suggestions. Use one name per watch list.

## `resetMonitor` (type: `boolean`):

Start the monitor from empty (everything found counts as new).

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

Default: the run's own IP first; if a search box refuses it, one Apify datacenter session, then one Apify residential session. Pick a group or your own proxy to use only that.

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

How many lookups run at once against one search box.

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

Wait this long before each lookup (per parallel slot).

## `maxRequestRetries` (type: `integer`):

Retries of a failed lookup (timeouts, server errors) before it is reported as failed. Failed lookups are never charged.

## `writeRunSummary` (type: `boolean`):

Write the RUN_SUMMARY record (lookups per search box, egress, what was skipped) on every run. Without it, it is written for Console runs, large runs and runs with a problem.

## Actor input object example

```json
{
  "keywords": [
    "coffee grinder"
  ],
  "engines": [
    "google"
  ],
  "country": "US",
  "language": "en",
  "amazonMarketplace": "auto",
  "amazonDepartment": "aps",
  "expandAlphabet": true,
  "expandQuestions": true,
  "expandPrefixAlphabet": false,
  "expandNumbers": false,
  "expandPrepositions": false,
  "expandComparisons": false,
  "expandBuyerModifiers": false,
  "cursorBeforeSeed": false,
  "addTrailingSpace": false,
  "maxDepth": 1,
  "recursionMaxTermsPerLevel": 20,
  "includeSeed": true,
  "mustContainSeed": false,
  "onlyQuestions": false,
  "onlyLongTail": false,
  "minWordCount": 0,
  "maxWordCount": 0,
  "maxResults": 100,
  "maxResultsPerKeyword": 0,
  "maxSuggestionsPerQuery": 0,
  "maxLookups": 10000,
  "dedupe": true,
  "dedupeAcrossKeywords": false,
  "mergeEngines": false,
  "resultOrder": "popularity",
  "groupSimilar": false,
  "includeEntities": false,
  "googleClient": "chrome",
  "outputFormat": "detailed",
  "summaryTopN": 0,
  "monitorMode": false,
  "monitorStoreName": "autocomplete-monitor",
  "resetMonitor": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 10,
  "requestDelayMs": 0,
  "maxRequestRetries": 3,
  "writeRunSummary": false
}
```

# Actor output Schema

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

One item per search-box suggestion (keyword, suggestion, engine, rank, relevance, intent tags).

# 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"
    ],
    "engines": [
        "google"
    ],
    "country": "US",
    "language": "en",
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("topapi/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": ["coffee grinder"],
    "engines": ["google"],
    "country": "US",
    "language": "en",
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("topapi/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": [
    "coffee grinder"
  ],
  "engines": [
    "google"
  ],
  "country": "US",
  "language": "en",
  "maxResults": 100
}' |
apify call topapi/google-autocomplete-scraper --silent --output-dataset

```

## MCP server setup

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