# Semrush Keyword Research Scraper (`automation-lab/semrush-keyword-research-scraper`) Actor

Get Semrush keyword data in bulk without a Semrush account: search volume, keyword difficulty (KD%), CPC, intent, global volume, top-10 SERP and keyword ideas for any seed keyword and country.

- **URL**: https://apify.com/automation-lab/semrush-keyword-research-scraper.md
- **Developed by:** [Automation Lab](https://apify.com/automation-lab) (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

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

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

## Semrush Keyword Research Scraper

Get Semrush keyword ideas in bulk without a Semrush account or API key. Paste a list of seed keywords, pick a country, and get up to 25 related keywords per seed, each with search volume, keyword difficulty (KD%), CPC and search intent. The seed keyword itself is usually in the list too, so you also get its own metrics.

### What does Semrush Keyword Research Scraper do?

For each seed keyword it reads Semrush's public Keyword Tool and saves one row per keyword idea:

- 💡 **Up to 25 keyword ideas per seed**, highest search volume first
- 🔎 **Search volume** for the chosen country database
- 📊 **Keyword difficulty (KD%)** from 0 to 100
- 💲 **CPC** in US dollars
- 🎯 **Search intent**: Commercial, Informational, Navigational, Transactional
- 🌱 **Seed totals**: how many related keywords Semrush knows for the seed and their combined volume
- ✅ **Seed flag**: `isSeedKeyword` marks the row for the seed itself

### Who is it for?

- **SEO and content teams** expanding keyword lists for briefs every week
- **PPC managers** checking CPC and volume before building campaigns
- **SEO agencies** sizing keyword opportunities for prospects
- **Developers and AI agents** that need keyword metrics in a pipeline without a Semrush subscription

If you need website traffic for a domain rather than keyword data, use our [Semrush Website Traffic Stats Scraper](https://apify.com/automation-lab/semrush-website-traffic-stats-scraper).

### Why use this actor?

- No Semrush login, subscription or API units
- Bulk input: up to 1,000 seed keywords per run
- 45 country databases
- Seeds Semrush has no data for are skipped and not charged
- Export to JSON, CSV, Excel or Google Sheets, or read the results through the API

### What data can you extract?

| Field | Description |
| --- | --- |
| `keyword` | The keyword idea |
| `seedKeyword` | The input keyword the idea came from |
| `country` | Semrush database, for example `us` |
| `searchVolume` | Average monthly searches in that country |
| `keywordDifficulty` | KD% from 0 to 100 |
| `cpc` | Average cost per click in USD |
| `intent` | Search intent labels (empty when Semrush has not classified the keyword) |
| `ideaRank` | Rank of the idea for its seed, 1 is the highest volume |
| `isSeedKeyword` | `true` for the row that is the seed keyword itself |
| `seedRelatedKeywordsTotal` | Total related keywords Semrush knows for the seed |
| `seedCombinedSearchVolume` | Combined volume of all related keywords for the seed |
| `semrushUrl` | Semrush Keyword Overview link |
| `scrapedAt` | When the row was produced |

### How much does it cost to get Semrush keyword ideas?

The actor uses pay-per-event pricing. You pay a small fee per run and then only for keyword ideas you get.

| Event | Free and Starter | Scale | Business and up |
| --- | --- | --- | --- |
| Run start (once per run) | $0.04 | $0.04 | $0.04 |
| Keyword idea (per row) | $0.00309 | $0.002781 | $0.002472 |

Examples on the Free or Starter plan: 1 seed with 25 ideas costs about $0.12; 4 seeds with 100 ideas cost about $0.35; 40 seeds with 1,000 ideas cost about $3.13. Seeds Semrush has no data for add no keyword charges (the run start fee still applies). A run with invalid input is not charged.

### How to use it

1. Open the actor and paste your seed keywords, one per line.
2. Pick the country database.
3. Optionally lower **Ideas per seed** (10–25).
4. Start the run and download the results from the Output tab.

### Input

```json
{
  "keywords": ["vegan protein powder", "project management software"],
  "country": "us",
  "maxIdeasPerSeed": 25
}
```

| Field | Description |
| --- | --- |
| `keywords` | Seed keywords, up to 1,000. Duplicates and letter case are ignored. |
| `country` | Semrush database code: `us`, `uk`, `ca`, `au`, `in`, `de`, `fr`, `es` and 37 more. |
| `maxIdeasPerSeed` | How many ideas to keep per seed (10–25), highest volume first. |

### Output example

```json
{
  "keyword": "best vegan protein powder",
  "seedKeyword": "vegan protein powder",
  "country": "us",
  "searchVolume": 8100,
  "keywordDifficulty": 41,
  "cpc": 1.34,
  "intent": ["Commercial"],
  "ideaRank": 3,
  "isSeedKeyword": false,
  "seedRelatedKeywordsTotal": 7682,
  "seedCombinedSearchVolume": 162600,
  "semrushUrl": "https://www.semrush.com/analytics/keywordoverview/?q=best%20vegan%20protein%20powder&db=us",
  "scrapedAt": "2026-11-24T09:21:02.270Z"
}
```

### API usage

#### Node.js

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/semrush-keyword-research-scraper').call({
  keywords: ['running shoes', 'crm software'],
  country: 'us',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient
import os

client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('automation-lab/semrush-keyword-research-scraper').call(run_input={
    'keywords': ['running shoes', 'crm software'],
    'country': 'uk',
})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items)
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~semrush-keyword-research-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"keywords":["running shoes"],"country":"us"}'
```

### Use with AI agents (MCP)

Connect the actor to Claude, Cursor or VS Code through Apify MCP:

```text
https://mcp.apify.com/?tools=automation-lab/semrush-keyword-research-scraper
```

#### Claude Code

```bash
claude mcp add --transport http apify-semrush-keywords "https://mcp.apify.com/?tools=automation-lab/semrush-keyword-research-scraper"
```

#### Claude Desktop, Cursor and VS Code

```json
{
  "mcpServers": {
    "apify-semrush-keywords": {
      "url": "https://mcp.apify.com/?tools=automation-lab/semrush-keyword-research-scraper"
    }
  }
}
```

Example prompts:

- "Find Semrush keyword ideas for 'email marketing' in the UK and list the ones with KD under 30."
- "Get search volume, KD% and CPC ideas for these 20 product categories and sort them by volume."
- "Which ideas for 'project management software' have commercial intent?"

### Tips

- Start with 2–3 seeds to see the fields, then scale up. Bigger runs cost less per idea, because the run start fee is paid once.
- Filter on `isSeedKeyword: true` to get one metrics row per seed.
- Schedule a weekly run to track how volume and difficulty change.

### Integrations

- **Google Sheets**: export the dataset or connect the Apify Google Sheets integration to refresh a keyword tracker on a schedule.
- **Make, Zapier and n8n**: start a run when a new brief is created and push the keyword ideas into your content calendar.
- **Data warehouse**: read the dataset through the API and track volume and KD% over time.
- **Webhooks**: get notified when a scheduled weekly run finishes.

### Limitations

- The actor uses Semrush's free public Keyword Tool, so it returns what that tool shows: at most 25 ideas per seed and the current monthly volume (no 12-month trend, no top-10 SERP, no questions list). Full Keyword Magic Tool exports need a Semrush account.
- The seed keyword itself is usually among the ideas but not always: when Semrush ranks 25 other ideas above it, it is not in the list.
- Semrush checks every lookup for bots and limits lookups per IP, so seeds are looked up one at a time: plan on about 5–15 seconds per seed, plus up to a minute to start (100 seeds take roughly 10–25 minutes).
- Metrics are Semrush estimates, not Google Ads data.

### Troubleshooting

- **A seed has no rows**: Semrush has no data for it in that country. The log says so, and you are not charged.
- **"Unsupported country"**: use one of the country codes in the input form.
- **The run stops early**: you reached the maximum cost per run or the run timeout. Raise it or split the list; the rows already saved are kept.
- **Some seeds failed**: Semrush refused several fresh IPs in a row. The rest of the run is saved; run the failed seeds again.

### Error reporting

Failed operations report sanitized diagnostic input, actor/build/run IDs and exceptions to our private GlitchTip service. Secret fields and URL query strings are removed. Reports are kept for 30 days.

### Legality

The actor reads keyword metrics that Semrush shows publicly to anyone without logging in. It collects no personal data. Make sure your use complies with applicable laws and Semrush's terms.

This actor is independently operated and is not affiliated with, endorsed by, or sponsored by Semrush. Semrush is named only to identify the data source.

### Related actors

- [Semrush Website Traffic Stats Scraper](https://apify.com/automation-lab/semrush-website-traffic-stats-scraper): visits, traffic sources and top keywords for a domain

### FAQ

#### Do I need a Semrush account or API key?

No. The actor uses Semrush's public free Keyword Tool.

#### Is the data the same as in Semrush?

Yes for what the free tool shows: volume, KD%, CPC and intent come from Semrush for the chosen database, as on the day of the run.

#### Why is there a start fee?

Each run first has to open the Semrush page and pass its bot check, which costs the same whether you look up 1 seed or 100. The small start fee covers that once per run.

# Changelog

This Actor's version history is a separate document: https://apify.com/automation-lab/semrush-keyword-research-scraper/changelog.md

# Actor input Schema

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

Seed keywords to find ideas for, one per line (up to 1,000). Each seed returns up to 25 related keywords, usually including the seed itself. Duplicates and letter case are ignored. Example: running shoes.

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

Semrush regional database the volume, CPC and difficulty come from.

## `maxIdeasPerSeed` (type: `integer`):

How many ideas to keep per seed keyword, highest search volume first. Semrush shows at most 25 per seed.

## Actor input object example

```json
{
  "keywords": [
    "running shoes",
    "crm software"
  ],
  "country": "us",
  "maxIdeasPerSeed": 25
}
```

# Actor output Schema

## `overview` (type: `string`):

Keyword idea rows ranked by search volume for each seed.

# 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",
        "crm software"
    ],
    "country": "us"
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/semrush-keyword-research-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": [
        "running shoes",
        "crm software",
    ],
    "country": "us",
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/semrush-keyword-research-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": [
    "running shoes",
    "crm software"
  ],
  "country": "us"
}' |
apify call automation-lab/semrush-keyword-research-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation-lab/semrush-keyword-research-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/C8vXpkzSxVq12yplh/builds/knLCX9cYfX70Hjllg/openapi.json
