# Semrush Website Traffic Scraper – Similarweb Alternative (`rt-solutions/semrush-website-traffic-scraper`) Actor

Website traffic, rankings, traffic sources, top countries, AI traffic (ChatGPT, Gemini, Claude), organic keywords, backlinks and competitors for any domain, from Semrush's public pages. Exact numbers, 6-month history, plus the 100 most visited websites by country and industry. No login, no API key.

- **URL**: https://apify.com/rt-solutions/semrush-website-traffic-scraper.md
- **Developed by:** [RT SOLUTIONS](https://apify.com/rt-solutions) (community)
- **Categories:** SEO tools, Lead generation
- **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.
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 Website Traffic Scraper – Similarweb Alternative

Get the **traffic report of any website** from Semrush's public pages: monthly visits with a 6‑month history, global / country / industry rank, engagement, top countries, traffic sources, **AI traffic (ChatGPT, Gemini, Claude…)**, organic keywords, backlinks, Authority Score and closest competitors. Or pull the **100 most visited websites** of any country and industry.

No Semrush account, no API key, no login. **Exact numbers** (2,324,470,712 visits, not "2.32B").

### Why this one

| | This Actor | Typical Semrush / Similarweb scrapers |
|---|---|---|
| Numbers | **exact**, read from the page data | often rounded text ("2.32B") |
| History | **6 months** of visits, desktop/mobile, search traffic, backlinks, AI traffic | current month only |
| AI traffic | ChatGPT, Gemini, Claude, Perplexity… with history | rarely |
| Competitors | 7 closest, each with visits, ranks, Authority Score | names only |
| Top websites | 100 per country (240) × industry (111) | — |
| Not found / errors | **never charged** | charged |
| Price | **$5 per 1,000**, $2.50–3 on paid plans | $4–25 per 1,000 |

### Input examples

Traffic reports (paste domains or URLs — `www.`, paths and duplicates are handled):

```json
{ "domains": ["notion.so", "https://www.canva.com/pricing", "shopify.com"] }
```

With the 7 closest competitors:

```json
{ "domains": ["allbirds.com"], "includeCompetitors": true }
```

The 100 most visited retail websites in the UK, each with its full report:

```json
{ "mode": "top", "topCountry": "gb", "topCategory": "retail", "topDetails": true }
```

### Output example (shortened)

```json
{
  "domain": "notion.so",
  "status": "ok",
  "dataMonth": "2026-09",
  "visits": 37639091,
  "visitsChangePercent": 16.85,
  "globalRank": 1222,
  "countryRank": { "country": "US", "countryName": "United States", "rank": 1594 },
  "pagesPerVisit": 2.88,
  "avgVisitDurationSeconds": 718,
  "bounceRatePercent": 77.92,
  "desktopSharePercent": 69.1,
  "visitsHistory": [{ "month": "2026-09", "visits": 37639091, "desktopVisits": 26006797, "mobileVisits": 11632294 }],
  "topCountries": [{ "country": "US", "countryName": "United States", "visits": 7179042, "sharePercent": 19.07 }],
  "trafficSources": [{ "source": "Direct", "sharePercent": 78.83, "visits": 20500013 }, { "source": "Google organic", "host": "google.com", "sharePercent": 0.98 }],
  "aiTraffic": [{ "platform": "ChatGPT", "visits": 148952, "history": [{ "month": "2026-09", "visits": 148952 }] }],
  "organicSearchTraffic": 60218,
  "topKeywords": [{ "keyword": "notion", "position": 20, "searchVolume": 673000, "cpc": 3.25, "intent": ["navigational"] }],
  "authorityScore": 58,
  "backlinks": 26249180,
  "referringDomains": 180050,
  "googlePenaltyRisk": "Low",
  "competitors": [{ "domain": "…", "visits": 0, "authorityScore": 0 }],
  "semrushUrl": "https://www.semrush.com/website/notion.so/overview/"
}
```

`visits` is worldwide. In "Top websites" mode, `visitsInTopCountry` gives the visits in the chosen country (first 20 rows).

### Use cases

- **Competitor research**: traffic, sources and keywords of every competitor in one table.
- **Lead qualification**: score prospects by real website traffic and authority.
- **Market maps**: the top 100 sites of an industry in any country.
- **AI visibility**: how much traffic ChatGPT, Gemini and Claude send to a site, month by month.
- **Investors & M\&A**: 6‑month traffic trend of a target.

### Pricing

**$5 per 1,000 domain reports** on the free plan, **$3** on Starter and down to **$2.50** on Scale+ (competitors included). "Top websites" without full reports: $1 per 1,000 rows. Domains without a Semrush page and errors are not charged.

### Good to know

- Data comes from Semrush's free public "Website traffic" pages, updated monthly (`dataMonth`).
- Semrush only publishes pages for sites with enough traffic: small sites return `status: "not_found"` (free). For a subdomain without its own page (e.g. `docs.google.com`), the main domain is used and a `note` says so.
- Estimates are Semrush's, not the site's own analytics.

### Related scrapers

- [Google Trends Scraper](https://apify.com/rt-solutions/google-trends-scraper)
- [Google Ads Transparency Scraper](https://apify.com/rt-solutions/google-ads-transparency-scraper)
- [Product Hunt Scraper](https://apify.com/rt-solutions/producthunt-scraper)

# Actor input Schema

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

Domain reports, or the ranking of the most visited websites.

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

One per line: notion.so, https://www.canva.com/pricing … Paths and www are ignored. Up to thousands per run.

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

One extra page per domain. Same price.

## `topCountry` (type: `string`):

Ranking of the most visited websites in this country (mode "Top 100").

## `topCategory` (type: `string`):

Industry filter for the ranking (111 industries).

## `maxTopSites` (type: `integer`):

1 to 100.

## `topDetails` (type: `boolean`):

On: every website gets the full domain report (charged as a domain report). Off: rank and domain only, plus visits for the first 20 (cheaper).

## `maxConcurrency` (type: `integer`):

Pages fetched at the same time. 5 is fast and safe.

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

Default Apify Proxy works; residential is used automatically only if needed.

## Actor input object example

```json
{
  "mode": "domains",
  "domains": [
    "notion.so",
    "canva.com",
    "shopify.com"
  ],
  "includeCompetitors": false,
  "topCountry": "global",
  "topCategory": "all",
  "maxTopSites": 100,
  "topDetails": true,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per website: visits, history, ranks, countries, traffic sources, AI traffic, keywords, backlinks and competitors.

## `overview` (type: `string`):

Main metrics per website.

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rt-solutions/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/9YebPu9sz07qby2WA/builds/51jbADymtid4dmaF8/openapi.json
