# Google Autocomplete Scraper + YouTube, Amazon, DuckDuckGo (`sebdata/search-autocomplete`) Actor

Google autocomplete scraper that also reads YouTube, Amazon and DuckDuckGo: keyword suggestions from four search boxes in one run. Many seed keywords, any language and country, A-Z and question expansion, duplicates removed.

- **URL**: https://apify.com/sebdata/search-autocomplete.md
- **Developed by:** [Sebastian](https://apify.com/sebdata) (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

$0.30 / 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?

Give this Google autocomplete scraper seed keywords and get back what people actually type: the **autocomplete suggestions from
Google, YouTube, Amazon and DuckDuckGo**, all in one run and one table. One row per suggestion, with
the engine and its rank.

- **Price:** $0.30 per 1,000 suggestions ($0.0003 per suggestion). You pay only for suggestions
  saved to the dataset. Keywords with no suggestions cost nothing.
- **Four engines in one run:** compare search intent (Google), video intent (YouTube) and buying
  intent (Amazon) for the same keyword.
- **Expansion modes:** A-Z, questions and prepositions turn one seed into hundreds of long-tail keywords.
- **Fast:** plain HTTP, no browser. In our tests, 132 requests finished in about 7 seconds.
- **No duplicates:** each suggestion is saved and charged once per engine.

### Input example

```json
{
    "keywords": ["running shoes", "air fryer"],
    "engines": ["google", "youtube", "amazon", "duckduckgo"],
    "language": "en",
    "country": "US",
    "expandAlphabet": true,
    "expandQuestions": false
}
```

| Field | What it does | Default |
|---|---|---|
| `keywords` | Seed keywords, up to 1,000. Required. | |
| `engines` | Any of `google`, `youtube`, `duckduckgo`, `amazon`. | all four |
| `language` | Language code: `en`, `de`, `fr`, `es`, `ja`... | `en` |
| `country` | Two-letter country code: `US`, `GB`, `DE`, `JP`... | `US` |
| `expandAlphabet` | Also ask `keyword a` ... `keyword z`. | `false` |
| `expandQuestions` | Also ask `how keyword`, `what keyword`, `why keyword`... (12 English question words). | `false` |
| `expandPrepositions` | Also ask `keyword for`, `keyword with`, `keyword vs`... (9 English words). | `false` |
| `deduplicate` | Save each suggestion once per engine. | `true` |
| `proxyConfiguration` | Optional proxy. Normally not needed. | none |

### Output example

```json
{
    "seed": "air fryer",
    "engine": "amazon",
    "query": "air fryer",
    "suggestion": "air fryer liners disposable",
    "position": 2,
    "language": "en",
    "country": "US",
    "scrapedAt": "2026-11-13T23:31:12.004Z"
}
```

Export the dataset as JSON, CSV or Excel, or read it through the Apify API.

### How many results to expect

Each engine returns up to about 10 suggestions per request. Without expansion that is up to about
40 suggestions per keyword across the four engines. With A-Z expansion, one keyword is asked 27
times per engine: in our test a single German keyword returned 457 unique suggestions. Niche
keywords return fewer; a keyword nobody searches returns none, and the run still succeeds.

### Good to know

- **Amazon by country:** suggestions come from the Amazon site of the chosen country (US, CA, MX,
  BR, GB, DE, FR, IT, ES, NL, IN, JP, AU). For any other country the Actor uses amazon.com and says
  so in the log.
- **Question and preposition expansion use English words.** For other languages use A-Z expansion,
  or put your own variants in `keywords`.
- **Position** is the rank inside the answer for the `query` that was sent, not a search volume.
  Autocomplete gives no volumes.
- **A request that fails** after several retries is skipped and reported in the log; the rest of the
  run carries on. The run's key-value store has a `SUMMARY` record with counts per engine.
- **Spending limit:** if you set a maximum charge for the run, the Actor stops when it is reached
  and keeps what it has saved.

### How to use Google Autocomplete Scraper

1. Open the **Input** tab and write your seed keywords, one per line (up to 1,000 per run).
2. Pick the **Search engines** (all four by default), and the **Language** and **Country**.
3. Optional: switch on **A-Z**, **Question** or **Preposition expansion** for many more long-tail suggestions.
4. Press **Start**. 132 requests finished in about 7 seconds in our tests.
5. Open the **Output** tab: one row per suggestion with its engine and rank. Download it as JSON, CSV, Excel or HTML, or read it through the API.

### How much does Google Autocomplete Scraper cost?

**$0.30 per 1,000 suggestions**, charged per suggestion saved to the dataset. The price includes the platform
usage of the run: there is no separate charge for compute.

| Run | For example | Cost |
|---|---|---|
| 100 suggestions | a few keywords on four engines | $0.03 |
| 1,000 suggestions | a keyword list, or one keyword with A-Z expansion on four engines | $0.30 |
| 10,000 suggestions | a large list with expansions | $3.00 |

Keywords with no suggestions are not charged, and each suggestion is charged once per engine. To cap a run, set a maximum charge when you start it: the Actor stops
there and keeps what it has saved.

### API, schedules and integrations

Google Autocomplete Scraper runs like every Apify Actor: from the Console, through the Apify API and its JavaScript and
Python clients, on a schedule, from a webhook, from workflow tools such as Make, n8n and Zapier, and as a
tool for AI agents through the Apify MCP server. A weekly schedule over the same keywords shows which suggestions are new.

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('sebdata/search-autocomplete').call({ keywords: ['running shoes'], engines: ['google', 'youtube'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### Related Actors

- [Google News Scraper](https://apify.com/sebdata/google-news-scraper): Google News articles with the real publisher URLs.
- [Shopify Products Scraper](https://apify.com/sebdata/shopify-products): the full product catalogue of any Shopify store, per product or per variant.
- [ATS Jobs Scraper](https://apify.com/sebdata/ats-jobs-feed): jobs from Greenhouse, Lever, Ashby, Workable, Recruitee and SmartRecruiters in one schema.
- [WHOIS Domain Lookup via RDAP](https://apify.com/sebdata/domain-rdap-lookup): registration, expiry, registrar and nameservers for a list of domains.
- [Contact Page Finder](https://apify.com/sebdata/contact-page-finder): contact page, contact form, social profiles and role addresses for a list of websites.
- [Website Tech Stack Detector](https://apify.com/sebdata/tech-stack-detector): the technologies a list of websites runs on, with the evidence for each.
- [Sitemap URLs Extractor](https://apify.com/sebdata/sitemap-urls-extractor): every URL from the sitemaps of many websites, with lastmod.

### Typical uses

Keyword research for SEO and content, YouTube video ideas, Amazon listing keywords, finding the
questions people ask about a product, feeding keyword ideas to an LLM or agent.

### Who maintains this

This Actor is built and maintained by an AI agent (Anthropic's Claude), under a human account owner.
Report a problem in the Issues tab: it is read and answered.

# Actor input Schema

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

One seed keyword per line, up to 1,000 per run.

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

Which search boxes to ask. Leave empty for all four.

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

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

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

Two-letter country code, e.g. US, GB, DE, JP. Amazon suggestions come from that country's Amazon site (US, CA, MX, BR, GB, DE, FR, IT, ES, NL, IN, JP, AU); other countries use amazon.com.

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

Also ask for "keyword a", "keyword b" ... "keyword z". Finds many more long-tail suggestions (26 extra requests per keyword and engine).

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

Also ask for "how keyword", "what keyword", "why keyword" and 9 more English question words.

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

Also ask for "keyword for", "keyword with", "keyword vs" and 6 more English connecting words.

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

Save (and charge for) each suggestion once per engine, even if several expansions return it.

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

Optional. The Actor normally works without a proxy.

## Actor input object example

```json
{
  "keywords": [
    "running shoes",
    "air fryer"
  ],
  "engines": [
    "google",
    "youtube",
    "duckduckgo",
    "amazon"
  ],
  "language": "en",
  "country": "US",
  "expandAlphabet": false,
  "expandQuestions": false,
  "expandPrepositions": false,
  "deduplicate": true
}
```

# Actor output Schema

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

All rows saved by the run (the default dataset).

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

Counts, and every input that could not be read with its reason (SUMMARY record in the default key-value store).

# 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": [
        "running shoes",
        "air fryer"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sebdata/search-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": [
        "running shoes",
        "air fryer",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("sebdata/search-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": [
    "running shoes",
    "air fryer"
  ]
}' |
apify call sebdata/search-autocomplete --silent --output-dataset

```

## MCP server setup

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