# Website Traffic Checker (`pumpkinapi/website-traffic-checker`) Actor

Check website traffic for a list of domains: monthly visits, bounce rate, pages per visit, ranks, Authority Score and AI traffic from Semrush, plus Domain Rating, search traffic, traffic value and linking websites from Ahrefs. One row per domain, with changes since the last run.

- **URL**: https://apify.com/pumpkinapi/website-traffic-checker.md
- **Developed by:** [Pumpkin Farm](https://apify.com/pumpkinapi) (community)
- **Categories:** SEO tools, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 domains

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

Website traffic checker for a list of domains: paste domains or URLs and get one row per domain with monthly visits, bounce rate, pages per visit, global and country rank, Authority Score and AI assistant traffic from the public Semrush overview, plus Domain Rating, organic search traffic, traffic value, keyword count and linking websites from the public Ahrefs pages. The headline numbers are plain columns, the history, top countries, keywords, competitors and traffic sources are nested below them.

- Price: $5 per 1,000 domains with data. Platform usage included. A domain neither source knows is a free row.
- Input: domains or URLs, one per line. www., paths and https:// are removed for you.
- Output: visits, engagement, ranks, Authority Score, AI traffic, Domain Rating, search traffic, traffic value, linking websites, and what changed since your last run.
- Measured: 3 domains in 3 seconds; 284 domains in 62 seconds for $0.0054 of platform usage.

Found a bug, need a field, or want a new Actor? Open an issue on the **Issues** tab. If it works well for you, a short review helps others find it.

### How to use it

1. Paste domains or URLs into **Domains**, one per line. `https://www.github.com/apify` becomes `github.com`.
2. Keep **Sources** on Semrush and Ahrefs, or pick one. Semrush is the one with visits, engagement and AI traffic, Ahrefs the one with Domain Rating, and each knows sites the other does not.
3. Set **History months** to the number of monthly points you want in each row, or 0 to leave the history out.
4. Turn on **Compare with the last run** when you check the same list again and again. Each row then gets a `changes` object with what moved since the previous run.
5. Start the run and download the dataset as JSON, CSV or Excel.

```json
{
    "domains": ["wikipedia.org", "github.com", "apify.com"],
    "sources": "both",
    "historyMonths": 12,
    "trackChanges": true
}
```

### What data you get

One row per domain. Columns with a plain value show as table columns in Apify and in CSV, details sit in the `semrush` and `ahrefs` objects. Percent columns run from 0 to 100. Every column is present in every row, an empty value is `null`.

| Columns | Source | Meaning |
| --- | --- | --- |
| `visits`, `visitsChangePercent` | Semrush | Monthly visits and the change from the month before |
| `pagesPerVisit`, `timeOnSiteSeconds`, `bounceRatePercent` | Semrush | Engagement |
| `desktopSharePercent`, `mobileSharePercent` | Semrush | Device split |
| `globalRank`, `countryRank`, `countryRankCountry`, `categoryRank`, `categoryRankCategory`, `categories` | Semrush | Ranks by traffic |
| `authorityScore`, `backlinks`, `referringDomains` | Semrush | Authority Score and link profile |
| `organicSearchTraffic`, `paidSearchTraffic` | Semrush | Search traffic by channel |
| `aiTrafficVisits`, `aiTrafficSharePercent` | Semrush | Visits sent by AI assistants such as ChatGPT, Gemini, Perplexity and Claude |
| `domainRating` | Ahrefs | Domain Rating, 0 to 100 |
| `ahrefsSearchTraffic`, `ahrefsSearchTrafficChange`, `ahrefsTrafficValueUsd`, `ahrefsKeywords` | Ahrefs | Organic search traffic, its change from the month before, what that traffic would cost in ads, keywords the site ranks for |
| `ahrefsReferringDomains`, `ahrefsReferringDomainsChange` | Ahrefs | Linking websites and the change from the month before |
| `ahrefsGlobalRank`, `ahrefsCountryRank`, `ahrefsCategoryRank`, `ahrefsCategory` | Ahrefs | Ranks by traffic. `ahrefsGlobalRankText` reads `>1000` for sites outside the ranked list |
| `semrushDataDate`, `ahrefsDataDate` | both | The month the numbers describe |
| `hasSemrushData`, `hasAhrefsData`, `error`, `note` | both | What each source answered, and why a row is empty |
| `changes` | both | Differences since the previous run, with **Compare with the last run** |

The `semrush` object holds `visitsHistory` by device, `topCountries`, `topKeywords` with position, search volume, CPC and intent, `competitors`, `trafficSources` and `outgoingTraffic` with shares, `aiTraffic` per assistant with its history, and the history of backlinks, referring domains and search traffic. The `ahrefs` object holds `trafficHistory` with the traffic value per month, `referringDomainsHistory`, `topCountries`, `topKeywords`, `competitors` and `similarlyRanked`.

A real row, with the two detail objects left out:

```json
{
    "domain": "github.com",
    "checkedAt": "2026-11-07T02:00:47.375Z",
    "semrushDataDate": "2026-09-01",
    "visits": 1436619552,
    "visitsChangePercent": 18.48,
    "pagesPerVisit": 6.075,
    "timeOnSiteSeconds": 719,
    "bounceRatePercent": 40.11,
    "desktopSharePercent": 81.19,
    "mobileSharePercent": 18.81,
    "globalRank": 24,
    "countryRank": 9,
    "countryRankCountry": "BD",
    "categoryRank": 1,
    "categoryRankCategory": "Computer Software and Development",
    "authorityScore": 100,
    "backlinks": 5088322474,
    "referringDomains": 4217125,
    "organicSearchTraffic": 72449659,
    "paidSearchTraffic": 21088,
    "aiTrafficVisits": 19149673,
    "aiTrafficSharePercent": 1.58,
    "ahrefsDataDate": "2026-10-01",
    "domainRating": 97,
    "ahrefsSearchTraffic": 42494162,
    "ahrefsSearchTrafficChange": 2027090,
    "ahrefsTrafficValueUsd": 22587530,
    "ahrefsKeywords": 5600000,
    "ahrefsReferringDomains": 1959162,
    "ahrefsReferringDomainsChange": 54002,
    "ahrefsGlobalRank": 88,
    "ahrefsCategoryRank": 9,
    "ahrefsCategory": "Computers & Electronics",
    "siteTitle": "GitHub: Where the world builds software"
}
```

### How much does it cost?

| Event | Price |
| --- | --- |
| Domain with data | $5.00 per 1,000 on the Free plan, $4.50 on Starter, $4.00 on Scale, $3.50 on Business |
| Actor start | $0.00005 |

You pay for a row only when Semrush or Ahrefs had data for it. Rows for unknown domains and for entries that are not domains cost nothing. Checking 100 domains once a day makes about 3,000 rows a month, which is $15 on the Free plan. The Apify platform usage of a run is included in the price.

### How to watch competitors month by month

1. Put the competitor domains in **Domains** and turn on **Compare with the last run**.
2. Schedule the Actor in Apify, for example once a week.
3. Read `changes` in each row: `visitsChange` and `visitsChangePercent`, `domainRatingChange`, `authorityScoreChange`, `ahrefsSearchTrafficChange`, `ahrefsReferringDomainsChange`, and the rank changes, where a positive number means the site moved up. `semrushDataUpdated` and `ahrefsDataUpdated` tell you whether the sources published a new month since the previous run, so you can skip runs where nothing moved.

The snapshots live in a named key-value store called `website-traffic-checker` in your Apify account, one record for all domains, so the first run of a domain has `changes` set to `null`. In a test, the second run of 3 domains took 3 seconds and filled `changes` for all 3 rows.

### How to size a list of prospects

1. Export the domains from your CRM, with or without URLs.
2. Keep both **Sources** on. Each knows sites the other does not: in a list of 27 sales tools, data tools and online shops, Semrush knew 17, Ahrefs 15, and together they covered 22.
3. Sort the dataset by `ahrefsSearchTraffic` or `domainRating`, and use `ahrefsTrafficValueUsd` to see how much the organic traffic would cost in ads.

### Limits

- Both sources publish pages for larger sites only. The Ahrefs pages come from ahrefstop.com, which lists about 194,000 of the most visited websites. In a test of 284 domains from the top lists of six countries, Semrush had a page for 229 and Ahrefs for 283, and every domain had at least one source. In a list of 27 sales tools, data tools and online shops, 5 were in neither source, among them phantombuster.com and scrapingbee.com. Those rows are free. Keep both sources on unless you only need one.
- The numbers are monthly estimates by the two sources, not analytics from the site itself. Semrush visits count all channels, Ahrefs traffic counts organic search only, so the two differ by design.
- Semrush pages carry up to 6 months of history and describe the previous full month. Ahrefs pages carry up to 10 years of monthly traffic and the Domain Rating of the month before.
- Ahrefs ranks only the top 1,000 sites worldwide and per country. Outside that list `ahrefsGlobalRank` is `null` and `ahrefsGlobalRankText` reads `>1000`.
- Keyword volumes, keyword traffic and competitor traffic from Ahrefs are rounded the way the page shows them, for example 1.1M. Semrush keyword volumes are exact.
- Subdomains and www: when neither source knows `blog.example.com`, the row shows `example.com` and says so in `note`. Ahrefs has pages for some large subdomains, and those are used when they exist. A few sites are listed as `www.example.com` only, for example `www.nhs.uk`, and the Actor tries that form last.
- One run takes up to 10,000 entries. Duplicates are checked once.
- Uses only public pages. No login, no API keys, no proxies.

### API and integrations

Start runs from the Apify API or the Apify client for JavaScript and Python, or schedule them in Apify. Send the dataset on to Google Sheets, Make, Zapier, n8n or a webhook with the Apify integrations. For a crawl of your own site with page scores and broken links, see [SEO Audit Crawler](https://apify.com/pumpkinapi/seo-audit-crawler).

### FAQ

**Why does a row have Ahrefs data but no Semrush data?** Semrush publishes overview pages for a smaller set of sites. The row keeps the Ahrefs columns, `hasSemrushData` is `false` and `error` is `null`, because the row has data and is charged.

**Why do visits and search traffic disagree?** They measure different things. Semrush `visits` estimates all visits from every channel, Ahrefs `ahrefsSearchTraffic` estimates visits from organic search only. Compare the Semrush `organicSearchTraffic` column with the Ahrefs one if you want a like-for-like pair.

**Do I need a Semrush or Ahrefs account?** No. The Actor reads the pages both companies publish for everyone.

**How fresh are the numbers?** Both sources publish monthly. `semrushDataDate` and `ahrefsDataDate` tell you the month each row describes, and the history arrays hold the months before.

**What does AI traffic mean?** Visits that arrived from AI assistants, as Semrush estimates them. The `aiTraffic` list splits them by assistant, with a monthly history for each.

**What happens with a domain nobody knows?** The row is free. It has `hasSemrushData` and `hasAhrefsData` set to `false` and `error` explains it. A run with only unknown domains still succeeds, so a scheduled list never breaks because of one dead site.

*This Actor is an independent tool with no connection to Semrush or Ahrefs. All trademarks belong to their owners.*

# Actor input Schema

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

Domains or URLs to check, one per line. www., paths and https:// are removed. Up to 10,000 per run.

## `sources` (type: `string`):

Semrush gives visits, engagement, ranks, Authority Score and AI traffic. Ahrefs gives Domain Rating, search traffic, traffic value, keywords and linking websites. Each source knows sites the other does not, so both together fill the most rows.

## `historyMonths` (type: `integer`):

How many months of history to keep in each row: Semrush has up to 6, Ahrefs up to 10 years. 0 removes the history arrays.

## `trackChanges` (type: `boolean`):

Remembers each domain in a named key-value store called website-traffic-checker and fills the changes field with what moved since the previous run: visits, Domain Rating, Authority Score, ranks, linking websites.

## Actor input object example

```json
{
  "domains": [
    "wikipedia.org",
    "github.com",
    "apify.com"
  ],
  "sources": "both",
  "historyMonths": 12,
  "trackChanges": false
}
```

# Actor output Schema

## `domains` (type: `string`):

One row per domain with traffic, engagement, ranks, Authority Score, Domain Rating and AI traffic.

# 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": [
        "wikipedia.org",
        "github.com",
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pumpkinapi/website-traffic-checker").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": [
        "wikipedia.org",
        "github.com",
        "apify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("pumpkinapi/website-traffic-checker").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": [
    "wikipedia.org",
    "github.com",
    "apify.com"
  ]
}' |
apify call pumpkinapi/website-traffic-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pumpkinapi/website-traffic-checker"
        }
    }
}
```

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/zCdMKuKhOE0hcGuqL/builds/4fkSXSG8LEofF20aZ/openapi.json
