# Google Keyword Search Volume, CPC & Difficulty API (`mission_critical/keyword-volume`) Actor

Check Google keyword search volume in bulk. Send up to 50 keywords and a country, get monthly search volume, CPC in USD, keyword difficulty and paid competition for each one. Keywords with no data are left out and not charged. No Google Ads account, no login.

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

## Pricing

$5.00 / 1,000 keyword with data

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

## Google Keyword Search Volume, CPC & Difficulty API

### What does Google Keyword Search Volume, CPC & Difficulty API do?

Google Keyword Search Volume returns the monthly search volume, cost per click, keyword difficulty and paid competition for a list of keywords in one country. Paste up to 50 keywords, pick a country, and get one row per keyword.

### What can you use it for?

- Size a keyword list before writing content or building landing pages.
- Compare the same keywords across countries by running once per country.
- Feed volume and CPC into a spreadsheet, a rank tracker or an AI agent.

### What input does it need?

| Field | Required | What it means |
|---|---|---|
| `keywords` | yes | Up to 50 keywords, separated by commas or new lines. Duplicates are merged; anything after the 50th is skipped. |
| `country` | no | Two-letter country code for the Google market, e.g. us, gb, de, fr, ca, au. |

Example input:

```json
{
  "keywords": "running shoes, trail runners",
  "country": "us"
}
```

### What data do you get?

| Field | Description |
|---|---|
| `keyword` | The keyword, lower-cased |
| `volume` | Average monthly Google searches in the chosen country |
| `cpc` | Average cost per click in US dollars |
| `difficulty` | Keyword difficulty, 0 (easy) to 100 (hard) |
| `competition` | Paid-search competition, 0 to 100 |

Fields the source does not have are returned as `null`, never left out. Export the dataset as JSON, CSV, Excel or HTML, or read it through the Apify API.

### How much does it cost?

$0.005 per keyword ($5 per 1,000). There is no start fee and no charge for platform usage. A run that returns nothing costs nothing.

If you set a maximum cost for a run, the Actor stops at that amount and never charges past it.

### What are the limits?

- 50 keywords per run. Start more runs for longer lists.
- One country per run.
- Keywords the source has no data for are not returned. They are listed under `no_data` in the run's `SUMMARY` record and are not charged.
- Volumes are monthly averages from a commercial keyword database, not live Google Ads figures, so very new or very rare keywords can be missing.

### Can I use it from the API, a schedule or an AI agent?

Yes. Start it with the [Apify API](https://docs.apify.com/api/v2), run it on a [schedule](https://docs.apify.com/platform/schedules), or expose it to an AI agent through the [Apify MCP server](https://docs.apify.com/mcp). Runs normally finish in a few seconds.

### FAQ

#### Do I need a Google Ads account?

No. There is nothing to connect and no login.

#### Which countries work?

Any two-letter code the keyword database covers, including us, gb, de, fr, es, it, ca and au. An unsupported code fails the run with a clear message and no charge.

#### Why did I get fewer rows than keywords?

Duplicates are merged and keywords with no search data are skipped. You only pay for rows you receive.

#### Something looks wrong. Who do I tell?

Open an issue on the Actor's Issues tab or email vlad@evolvingtechnologies.io. Include the run ID.

### Related Actors

- [App Store Keyword Rank Tracker](https://apify.com/mission_critical/app-store-keyword-rank)
- [Trustpilot Reviews Scraper](https://apify.com/mission_critical/trustpilot-reviews)

# Actor input Schema

## `keywords` (type: `string`):

Up to 50 keywords, separated by commas or new lines. Duplicates are merged; anything after the 50th is skipped.

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

Two-letter country code for the Google market, e.g. us, gb, de, fr, ca, au.

## Actor input object example

```json
{
  "keywords": "running shoes, trail runners",
  "country": "us"
}
```

# Actor output Schema

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

Dataset items

# 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, trail runners"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mission_critical/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": "running shoes, trail runners" }

# Run the Actor and wait for it to finish
run = client.actor("mission_critical/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": "running shoes, trail runners"
}' |
apify call mission_critical/keyword-volume --silent --output-dataset

```

## MCP server setup

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