# Similarweb Traffic Scraper - Website Traffic Checker (`verbatim-labs/similarweb-traffic`) Actor

Similarweb traffic: send domains, get each site's website traffic - monthly visits + 3-month history, global/country/category rank, bounce rate, pages/visit, visit time, traffic sources, AI traffic from ChatGPT/Gemini/Claude, top countries, keywords. $0.95 per 1,000 on every plan; failed rows free.

- **URL**: https://apify.com/verbatim-labs/similarweb-traffic.md
- **Developed by:** [Verbatim Labs](https://apify.com/verbatim-labs) (community)
- **Categories:** SEO tools, Marketing, 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 $0.95 / 1,000 results

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

## Similarweb Traffic Scraper - Website Traffic Checker

Bulk web traffic analytics: check website traffic and domain traffic from Similarweb. Give it domains or URLs; get one row per site with Similarweb's latest monthly traffic estimate: visits and 3-month history, global/country/category rank, engagement, traffic-source mix, top countries, top keywords and AI-chatbot referrals. One row per domain (all fields under Output); failed rows are free and say why.

### Pricing

- **Run start:** $0.005 per run (per GB of memory; default 256 MB = one charge).
- **Result:** $0.95 per 1,000 on every plan. One result returned. Failed, empty and blocked items are free.
- **Free:** every row with `charged: false` (failed, empty, filtered, not started).
- **Quote:** `estimateOnly: true` returns count + max $ (10/day, up to 1000 results); only the run start ($0.005) is charged.

### Quick start

**Two sites**

```json
{"domains": ["nytimes.com", "https://www.stripe.com/pricing"]}
```

-> `{"input": "nytimes.com", "domain": "nytimes.com", "dataMonth": "2026-10", "monthlyVisits": 684684214, "globalRank": 68, "countryRank": 22, "countryRankCountry": "US", "categoryRank": 2, "bounceRate": 0.4874573072668155, "pagesPerVisit": 2.958559442029967, "avgVisitDurationSec": 219.01460305724788, "monthlyVisitsHistory": [{"month": "2026-08", "visits": 618945587}, ...], "trafficSources": {"direct": 0.5415619573821416, "searchOrganic": 0.29608525365941946, ...}, "topCountries": [{"countryCode": "US", "share": 0.69246217748131}, ...], "status": "ok"}`

**Quote first**

```json
{"domains": ["nytimes.com", "stripe.com", "notion.so"], "estimateOnly": true}
```

-> `{"status": "estimate", "units": 3, "maxUsd": 0.00785, "unitsQuoted": 3, "unitsTotal": 3, "startUsd": 0.005, "charged": false}`

### Input

| field | default | meaning |
|---|---|---|
| `domains` | - | Domains or URLs, one per item: nytimes.com, https://www.stripe.com/pricing, bücher.de. Normalized (scheme, www., path, case, IDN) and deduplicated: www.x.com and x.com are one row, charged once. ~180 per minute (480 in 2.6 min); ~4 per minute if blocked. |
| `websites` | - | Alias of Domains (other Similarweb scrapers' input name); merged and deduplicated. |
| `maxItems` | 0 | Stop after this many domains (0 = no limit); domains not started are free. ~180 per minute (480 in 2.6 min); ~4 per minute if blocked. |
| `concurrency` | 8 | Domains fetched in parallel (1-8). Requests are paced to stay under Similarweb's rate limits either way. |
| `estimateOnly` | false | Return one quote row (count and max $) instead of processing; only the run start is charged. Up to 10 per day and 1000 results per quote. |

### Output

Rows: `input`, `domain`, `status`, `siteName`, `title`, `description`, `category`, `dataMonth`, `monthlyVisits`, `monthlyVisitsHistory`, `globalRank`, `countryRank`, `countryRankCountry`, `categoryRank`, `categoryRankCategory`, `bounceRate`, `pagesPerVisit`, `avgVisitDurationSec`, `trafficSources`, `topCountries`, `topKeywords`, `aiReferralVisits`, `aiReferralShare`, `aiReferrers`, `isSmallSite`, `screenshotUrl`, `cached`. Free rows: only `input`, `domain`, `status`, `errorCode`, `error`. OUTPUT: counts and a TIP.
Every row: `status`, `errorCode`, `retryable`, `charged`, `chargedUsd`. Branch on `errorCode`, never on `error` text.

| errorCode | retryable | meaning |
|---|---|---|
| `INVALID_DOMAIN` | false | Not a domain or URL (the error names the rule); free. |
| `NO_DATA` | false | Similarweb has no estimate for this site (too small, new or parked); free. |
| `BLOCKED` | true | Similarweb rate-limited every exit we tried for this domain; free; rerun it in ~15 min. |
| `UPSTREAM_ERROR` | true | Similarweb answered with errors on every try (max 4); free; rerun. |
| `TIME_CAP` | true | Run reached its timeout before this domain started; free; rerun the rest or raise the timeout. |
| `INTERNAL_ERROR` | true | Unexpected error on our side; free; rerun. |

The `OUTPUT` record has counts by status/errorCode, `chargedUsd`, `notStarted`/`stoppedBy`; `TIP` tells an agent what to do next.

***

### Why this one

- **No 403s from a missing signature.** The top complaint about Similarweb scrapers (38 of 39 negative reviews) is "403 from data.similarweb.com": that API refuses unsigned requests. We sign each one like Similarweb's own browser extension; if its key rotates we re-read it live, no redeploy.
- **Bounded, never 10 retries for nothing:** max 4 requests and 45 s per domain; lists are paced. If Similarweb rate-limits anyway, a long list waits out the ~12-min block once (free; see run status); a short run, or a block still on after that wait, ends at once with free `BLOCKED` rows (`retryable: true`).
- **You pay only for rows with data** (`status: "ok"`). Invalid, no-data, blocked and failed rows are free and say why.
- **Integration-safe:** stable, documented field names, camelCase, typed, `null` when Similarweb gives nothing; branch on `errorCode`.
- **Fast:** ~30 ms per domain direct, ~0.7 s via the residential fallback (p50, live runs).
- **Shared monthly cache:** Similarweb updates once a month, so a domain anyone fetched this month comes back instantly with `cached: true`. Same data, same price.

### Limits

- The numbers are Similarweb's estimates (the free figures its extension shows), not your analytics. Sites below its measurement threshold come back as free `NO_DATA` rows, and so does a site with 0 visits and no global rank in the latest month (even if an older month shows a few visits): you never pay for an empty row. A site Similarweb still ranks globally is a result even when its latest month shows 0 visits (you get the rank and the visit history); filter on `monthlyVisits > 0` if you only want sites with current traffic.
- History is the last 3 months. Top countries and keywords are Similarweb's top 5. No mobile-app data.
- A subdomain (blog.x.com) is its own site. www. is dropped.
- **Speed for big lists (measured on Apify, 2026-11-13):** Similarweb blocks the direct route for ~12 min after about 50 requests from one IP. We then switch to a residential route with a fresh signed session: ~180 new domains per minute (480 uncached in 2.6 min, measured; residential answered 430 of 461 requests, no wait). If Similarweb refuses that route too, the run waits out each block (free, shown in the run status): ~4 new domains per minute (158 in 42 min, direct only). Domains already in the shared cache come back instantly. A run goes until its timeout (default 1 h); domains it can't reach in time are free retryable rows: rerun them or raise the timeout.
- **No similar sites / competitors list.** Similarweb's free extension API returns that list empty (0 of 94 real sites we fetched), so we don't ship an always-empty field.
- Accepts `websites` as well as `domains` (the input name other Similarweb scrapers use).

### Ready-made examples

Each link opens a pre-filled task with a sample run you can copy and edit:

- [Track AI chatbot website traffic](https://apify.com/verbatim-labs/similarweb-traffic/examples/track-ai-chatbot-traffic): Compare monthly visits, rank and traffic sources for ChatGPT, Claude, Perplexity, DeepSeek and Character.AI from Similarweb data.
- [Compare SaaS competitors' website traffic](https://apify.com/verbatim-labs/similarweb-traffic/examples/compare-saas-competitor-traffic): Side-by-side monthly visits, rank, bounce rate and traffic sources for SaaS competitors. Paste your rivals' domains and compare.
- [Rank news websites by monthly traffic](https://apify.com/verbatim-labs/similarweb-traffic/examples/news-site-traffic-rankings): Rank news publishers by monthly visits, global rank and top countries using Similarweb estimates. Add any media sites to the list.
- [Check ecommerce store traffic for DTC brands](https://apify.com/verbatim-labs/similarweb-traffic/examples/ecommerce-store-traffic-check): Monthly visits, trend, bounce rate and traffic sources for DTC and Shopify stores. Check competitors or prospects by domain.
- [Score B2B leads by website traffic](https://apify.com/verbatim-labs/similarweb-traffic/examples/score-leads-by-website-traffic): Enrich lead lists with monthly visits, rank and category per company domain. Bulk Similarweb data; no-data domains are free.
- [Compare travel booking site traffic](https://apify.com/verbatim-labs/similarweb-traffic/examples/travel-booking-site-traffic): Compare monthly visits, rank, top countries and traffic sources for Booking.com, Airbnb, Expedia, Tripadvisor and Vrbo.

### More from Verbatim Labs

- [YouTube Transcript, Subtitles & Captions Scraper](https://apify.com/verbatim-labs/youtube-transcript): transcripts, subtitles (SRT/VTT) and captions for any YouTube video, Short, channel, playlist or search
- [TikTok Transcript Scraper: Captions & Subtitles](https://apify.com/verbatim-labs/tiktok-transcript): TikTok video to text, with speech-to-text for videos without captions; single videos or whole profiles
- [Instagram Reels Transcript: Instagram Video to Text](https://apify.com/verbatim-labs/instagram-reels-transcript): Instagram reel video to text, with hooks, subtitles and viral scores; by URL, profile, sound or topic

### FAQ

**Am I charged for failures?** No. Only rows with `charged: true` cost anything.

**Why did a row say BLOCKED?** Similarweb rate-limited every route we had for that domain. Nothing was charged. Rerun just the `retryable: true` rows in about 15 minutes.

# Actor input Schema

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

Domains or URLs, one per item: nytimes.com, https://www.stripe.com/pricing, bücher.de. Normalized (scheme, www., path, case, IDN) and deduplicated: www.x.com and x.com are one row, charged once. ~180 per minute (480 in 2.6 min); ~4 per minute if blocked.

## `websites` (type: `array`):

Alias of Domains (other Similarweb scrapers' input name); merged and deduplicated.

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

Stop after this many domains (0 = no limit); domains not started are free. ~180 per minute (480 in 2.6 min); ~4 per minute if blocked.

## `concurrency` (type: `integer`):

Domains fetched in parallel (1-8). Requests are paced to stay under Similarweb's rate limits either way.

## `estimateOnly` (type: `boolean`):

Return one quote row (count and max $) instead of processing; only the run start is charged. Up to 10 per day and 1000 results per quote.

## Actor input object example

```json
{
  "domains": [
    "nytimes.com",
    "https://www.stripe.com/pricing"
  ],
  "maxItems": 0,
  "concurrency": 8,
  "estimateOnly": false
}
```

# Actor output Schema

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

One row per result. Rows: `input`, `domain`, `status`, `siteName`, `title`, `description`, `category`, `dataMonth`, `monthlyVisits`, `monthlyVisitsHistory`, `globalRank`, `countryRank`, `countryRankCountry`, `categoryRank`, `categoryRankCategory`, `bounceRate`, `pagesPerVisit`, `avgVisitDurationSec`, `trafficSources`, `topCountries`, `topKeywords`, `aiReferralVisits`, `aiReferralShare`, `aiReferrers`, `isSmallSite`, `screenshotUrl`, `cached`.

## `summary` (type: `string`):

Counts by status and errorCode, chargedUsd, notStarted/stoppedBy, a tip.

# 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": [
        "nytimes.com",
        "stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("verbatim-labs/similarweb-traffic").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": [
        "nytimes.com",
        "stripe.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("verbatim-labs/similarweb-traffic").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": [
    "nytimes.com",
    "stripe.com"
  ]
}' |
apify call verbatim-labs/similarweb-traffic --silent --output-dataset

```

## MCP server setup

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

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/bOlFynrTx9HLc9jOO/builds/a9FtdRNahOaIpsauX/openapi.json
