# Google Keyword Planner Tool (`problemsolver/google-keyword-planner-tool`) Actor

Fetches search volume, competition and CPC bid ranges for seed keywords using the official Google Ads API (KeywordPlanIdeaService).

- **URL**: https://apify.com/problemsolver/google-keyword-planner-tool.md
- **Developed by:** [Dimitris Kouretas](https://apify.com/problemsolver) (community)
- **Categories:** SEO tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 keyword ideas

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/platform/actors/running/actors-in-store#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 Planner Tool

Get keyword ideas, search volume, competition level, and CPC bid ranges straight from the official Google Ads API. Give it one or more seed keywords and it returns real Google Ads Keyword Planner data for the country and language you target.

### What makes this different

Most keyword research tools show estimated or modeled search volume, often scraped from search results or inferred from third-party click data. This Actor calls Google's own `KeywordPlanIdeaService.GenerateKeywordIdeas` endpoint — the exact API behind Google Ads Keyword Planner. Average monthly searches, competition level, competition index, and top-of-page bid ranges are Google's first-party numbers, not an approximation.

### Input

Example input:

```json
{
  "keywords": ["seo tools"],
  "country": "Greece",
  "language": "Greek"
}
```

| Field | Description |
|---|---|
| `keywords` | One or more seed keywords to generate ideas from (e.g. "running shoes", "seo tools"). |
| `country` | Country to target, selected from a dropdown (e.g. Greece, United States, Germany). Mapped internally to the matching Google Ads geo-target-constant. |
| `language` | Language to target, selected from a dropdown (e.g. Greek, English, German). Mapped internally to the matching Google Ads language-constant. |

No Google Ads account or API setup needed on your side — see the FAQ below.

### Output

One dataset item per keyword idea. Example, from a live run for the seed keyword "seo tools":

```json
{
  "keyword": "seo tools",
  "avgMonthlySearches": "1600",
  "competition": "LOW",
  "competitionIndex": "1",
  "lowTopOfPageBid": 0.659741,
  "highTopOfPageBid": 2.324669
}
```

| Field | Description |
|---|---|
| `keyword` | The keyword idea returned by Google Ads. |
| `avgMonthlySearches` | Average monthly search volume for this keyword. |
| `competition` | Google's competition rating: `LOW`, `MEDIUM`, or `HIGH`. |
| `competitionIndex` | Numeric competition score (0–100). |
| `lowTopOfPageBid` | Low end of Google's estimated top-of-page CPC bid range, in USD. |
| `highTopOfPageBid` | High end of Google's estimated top-of-page CPC bid range, in USD. |

### Pricing

This Actor uses pay-per-event pricing:

- **$0.002 per keyword idea** returned and written to the dataset.

For example, a search that returns 500 keyword ideas costs **$1.00**. You're only charged for keyword ideas that are actually written to the dataset — nothing is billed for a run that fails before returning results.

Broad seed keywords (e.g. "running shoes") can return several thousand keyword ideas in a single run. We recommend setting a "Maximum cost per run" limit in the Run options before your first run if you want to control costs.

This Actor shares Google Ads API access across all users; if you run it during a busy moment, a request may retry automatically and take a few extra seconds — results are unaffected.

### Use cases

- **SEO research** — find high-volume, low-competition keywords to target with content.
- **PPC campaign planning** — get real CPC bid ranges before setting campaign budgets.
- **Content strategy** — discover related search terms to build topic clusters around.
- **Competitor keyword analysis** — check search volume and competition for keywords your competitors are likely targeting.

### FAQ

**Do I need my own Google Ads account?**
No setup required on your side. Just provide keywords, country, and language — we handle the Google Ads API access behind the scenes.

**What countries and languages are supported?**
21 countries — including the United States, United Kingdom, Germany, France, Spain, Italy, and Greece — and 19 languages, including English, German, French, Spanish, Italian, and Greek. Both are selected from dropdowns in the input; no need to know Google's internal geo-target or language-constant IDs.

# Actor input Schema

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

One or more seed keywords to generate ideas for (e.g. "running shoes", "seo tools").

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

Country to target. Internally mapped to the correct Google Ads geo-target-constant ID.

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

Language to target. Internally mapped to the correct Google Ads language-constant ID.

## Actor input object example

```json
{
  "keywords": [
    "seo tools"
  ],
  "country": "GR",
  "language": "en"
}
```

# Actor output Schema

## `keywordIdeas` (type: `string`):

The dataset of this run, one row per keyword idea.

# 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": [
        "seo tools"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("problemsolver/google-keyword-planner-tool").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": ["seo tools"] }

# Run the Actor and wait for it to finish
run = client.actor("problemsolver/google-keyword-planner-tool").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": [
    "seo tools"
  ]
}' |
apify call problemsolver/google-keyword-planner-tool --silent --output-dataset

```

## MCP server setup

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

```

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/aACL6Cv70nbhK8Ofx/builds/uJ85chZdZxx2n73g5/openapi.json
