# Ahrefs Traffic Scraper (`piotrv1001/ahrefs-traffic-scraper`) Actor

Estimate any website's organic search traffic with Ahrefs data: monthly organic visits, traffic value in USD, 6-month history, top pages, top countries and top keywords with positions and search volume. Worldwide or one country. No Ahrefs account needed.

- **URL**: https://apify.com/piotrv1001/ahrefs-traffic-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** SEO tools
- **Stats:** 5 total users, 4 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 traffic reports

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

### 🚀 Ahrefs Traffic Scraper

Estimate **any website's organic search traffic** with Ahrefs data. The **Ahrefs Traffic Scraper** returns monthly organic visits, the traffic's value in US dollars, a 6-month traffic history, and the site's top pages, top countries and top keywords with their positions and search volumes. Use it for competitor research, market sizing, M\&A and investment screening, affiliate and publisher vetting, or tracking a list of sites over time. No Ahrefs account needed.

### ✨ Features

- 📈 **Monthly Organic Traffic**: Estimated monthly visits from organic search, plus what that traffic would cost in paid ads (traffic value, USD).
- 🗓️ **6-Month History**: Month-by-month organic traffic to spot growth, decline and algorithm-update hits.
- 📄 **Top Pages**: The pages that bring the most search traffic, with their visits and share.
- 🌍 **Top Countries**: Where the search traffic comes from.
- 🔑 **Top Keywords**: The keywords that drive traffic, with ranking position and monthly search volume.
- 🎯 **Worldwide or One Country**: Leave the country empty for worldwide traffic, or set `us`, `gb`, `de`…

### 🛠️ How It Works

1. **Add domains or page URLs** – a domain covers the whole site including subdomains; a page URL covers that exact page.
2. **Optionally pick a country** – a two-letter code such as `us` or `de`.
3. **Run the Scraper** – one report per domain, downloadable as JSON, CSV or Excel, or through the API.

### ⚙️ Input

| Field               | What it does                                                                                      |
| ------------------- | ------------------------------------------------------------------------------------------------- |
| **Domains or URLs** | Domains (`apify.com`) or page URLs (`https://apify.com/store`).                                   |
| **Country**         | Two-letter country code for traffic from one country. Empty = worldwide.                          |
| **Max results**     | Stop after this many domains. Default 50.                                                         |

With an empty input the scraper reports on `apify.com`, `ahrefs.com` and `semrush.com`, worldwide.

```json
{
    "domains": ["zalando.de", "otto.de", "aboutyou.de"],
    "country": "de",
    "maxItems": 100
}
```

### 💰 Pricing

Pay only for the reports you get — no monthly rental.

| Event              | Price                              | What you get                                                                                                     |
| ------------------ | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| **Traffic report** | $0.008 per domain ($8 per 1,000)   | Monthly organic traffic, traffic value (USD), 6-month history, top pages, top countries and top keywords          |
| **Actor start**    | $0.00005 per run                   | Charged once when the run starts.                                                                                |

Examples: 50 domains = $0.40 · 500 competitor sites = $4.00.

### 📊 Sample Output Data

```json
{
    "domain": "ahrefs.com",
    "scope": "domain with subdomains",
    "country": "all",
    "organicTrafficMonthly": 3760681,
    "trafficValueUsdMonthly": 4959451.5,
    "trafficHistory": [
        { "month": "2026-08", "organicTraffic": 4256559 },
        { "month": "2026-09", "organicTraffic": 3872371 },
        { "month": "2026-10", "organicTraffic": 3647086 }
    ],
    "topPages": [
        { "url": "https://ahrefs.com/backlink-checker", "organicTraffic": 938754, "sharePercent": 50.8 },
        { "url": "https://ahrefs.com/", "organicTraffic": 113102, "sharePercent": 6.1 }
    ],
    "topCountries": [
        { "country": "us", "sharePercent": 49.4 },
        { "country": "in", "sharePercent": 13 }
    ],
    "topKeywords": [
        { "keyword": "backlink checker", "position": 1, "searchVolume": 1090000 },
        { "keyword": "ahrefs", "position": 1, "searchVolume": 75000 }
    ],
    "scrapedAt": "2026-10-14T08:08:38.241Z"
}
```

(History and lists shortened here; a real row carries 6 months of history and up to 5 top pages, countries and keywords.)

### ❓ FAQ

**How accurate are the numbers?** They are Ahrefs' estimates of organic search traffic, not analytics data. They are best for comparing sites and spotting trends.

**Do I need an Ahrefs account?** No. The scraper uses the data Ahrefs shows publicly in its free tools.

**Need backlinks or DR too?** See the [Ahrefs Backlinks Scraper](https://apify.com/piotrv1001/ahrefs-backlinks-scraper) and [Ahrefs Domain Rating Scraper](https://apify.com/piotrv1001/ahrefs-domain-rating-scraper).

### 🔗 More SEO Actors

- [Ahrefs Domain Rating Scraper](https://apify.com/piotrv1001/ahrefs-domain-rating-scraper): Domain Rating, backlink and referring-domain counts for a list of domains.
- [Ahrefs Backlinks Scraper](https://apify.com/piotrv1001/ahrefs-backlinks-scraper): the top backlinks pointing at any domain, with anchor text and source DR.
- [Ahrefs Keyword Difficulty Scraper](https://apify.com/piotrv1001/ahrefs-keyword-difficulty-scraper): Keyword Difficulty plus the top-10 Google results with DR and traffic.
- [Google Keyword Volume Scraper](https://apify.com/piotrv1001/google-keyword-volume-scraper): monthly Google search volume, CPC and competition for your keyword list.
- [Google Keyword Suggestions Scraper](https://apify.com/piotrv1001/google-keyword-suggestions-scraper): related keyword ideas around a seed, with volume and difficulty.
- [Google Ranked Keywords Scraper](https://apify.com/piotrv1001/google-ranked-keywords-scraper): every keyword a domain ranks for on Google, with position and URL.

This actor is not affiliated with or endorsed by Ahrefs.

# Actor input Schema

## `domains` (type: `array`):

Domains (apify.com) or page URLs. A domain covers its subdomains; a page URL is checked as that exact URL.

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

Two-letter country code (us, gb, de…) to see traffic from one country. Leave empty for worldwide traffic.

## `maxItems` (type: `integer`):

Stop after this many domains.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "ahrefs.com",
    "semrush.com"
  ],
  "maxItems": 50
}
```

# 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 = {
    "domains": [
        "apify.com",
        "ahrefs.com",
        "semrush.com"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/ahrefs-traffic-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 = {
    "domains": [
        "apify.com",
        "ahrefs.com",
        "semrush.com",
    ],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/ahrefs-traffic-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 '{
  "domains": [
    "apify.com",
    "ahrefs.com",
    "semrush.com"
  ],
  "maxItems": 50
}' |
apify call piotrv1001/ahrefs-traffic-scraper --silent --output-dataset

```

## MCP server setup

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