# Semrush Scraper (`datahamster/semrush-scraper`) Actor

Semrush scraper for domain traffic without a Semrush account: visits, Authority Score, ranks, organic and paid traffic, backlinks, referring domains, top countries, AI traffic and keywords. Covers the ~175,000 sites in Semrush's public Top Websites list. Monitor mode alerts on traffic changes.

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

## Pricing

from $2.80 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Scraper

Semrush Scraper gives you Semrush's traffic overview for a list of domains: monthly visits, Authority Score, global and country rank, organic and paid search traffic, backlinks, referring domains, top countries, traffic sources, AI traffic, competitors and top keywords, one row per domain with the date it was checked. You don't need a Semrush account. It reads Semrush's free public overview page and nothing else.

**Try it:** the prefilled example returns 3 rows in about 7 seconds and costs about $0.011. Results cost $3.50 per 1,000.

Works for the ~175,000 sites in Semrush's public Top Websites list; smaller sites and subdomains return no row and cost nothing.

### Why this one

- **No Semrush account anywhere.** Every row comes from the public page `semrush.com/website/<domain>/overview/` that Semrush shows to anyone. There's no login, cookie or API key on your side or ours, so no account can get banned mid-run.
- **Cheaper on every plan.** It's $3.50 per 1,000 domains ($3.15 on Silver, $2.80 on Gold and above). The current leader for "semrush" charges $15 per 1,000 on Apify's free plan and $4 to $5 on paid plans.
- **Bulk lists.** Paste hundreds of well-known domains. There's no 100-domain cap per run, and duplicates and `www.` variants are merged before any request.
- **Monitor mode.** Schedule it and you only get the domains whose visits or organic traffic moved by at least 10% (you can change that), or whose Authority Score changed. Alerts can go to a webhook or Telegram.
- **Exact numbers.** You get 1436619552 visits, not "1.44B", plus six months of visits, organic traffic and backlink history in the same row.

### What you get

Real rows from the example dataset (`domains: ["github.com", "stripe.com", "x-kom.pl"]`, checked 2026-11-04, Semrush data for September 2026):

| domain | visits | visitsChangePercent | authorityScore | globalRank | organicTraffic | backlinks | referringDomains |
|---|---|---|---|---|---|---|---|
| github.com | `1436619552` | `18.48` | `100` | `24` | `72449659` | `5088322474` | `4217125` |
| stripe.com | `232542245` | `11.79` | `79` | `145` | `4963905` | `141005083` | `732469` |
| x-kom.pl | `9265281` | `10.21` | `66` | `6299` | `3442472` | `1896268` | `6881` |

A domain outside Semrush's free page set (apify.com in our test) returns no row and is listed in `NOT_COVERED`: `{"domains": ["apify.com"]}`.

One item of github.com's `topCountries` and of its `aiTraffic`:

```json
{"countryCode": "BD", "country": "Bangladesh", "visits": 350209633, "sharePercent": 24.38, "desktopSharePercent": 98.86, "mobileSharePercent": 1.14}
{"platform": "ChatGPT", "domain": "chatgpt.com", "visits": 11744546, "sharePercent": 0.873}
```

Full row: `id`, `url`, `domain`, `brandName`, `categories`, `checkedDate`, `dataMonth`, `semrushUpdatedAt`, `globalRank`, `countryRank`, `countryRankCountryCode`, `countryRankCountry`, `categoryRank`, `categoryRankCategory`, `visits`, `visitsChangePercent`, `desktopVisits`, `mobileVisits`, `pagesPerVisit`, `avgVisitDurationSeconds`, `bounceRatePercent`, `organicTraffic`, `organicTrafficChangePercent`, `paidTraffic`, `paidTrafficChangePercent`, `authorityScore`, `backlinks`, `backlinksChangePercent`, `referringDomains`, `referringDomainsChangePercent`, `topCountries`, `trafficSources`, `outgoingDomains`, `aiTraffic`, `competitors`, `topKeywordsDatabase`, `topOrganicKeywords`, `visitsHistory`, `searchTrafficHistory`, `backlinksHistory`, `query`, `scrapedAt`.

- `checkedDate` is the day the actor read the page. `dataMonth` is the month Semrush's numbers describe, and `semrushUpdatedAt` is when Semrush last rebuilt the page.
- Percent fields are percents (`40.11` means 40.11%). `*ChangePercent` compares with the previous month.
- `topCountries` holds the top 5 countries with visits, share and desktop/mobile split.
- `trafficSources` and `outgoingDomains` list the top 5 places visitors came from and went to next (Semrush's desktop journey).
- `aiTraffic` gives visits from ChatGPT, Claude, Gemini, Perplexity and other AI platforms.
- `competitors` lists the top 3 sites the same audience visits.
- `topOrganicKeywords` has the top 5 keywords with position, volume, CPC, traffic share and intent, all from the `topKeywordsDatabase` country Semrush picked for the page.

### Use cases

- **SEO agencies** size up a prospect list in one run: traffic, Authority Score and backlinks for every domain before the first call.
- **Marketers** benchmark their own site against competitors every month and get pinged when a competitor's traffic jumps.
- **Investors and analysts** track the web traffic of a portfolio or watchlist of companies over time.
- **Market researchers** compare the biggest sites in a category by traffic, top countries and AI traffic share.

### Try it in 10 seconds

Hit **Start**. The input already works with `domains: ["github.com", "stripe.com", "x-kom.pl"]` and `maxItems: 10`, and nothing is required.

To watch domains on a schedule, save the input as a task, set **Mode** to `monitor` and add a schedule. Cron `0 8 1,15 * *` runs on the 1st and 15th; Semrush refreshes these pages about once a month. Each run then returns only the domains whose visits or organic traffic moved by at least `minTrafficChangePercent` since they were last reported, or whose Authority Score changed.

### Related actors

- [Google Trends Scraper](https://apify.com/datahamster/google-trends-scraper): search interest over time for the brands behind the domains.
- [Google Ads Transparency Scraper](https://apify.com/datahamster/google-ads-transparency): the ads a domain's advertiser runs on Google.
- [LinkedIn Company Scraper](https://apify.com/datahamster/linkedin-company-scraper): size, industry and followers of the company behind a domain.
- [Website to Markdown](https://apify.com/datahamster/website-to-markdown): the content of the pages themselves.

### Input

| Field | Meaning | Default |
|---|---|---|
| `domains` | Domains or URLs, one per line: `stripe.com`, `https://www.github.com/pricing`, or a Semrush overview URL. Only the host is used and `www.` is dropped. | none (prefilled with `["github.com", "stripe.com", "x-kom.pl"]`) |
| `maxItems` | Stop after this many domain rows | `100` |
| `mode` | `scrape`, or `monitor` (only domains that changed since the last run) | `scrape` |
| `minTrafficChangePercent` | Monitor mode: how much visits or organic traffic must move before a domain is reported again | `10` |
| `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor-mode state key and alert targets | empty |

### How it works

1. Each entry is turned into a bare domain. Anything that isn't a domain name is skipped and logged.
2. The actor reads `semrush.com/website/<domain>/overview/` once per domain, the same page a visitor or search engine gets. The numbers come from the data object the page is built from, so they're exact.
3. If Semrush has no free page for a domain, it answers with its "We got lost" page (HTTP 404). That domain is skipped, you aren't charged for it, and it's listed in the run log and in the `NOT_COVERED` record of the run's key-value store.
4. If a page is refused, the actor tries once more after a short wait, then moves to a datacenter and then a residential proxy. If every domain was refused and nothing was returned, `RUN_SUMMARY` says `blocked` instead of an empty `no_matches`.

### Pricing

| Event | Price |
|---|---|
| result | $0.0035 per domain ($3.50 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.0035 per new or changed domain |

You pay only for domains that come back with data. Domains Semrush doesn't cover cost nothing. Platform usage is billed by Apify on top, and on tier `none` it's a fraction of a cent per run.

**Found it useful?** A short review on the Store page helps other people find this actor and tells us what to improve. If something is wrong, open an issue on the actor page and we'll answer within a day.

### Limits

- **Coverage.** Semrush builds free pages only for the domains in its public Top Websites set, about 175,000 domains in November 2026. Big and mid-size sites (github.com, stripe.com, allegro.pl, x-kom.pl) are there. Many smaller sites, and subdomains like docs.github.com, return 404 and are skipped without charge.
- **No country database choice.** The free page has one fixed view. Rank and keywords use the country Semrush picked for the domain (`countryRankCountryCode`, `topKeywordsDatabase`). Traffic numbers are worldwide.
- **Monthly data.** `dataMonth` is usually the previous full month, and running daily won't give you daily numbers.
- **Not on the free page.** Traffic cost, ad spend, branded traffic share and full keyword or backlink lists sit behind Semrush's login, so the actor doesn't return them.
- Requests are paced at about one domain per second, so 1,000 domains take roughly 20 to 30 minutes.

### FAQ

**Do I need a Semrush account or API key?** No. The actor only reads Semrush's public pages.

**Why did a domain return nothing?** In almost every case it's outside Semrush's free page set (HTTP 404). Check the `NOT_COVERED` record, or the log line `domains: ok=2 not_covered=1 walled=0`.

**Is the data the same as in Semrush?** It's what the free overview page shows. Semrush's paid app can show a different month or a country database you choose.

### What is NOT collected

Domain-level data only. No people, no contacts, no user accounts.

### Changelog

- 0.1: first release. Free overview page for a list of domains, with exact numbers, 6-month history, AI traffic, competitors, top keywords and monitor mode with a traffic-change threshold.

# Actor input Schema

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

Domains or URLs, one per line: stripe.com, https://www.github.com/pricing. Only the host is used and www. is dropped. Domains without a free Semrush page are skipped and not charged.

## `minTrafficChangePercent` (type: `number`):

Monitor mode only: report a domain again when its visits or organic traffic moved by at least this many percent since it was last reported (an Authority Score change is always reported).

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

Stop after this many domain rows (you are charged only for pushed rows)

## `mode` (type: `string`):

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "domains": [
    "github.com",
    "stripe.com",
    "x-kom.pl"
  ],
  "minTrafficChangePercent": 10,
  "maxItems": 10,
  "mode": "scrape"
}
```

# Actor output Schema

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

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# 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": [
        "github.com",
        "stripe.com",
        "x-kom.pl"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/semrush-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": [
        "github.com",
        "stripe.com",
        "x-kom.pl",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/semrush-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": [
    "github.com",
    "stripe.com",
    "x-kom.pl"
  ],
  "maxItems": 10
}' |
apify call datahamster/semrush-scraper --silent --output-dataset

```

## MCP server setup

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