# Google Keyword Suggestions Scraper (`leorochasantos/keyword-volume`) Actor

A scraper for Google's public autocomplete keyword data: expand seed keywords into ordered suggestions, each carrying Google's relevance weight, suggestion type and a ready search URL.

- **URL**: https://apify.com/leorochasantos/keyword-volume.md
- **Developed by:** [Leonardo Santos](https://apify.com/leorochasantos) (community)
- **Categories:** SEO tools, Developer tools, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.35 / 1,000 keyword rows

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Google Keyword Suggestions Scraper

Expand seed keywords into Google's public autocomplete suggestions — ordered the
way Google orders them — and profile specific keywords with their suggestion
neighborhood. Every row is flat, typed and null-safe for SEO research, content
planning, spreadsheets and pipelines.

### Why this actor?

- Two buyer-shaped modes: expand seeds into keyword ideas, or profile a keyword list.
- One flat row per keyword: the keyword text, Google's own ordering position and
  relevance weight, the suggestion type, and a ready Google search URL.
- Hard local result limits keep delivery and spend bounded.
- Invalid input, a keyword with no suggestions, and blocked/5xx/timeout fetches
  are free error rows.
- Public suggest endpoint only: no login, no cookies, no challenge bypass.

### Input

```json
{"mode":"keyword","keywords":["web scraping","keyword research"],"maxResults":100}
```

For keyword profiles, set `mode` to `detail`:

```json
{"mode":"detail","keywords":["web scraping","keyword research"]}
```

| Input | Meaning |
|---|---|
| `mode` | `keyword` (expand seeds into suggestions) or `detail` (profile specific keywords). |
| `keywords` | Seeds to expand (up to 20) or keywords to profile (up to 50); trimmed, deduplicated, capped. One suggest request per keyword. |
| `maxResults` | Hard local cap on delivered rows and charges in `keyword` mode (1–1000). |
| `language` | Language code for the query (`hl`), e.g. `en`, `de`, `pt-BR`. |
| `country` | Country code for the query (`gl`), e.g. `us`, `gb`, `br`. |
| `proxyConfiguration` | Proxy for the requests; datacenter is the validated default. |

### Output

One `keyword`-mode row:

```json
{"mode":"keyword","input":"web scraping","keyword":"web scraping meaning","seed":"web scraping","kind":"suggestion","position":0,"suggest_relevance":1250,"suggest_type":"QUERY","suggest_subtypes":[512],"verbatim_relevance":null,"language":"en","country":"us","url":"https://www.google.com/search?q=web%20scraping%20meaning","related":[],"error":null,"scraped_at":"2026-09-11T10:11:03.240Z"}
```

One `detail`-mode row (the `related` list is truncated here; the field carries
Google's full ordered suggestion list for the keyword):

```json
{"mode":"detail","input":"web scraping","keyword":"web scraping","seed":"web scraping","kind":"detail","position":null,"suggest_relevance":null,"suggest_type":null,"suggest_subtypes":[],"verbatim_relevance":1300,"language":"en","country":"us","url":"https://www.google.com/search?q=web%20scraping","related":[{"keyword":"web scraping meaning","position":0,"relevance":1250,"suggest_type":"QUERY"},{"keyword":"web scraping python","position":1,"relevance":950,"suggest_type":"QUERY"}],"error":null,"scraped_at":"2026-09-11T10:11:03.240Z"}
```

| Field | Meaning |
|---|---|
| `mode` | Which mode produced the row: `keyword` or `detail`. |
| `input` | The seed keyword (keyword mode) or profiled keyword (detail mode) this row came from. |
| `keyword` | The delivered keyword: a suggestion in keyword mode, the profiled keyword in detail mode. |
| `seed` | The seed keyword this row was suggested for. |
| `kind` | `suggestion` (keyword mode) or `detail` (detail mode). |
| `position` | 0-based rank in Google's suggestion list, `keyword` mode only. |
| `suggest_relevance` | Google's own ordering weight for this suggestion (`google:suggestrelevance`); null when Google omits it. |
| `suggest_type` | Google's suggestion type, e.g. `QUERY`. |
| `suggest_subtypes` | Raw `google:suggestsubtypes` codes for the suggestion. |
| `verbatim_relevance` | `detail` mode only: `google:verbatimrelevance` for the keyword itself. |
| `language` | `hl` request parameter used for this row. |
| `country` | `gl` request parameter used for this row. |
| `url` | Canonical Google search URL for the keyword. |
| `related` | `detail` mode only: Google's ordered suggestions for the keyword; `[]` in keyword mode. |
| `error` | Free per-keyword error message; null on keyword rows. |
| `scraped_at` | Extraction timestamp. |

### Pricing

Pay per event, and **the platform usage is on us** — the price you see is the price you pay, with no compute bill on top.

| Event | Price | What one charge buys |
|---|---|---|
| Keyword row | **$0.019** | One delivered keyword row: an ordered suggestion in keyword mode, or a keyword profile in detail mode. Invalid or empty input, a keyword with no suggestions, and any blocked, 5xx or timed-out fetch are free error rows and are never charged. |
| Actor Start | **$0.002** | One run, whatever it returns. |

Higher Apify subscription tiers pay less on every event (Silver −20%, Gold −35%).

### Proxy

Requests use the Apify proxy configured in `proxyConfiguration`. The validated
default is datacenter. This actor does not bypass challenges, log in, or read
private pages.

### Use cases

- Grow a seed term into long-tail keyword ideas, in Google's own order.
- Profile an existing keyword list with Google's suggestion neighborhood.
- Export keyword ideas with positions and weights for scoring in a spreadsheet.
- Refresh keyword research for a niche on a schedule (task runs).

### FAQ

**Does this return absolute search volume?** No — Google's public autocomplete
surface does not expose absolute volume, and no number here is invented. Each
row carries Google's own ordering position and relevance weight (`suggest_relevance`),
which are the signals Google uses to rank suggestions. Any actor that claims
absolute volume from this surface is estimating, not measuring.

**Do I need a Google account?** No. Only the public suggest endpoint is read.

**Why is `position` empty in `detail` rows?** `position` belongs to a
suggestion inside a list; detail rows carry the list itself in `related`.

**Why do some rows have a null `suggest_relevance`?** Google omits the weight
for some queries and regions; the key is always present, the value may be null.

This Actor is an independent tool and is not affiliated with Google.

# Actor input Schema

## `mode` (type: `string`):

keyword: expand each seed keyword into Google's ordered autocomplete suggestions. detail: profile specific keywords with Google's suggestions and relevance figure.

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

Seed keywords. keyword mode takes up to 20; detail mode takes up to 50. Entries are trimmed, deduplicated, and capped. One autocomplete request is made per keyword.

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

Hard local limit on delivered suggestion rows and charges in keyword mode. Error rows are free and never count.

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

Language code for the autocomplete query, e.g. en, de, pt-BR. Bounded to 2-3 letters with an optional region suffix.

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

Country code for the autocomplete query, e.g. us, gb, br.

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

Proxy for the Google Suggest requests. Datacenter is the validated default; a residential tier is for targets that refuse datacenter traffic.

## Actor input object example

```json
{
  "mode": "keyword",
  "keywords": [
    "web scraping",
    "keyword research"
  ],
  "maxResults": 100,
  "language": "en",
  "country": "us",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

# 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": [
        "web scraping",
        "keyword research"
    ],
    "language": "en",
    "country": "us",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("leorochasantos/keyword-volume").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": [
        "web scraping",
        "keyword research",
    ],
    "language": "en",
    "country": "us",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("leorochasantos/keyword-volume").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": [
    "web scraping",
    "keyword research"
  ],
  "language": "en",
  "country": "us",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call leorochasantos/keyword-volume --silent --output-dataset

```

## MCP server setup

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

```

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/UA1QeLWO65jW3594z/builds/TE2dpxA9SXm6cs52p/openapi.json
