# Semrush Traffic & AI Referral Checker — Bulk Domain Stats (`yugenox/semrush-website-traffic-scraper`) Actor

Monthly visits, device split, top countries, traffic sources, ChatGPT/Claude/Gemini/Perplexity referral traffic, Authority Score, backlinks, top keywords and competitors for any list of domains, from Semrush's free public pages. No login.

- **URL**: https://apify.com/yugenox/semrush-website-traffic-scraper.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 domain 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

## Semrush Traffic & AI Referral Checker — Bulk Domain Stats

Paste a list of domains and get one clean, flat row per domain from Semrush's free public website pages: **monthly visits, desktop vs mobile, top countries, where the traffic comes from, how many visits ChatGPT, Claude, Gemini and Perplexity send**, Authority Score, backlinks, referring domains, organic vs paid search traffic, top keywords and competitors — with 6 months of history.

No Semrush account, no login, no API units.

### What you get

- **AI referral traffic** — monthly visits from ChatGPT, Claude, Gemini, Perplexity (and other AI sources Semrush lists), each with its share of all visits and 6 months of history. See which sites AI assistants actually send people to.
- **Traffic** — estimated monthly visits, change vs last month, desktop/mobile split, pages per visit, time on site, bounce rate, global / country / category rank.
- **Where visitors come from** — top countries (with device split) and top incoming sources (Direct, Google organic, referring sites), plus where visitors go next.
- **Authority** — Authority Score, backlinks, referring domains, Google penalty risk.
- **Search** — organic and paid search traffic, top 5 organic keywords (position, volume, CPC, traffic share, intent).
- **Competitors** — top 3 competing domains with relevance and visits.
- **Domains Semrush doesn't cover** get a row with `status: "notCovered"`, so your output always lines up with your input.

### Use cases

- **Sales & lead scoring** — rank a prospect list by traffic, authority or growth before outreach.
- **SEO agencies** — quick audits and pitch decks for many domains at once.
- **Investors & analysts** — screen companies by traffic trends and channel mix.
- **AI visibility tracking** — measure how much traffic AI assistants send to you and your competitors, month over month.
- **AI agents & enrichment pipelines** — turn a domain into traffic and authority numbers in one call.

### Input

| Field | What it does |
|---|---|
| Domains | Domains or URLs, one per line (`hubspot.com`, `https://www.notion.so/pricing`). Reduced to the main domain; duplicates checked once. |
| Max domains | Upper limit for the run (default 1,000). |
| Top keywords / Competitors / 6-month history | Turn sections off for slimmer rows. |
| Reuse this month's results | Domains your account already checked this calendar month come back instantly. |

```json
{ "domains": ["hubspot.com", "notion.so"] }
```

### Output (one real row, trimmed — November 2026)

```json
{
  "domain": "notion.so",
  "status": "ok",
  "dataMonth": "2026-09",
  "visits": 37639091,
  "desktopVisits": 26006797,
  "mobileVisits": 11632294,
  "authorityScore": 58,
  "backlinks": 26249180,
  "referringDomains": 180050,
  "aiReferralVisits": 176321,
  "chatgptVisits": 148952,
  "claudeVisits": 4297,
  "geminiVisits": 16990,
  "globalRank": 1222,
  "topCountries": [{ "country": "US", "visits": 7179042, "share": 0.1907, "desktopShare": 0.7306 }],
  "topTrafficSources": [{ "source": "Direct", "share": 0.788256, "visits": 20500013 }],
  "topKeywords": [{ "keyword": "notion.so", "position": 1, "searchVolume": 2400, "cpc": 3.56, "intents": ["navigational"] }],
  "url": "https://www.semrush.com/website/notion.so/overview/"
}
```

Status values: `ok`, `notCovered` (Semrush has no public page for the domain), `invalid` (not a domain), `blocked` / `error` / `notChecked` (not charged).

### Price

- **$2.50 per 1,000 domain reports** (`ok` rows, including ones from your monthly cache).
- **$1.20 per 1,000 domains without a public Semrush page** (`notCovered`).
- $0.002 per run start.
- Invalid inputs, blocked or failed lookups and domains not checked are **free**.

### Tips

- **Speed:** Semrush asks automated visitors to wait 20 seconds between pages, and this actor respects that. Plan about 20 seconds per domain: 100 domains ≈ 35 minutes, 1,000 ≈ 5.6 hours. Set the run Timeout accordingly (the actor stops cleanly before the timeout and keeps everything it collected).
- **Coverage:** Semrush publishes pages for sites with meaningful traffic. Very small or local-business sites often come back `notCovered`.
- **Freshness:** the figures are monthly and lag about 6–9 weeks (`dataMonth` tells you which month). Re-checking the same domain within a month returns the cached row instantly.
- **Depth:** these are Semrush's public pages: top 5 keywords, top 3 competitors, top 5 countries, 6 months of history. Full keyword or backlink lists are not on them.

### FAQ

**Is it legal to scrape Semrush?**
This actor reads only pages Semrush publishes openly for anyone, without logging in, and follows the site's robots.txt rules and crawl delay. It collects aggregated statistics about websites, not personal data. Whether your use is allowed can depend on your jurisdiction and purpose; check with a lawyer if you are unsure.

**Does it access any private data?**
No. It reads public pages only — no login, no account data, no personal information. The output is aggregated website statistics.

**Why is it slow for big lists?**
It honours the 20-second crawl delay Semrush asks for. In return runs are reliable and cheap.

**What if a domain has no page?**
You get a `notCovered` row so you know it was checked.

**Does the run fail if something goes wrong?**
No. Every run finishes with whatever it collected and a plain-English status message; a run report is saved in the key-value store.

# Actor input Schema

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

Domains or website URLs, one per line, e.g. "hubspot.com" or "https://www.notion.so/pricing". Each is reduced to its main domain (www and paths are dropped); duplicates are checked once.

## `maxDomains` (type: `integer`):

Most domains to check in this run. Semrush asks for 20 seconds between pages, so 100 domains take about 35 minutes (domains your account already checked this month come back instantly).

## `includeKeywords` (type: `boolean`):

Add the top 5 organic keywords (position, search volume, CPC, traffic share, intent).

## `includeCompetitors` (type: `boolean`):

Add the top 3 competing domains (relevance, monthly visits).

## `includeHistory` (type: `boolean`):

Add 6 months of history for visits (desktop/mobile), organic/paid search traffic, backlinks, referring domains and each AI referral source.

## `useCache` (type: `boolean`):

Semrush updates these pages once a month. When on, a domain your account already checked this calendar month is answered from your own cache store without waiting 20 seconds (still charged as a domain report).

## `proxyConfiguration` (type: `object`):

Apify Proxy (datacenter) is the default and comes with every Apify plan.

## Actor input object example

```json
{
  "domains": [
    "hubspot.com",
    "notion.so"
  ],
  "maxDomains": 1000,
  "includeKeywords": true,
  "includeCompetitors": true,
  "includeHistory": true,
  "useCache": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per domain: traffic, AI referrals, authority, keywords, competitors.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, counts and charges.

# 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": [
        "hubspot.com",
        "notion.so"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/semrush-website-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": [
        "hubspot.com",
        "notion.so",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/semrush-website-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": [
    "hubspot.com",
    "notion.so"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/semrush-website-traffic-scraper --silent --output-dataset

```

## MCP server setup

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