# 🚀 Ahrefs Keyword Scraper · 1,666 Free Keywords/Month (`omkar-cloud/ahrefs-keyword-scraper`) Actor

Ahrefs Keyword Scraper gets you Ahrefs keyword data ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — Keyword Difficulty, the Google top 10, keyword & question ideas and rank checks. 💰 $3 per 1,000 keywords, no start fee. Scrape your first 1,666 keywords free every month 🚀

- **URL**: https://apify.com/omkar-cloud/ahrefs-keyword-scraper.md
- **Developed by:** [Omkar Cloud](https://apify.com/omkar-cloud) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 keyword reports

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

## Ahrefs Keyword Scraper

Ahrefs Keyword Scraper by Omkar Cloud gets you 🎯 accurate, 🔍 detailed Ahrefs keyword data.

Ahrefs uses Cloudflare Turnstile bot protection to stop you from getting its data.

Ahrefs Keyword Scraper beats it, so you get the data — no Ahrefs subscription, no captchas — and can successfully complete your project.

**$3 per 1,000 keywords.** And with Apify's free plan you get $5 of credit every month, so your first **~1,666 keywords each month are free**.

This is an excellent Actor made by Omkar Cloud, which is Rated Excellent — [4.7 based on 37 reviews on Trustpilot](https://www.trustpilot.com/review/omkar.cloud).

👉 [**Try Ahrefs Keyword Scraper free**](https://apify.com/omkar-cloud/ahrefs-keyword-scraper) — your first ~1,666 keywords are Free.

### What can I get

- 🎯 **Keyword Difficulty for any keyword** — Ahrefs KD plus the referring domains you need to reach the top 10
- 🔍 **The full Google top 10** — AI Overview, People Also Ask and every result's DR, UR, backlinks, traffic & top keyword
- 💡 **Keyword & question ideas on 21 search engines** — Google, Bing, YouTube, Amazon, ChatGPT, Perplexity & more
- 📍 **Rank checks** — where your domain ranks on Google for every keyword, with the page that ranks

### Why Ahrefs Keyword Scraper

Most other Ahrefs keyword scrapers fail you in one of four ways:

- 🗄️ **Inaccurate, cached, stale data**
- 🧩 **Low-detail data** — a KD number and nothing else
- 💸 **Pay more to get the same data**
- 🪦 **Works today, breaks next month** — nobody maintains it

Ahrefs Keyword Scraper is scraped live on every run, priced honestly, and actively maintained.

### Example: Keyword Difficulty with the Google Top 10

```json
{
  "report": "keyword_difficulty",
  "input": "raspberry pi",
  "keyword": "raspberry pi",
  "country": "US",
  "link": "https://ahrefs.com/keyword-difficulty?input=raspberry+pi&country=us",
  "difficulty": 87,
  "referring_domains_needed": 569,
  "last_updated": "2026-11-01",
  "results": [
    {
      "position": 1,
      "type": "organic",
      "title": "Raspberry Pi",
      "link": "https://www.raspberrypi.com/",
      "domain_rating": 88,
      "url_rating": 23,
      "backlinks": 64473,
      "referring_domains": 7639,
      "traffic": 71249,
      "top_keyword": "raspberry pi",
      "top_keyword_volume": 162000
    },
    {
      "position": 2,
      "type": "questions",
      "questions": [{ "question": "What exactly does a Raspberry Pi do?", "link": null }]
    }
  ]
}
```

*Trimmed for readability.* Every row is flat — each value is its own column, so CSV and Excel exports need no clean-up.

### Get Started with 1,666 Free Keywords

1. [Hit **Try for Free Button**](https://apify.com/omkar-cloud/ahrefs-keyword-scraper) — the input is pre-filled with "raspberry pi" and "best running shoes".
2. Enjoy your data 😎.

### What's in a Run

Pick the reports you want — every report is **one row per keyword**, so you pay only for what you ask for.

| Report | What you get |
|---|---|
| **Keyword Difficulty** | KD, referring domains needed to rank, and the Google top 10 with DR, UR, backlinks and traffic per result |
| **Keyword Ideas** | The top 20 keyword ideas + 20 question ideas with difficulty and volume tier, plus how many ideas Ahrefs has in total |
| **Keyword Rank** | Where your domain ranks on Google for the keyword, with the ranking page and its metrics |

### Pricing

High value, Low price.

| What | Price | What you get |
|---|---|---|
| **Any keyword report** | **$3 per 1,000** | One row per report — a keyword's KD with the top 10, its ideas, or its rank check |

No start fee — you pay only for the rows you get. Keywords Ahrefs has no data for are never billed. Control your spend with **Max results**: 1,000 rows = $3.

💡 Apify's free plan includes $5 of credit every month — about **1,666 free keywords, every month**.

👉 [**Scrape your first 1,666 keywords free**](https://apify.com/omkar-cloud/ahrefs-keyword-scraper)

### Run It from Code

Grab your API token from [Integrations Settings here](https://console.apify.com/settings/integrations) and replace `<YOUR_API_TOKEN>` below.

**Python** (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("omkar-cloud/ahrefs-keyword-scraper").call(run_input={
    "keywords": ["raspberry pi", "best running shoes"],
    "reports": ["keyword_difficulty"],
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["keyword"], row["difficulty"], row["referring_domains_needed"])
```

**Node.js** (`npm install apify-client`)

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('omkar-cloud/ahrefs-keyword-scraper').call({
    keywords: ['raspberry pi'],
    reports: ['keyword_rank'],
    rankDomain: 'raspberrypi.com',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### 💬 Have Questions? We Have Answers.

You're a business owner — we know how hard completing a project can be. So we offer full support: just message us and we'll reply ✅ with a solution within 1 working day.

[![Message Us on WhatsApp about Ahrefs Keyword Scraper](https://raw.githubusercontent.com/omkarcloud/assets/master/images/whatsapp-us.png)](https://www.omkar.cloud/l/ahrefs-scraper-apify-whatsapp)

[![Ask Us by Email about Ahrefs Keyword Scraper](https://raw.githubusercontent.com/omkarcloud/assets/master/images/ask-on-email.png)](mailto:happy.to.help@omkar.cloud?subject=Help%20with%20Ahrefs%20Keyword%20Scraper%20actor\&body=I%20need%20help%20using%20the%20Ahrefs%20Keyword%20Scraper%20actor.)

### Related Actors

- 📈 [**Ahrefs Scraper**](https://apify.com/omkar-cloud/ahrefs-scraper) — Domain Rating, backlinks, traffic, website profiles, competitors, broken links and AI visibility. $3 per 1,000 results.
- 🏆 [**Ahrefs Top Websites Scraper**](https://apify.com/omkar-cloud/ahrefs-top-websites-scraper) — Ahrefs' ranking of the most visited websites by country and category, plus the trending lists. $1 per 1,000 websites.

### Popular Actors by Omkar Cloud

- [**G2 Product Scraper**](https://apify.com/omkar-cloud/g2-product-scraper) — G2 product details, ratings & AI-found contacts
- [**Website Email Contact Scraper**](https://apify.com/omkar-cloud/website-email-contact-scraper) — emails, phones & socials from any website
- [**AliExpress Product Scraper**](https://apify.com/omkar-cloud/aliexpress-product-scraper) — live product details, SKU variants, stock & shipping
- [**Booking Scraper**](https://apify.com/omkar-cloud/booking-scraper) — Booking.com hotels: prices, ratings, rooms & amenities
- [**Etsy Scraper**](https://apify.com/omkar-cloud/etsy-scraper) — Etsy products: prices, discounts, shops & variations

👉 [**Scrape your first 1,666 keywords free now**](https://apify.com/omkar-cloud/ahrefs-keyword-scraper)

# Actor input Schema

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

Keywords or phrases to research. Rows carry an `input` field with what you entered.

## `reports` (type: `array`):

Reports to scrape for every keyword — each is one row:<br>• <b>Keyword Difficulty</b>: KD, referring domains needed to rank, and the Google top 10 (AI Overview, People Also Ask, every organic result with DR, UR, backlinks and traffic)<br>• <b>Keyword Ideas</b>: the top 20 keyword ideas and 20 question ideas with difficulty and volume tier, plus the totals<br>• <b>Keyword Rank</b>: where the domain below ranks for the keyword

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

2-letter country code of the Google results and keyword data (us, gb, in, de, ca, au ...).

## `searchEngine` (type: `string`):

Where the keyword ideas come from.

## `includeQuestions` (type: `boolean`):

Add question-form keyword ideas ("what is raspberry pi") to every Keyword Ideas row.

## `rankDomain` (type: `string`):

Needed for the Keyword Rank report: the domain or page whose Google position to find (raspberrypi.com).

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

Maximum number of rows (reports) to scrape in this run. Use it to control your cost (1,000 rows = $3).

## Actor input object example

```json
{
  "keywords": [
    "raspberry pi",
    "best running shoes"
  ],
  "reports": [
    "keyword_difficulty",
    "keyword_ideas"
  ],
  "country": "us",
  "searchEngine": "google",
  "includeQuestions": true,
  "maxResults": 1000
}
```

# Actor output Schema

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

Every row with every field.

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

Keyword Difficulty, the Google top 10, keyword ideas and rank checks.

## `serp` (type: `string`):

Every keyword's KD with the full Google top 10.

# 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": [
        "raspberry pi",
        "best running shoes"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("omkar-cloud/ahrefs-keyword-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": [
        "raspberry pi",
        "best running shoes",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("omkar-cloud/ahrefs-keyword-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": [
    "raspberry pi",
    "best running shoes"
  ]
}' |
apify call omkar-cloud/ahrefs-keyword-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,omkar-cloud/ahrefs-keyword-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/6ze5ybCkcpQrdvP3z/builds/6YxwGI4TjJJ4uhupZ/openapi.json
