# Similarweb Scraper – Website Traffic Data (`blessed_button/similarweb-traffic-scraper`) Actor

Sync the latest available Similarweb website traffic data for up to 100 domains per run: monthly visits, rankings, engagement, traffic sources, countries and available keywords. Export JSON, CSV or Excel, or automate with the Apify API.

- **URL**: https://apify.com/blessed_button/similarweb-traffic-scraper.md
- **Developed by:** [shoes feiyue](https://apify.com/blessed_button) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 successful domain 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 Scraper – Website Traffic Data

Similarweb Scraper syncs the latest available monthly website traffic data from Similarweb for **1–100 domains per run**. Compare monthly visits, rankings, engagement, traffic sources, top countries and available keywords. Export JSON, CSV or Excel, or retrieve results with the Apify API. Field availability varies by domain.

- **Bulk website traffic checker:** compare competitors or enrich a prospect list in one run.
- **Pay for successful results:** $1 per 1,000 valid results on the Free plan, with lower prices on paid Apify plans. No startup charge.
- **Dated monthly data:** check each result's `SnapshotDate` before comparing reporting periods.
- **Workflow access:** use Python, cURL or an n8n HTTP Request node to send data to a spreadsheet or database.

### Quick start: check website traffic in bulk

1. Click **Try for free**, then enter your domain names in **Input**.
2. Start with a few domains and set a maximum cost per run.
3. Click **Start**, then open **Output** when the run finishes.
4. Check the results and the run's `SUMMARY` / `ERRORS`, then export JSON, CSV or Excel.

```json
{ "domains": ["github.com", "example.com"] }
```

Use bare hostnames without `https://`, paths or ports. Repeated hostnames are normalized and processed once. Split lists longer than 100 domains into separate batches. Up to 16 domain lookups run concurrently; 100 is the input limit, not a promise of 100 simultaneous requests.

### What can you use the data for?

| Task | Useful data |
| --- | --- |
| Compare competitors' website traffic | Monthly visits, visit history and global/country rank |
| Enrich a sales or research list | Domain, title, traffic size, country and category where available |
| Review acquisition channels | Direct, organic/paid search, referrals, social and other available traffic shares |
| Track a portfolio each month | Snapshot date, month-by-month visits and engagement metrics |

Use Apify **Schedules** for recurring runs. The source data is monthly, so frequent runs do not turn it into live visitor analytics.

### Output

#### Example: a real domain result

This shortened result was collected on **November 18, 2026**, with an October 2026 snapshot. Values are a historical example; additional available fields remain in the full JSON.

```json
{
  "SiteName": "bigjpg.com",
  "SnapshotDate": "2026-10-01T00:00:00+00:00",
  "EstimatedMonthlyVisits": {
    "2026-08-01": 1539923,
    "2026-09-01": 1482211,
    "2026-10-01": 1350276
  },
  "GlobalRank": { "Rank": 52867 },
  "CountryRank": { "Country": 156, "CountryCode": "CN", "Rank": 9690 },
  "Engagments": {
    "BounceRate": "0.592043225964181",
    "Month": "10",
    "Year": "2026",
    "PagePerVisit": "1.748508478673103",
    "Visits": "1350276",
    "TimeOnSite": "83.46060618418194"
  }
}
```

#### Fields, units and missing values

| Field | Meaning |
| --- | --- |
| `SiteName`, `Title`, `Description` | Domain and available site metadata |
| `SnapshotDate` | Source snapshot date, not the time this Actor ran |
| `EstimatedMonthlyVisits` | Available monthly visit estimates, keyed by month |
| `GlobalRank.Rank` | Global website rank; a lower rank is a higher position |
| `CountryRank`, `CategoryRank` | Available country/category names, identifiers and ranks |
| `Engagments.Visits` | Visit estimate for `Engagments.Year` / `Month` |
| `Engagments.BounceRate` | A fraction: `0.59` means approximately 59% |
| `Engagments.PagePerVisit` | Estimated pages per visit |
| `Engagments.TimeOnSite` | Estimated visit duration, in seconds |
| `TrafficSources` | Available channel shares, expressed as fractions |
| `TopCountryShares` | Available leading countries and their traffic shares |
| `TopKeywords` | Available keywords and their supplied metrics |

The source spelling **`Engagments`** is preserved in the API. Some numeric metrics are strings; convert them to numbers when calculating or sorting. `null`, missing fields and empty arrays mean that a value was not available; they do not establish zero traffic. Coverage varies by domain, especially for smaller sites.

The **Traffic overview** dataset view puts the domain, monthly visits and global rank first. **All available fields** shows the complete set of supplied fields. View formatting does not change the stored raw JSON.

The default dataset contains successful domain overviews with `SiteName`, `EstimatedMonthlyVisits`, and other available fields. Check `SnapshotDate` for freshness. These are monthly traffic estimates, not first-party live analytics. Field availability varies by domain.

`SUMMARY` reports successful and failed domains. `ERRORS` lists domains without a valid result and their error codes. A temporary failure does not mean a site's traffic is zero. A completed run may contain both results and errors.

### Performance and batch limits

A cloud test on **November 18, 2026** processed **100 input domains in 43 seconds**, returning **98 valid results and 2 upstream-blocked domains**, using 256 MB of Actor memory and 16 concurrent lookups. This is one measured batch, not a guaranteed runtime or success rate. Domain selection, upstream availability and shared service load can change the outcome.

### Pricing

Your Apify subscription determines the price per 1,000 successful domain results:

| Apify plan | Price per 1,000 results |
| --- | ---: |
| Free | $1.00 |
| Starter | $0.80 |
| Scale | $0.65 |
| Business | $0.50 |

For example, 100 successful results cost **$0.10 on the Free plan**, or **$0.08 on Starter**. A 100-domain batch with 98 successful results incurs 98 result charges, not 100.

The Free plan's $5 of shared Apify credits can cover up to 5,000 results when fully available for this Actor. Credits used elsewhere reduce that amount. Your plan's Apify subscription credits are shared across the platform.

Only valid domain overviews written to the default dataset are charged. Failed or unavailable domains are recorded separately and do not incur a result charge. Platform usage is included in the event price. There is no separate startup charge. Set a maximum cost per run in Apify to control spending.

### Similarweb API and bulk website traffic checks

Use this Actor as a bulk website traffic checker in Apify Console, or start runs and retrieve datasets with the Apify API. It is a batch Actor, rather than a synchronous one-domain HTTP endpoint. Up to sixteen domain lookups run concurrently. Temporary internal congestion is retried at most twice using the service's retry delay; unavailable upstream data is recorded separately. Large batches can hit the run timeout; inspect `SUMMARY` and `ERRORS` before treating the batch as complete.

#### cURL

Keep your **Apify API token** in an environment variable named `APIFY_TOKEN`. You do not need to supply a Similarweb account or Similarweb API key. For a small batch, the [synchronous Apify endpoint](https://docs.apify.com/api/v2/actor-run-sync-get-dataset-items-post) starts this Actor and returns successful rows as a JSON array:

```bash
curl --fail-with-body --max-time 240 \
  -X POST 'https://api.apify.com/v2/acts/blessed_button~similarweb-traffic-scraper/run-sync-get-dataset-items?timeout=180&memory=256&maxTotalChargeUsd=0.10&format=json&clean=true' \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"domains":["github.com","example.com"]}'
```

#### Python (standard library)

```python
import json
import os
from urllib.request import Request, urlopen

url = (
    "https://api.apify.com/v2/acts/blessed_button~similarweb-traffic-scraper/"
    "run-sync-get-dataset-items?timeout=180&memory=256"
    "&maxTotalChargeUsd=0.10&format=json&clean=true"
)
request = Request(
    url,
    data=json.dumps({"domains": ["github.com", "example.com"]}).encode(),
    headers={"Authorization": f"Bearer {os.environ['APIFY_TOKEN']}",
             "Content-Type": "application/json"},
    method="POST",
)
with urlopen(request, timeout=240) as response:
    results = json.load(response)
print(json.dumps(results, indent=2))
```

These examples set a 180-second Actor timeout, 256 MB of memory and a $0.10 maximum cost. The response contains successful rows, not the error report; open the run in Console for `SUMMARY` and `ERRORS`. For production workflows that need a run ID, polling and error retrieval, use the [asynchronous run endpoint](https://docs.apify.com/api/v2/actors-runs-post), wait for completion, and fetch its default dataset and key-value records. The synchronous endpoint has a 300-second HTTP limit. Check your runs before retrying an interrupted request to avoid duplicate work.

### n8n: send website traffic data to Google Sheets

Use the same API through n8n's [HTTP Request node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest). This is an HTTP setup guide, not a preinstalled n8n template.

1. Add an **HTTP Request** node: method `POST`, with the URL from the cURL example above.
2. Store `Authorization: Bearer YOUR_APIFY_TOKEN` in a **Header Auth credential**. Send a JSON body such as `{"domains":["github.com","example.com"]}` and set the request timeout to `240000` ms.
3. Read the returned JSON array. If your node keeps it as one array, split it into one item per domain.
4. Add a [Google Sheets node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets) with your Google credentials. Use **Append Row**, or **Append or Update Row** to refresh existing records.
5. Map spreadsheet columns to `SiteName`, `SnapshotDate`, `Engagments.Visits` and `GlobalRank.Rank`. Convert numeric strings for calculations. Use domain plus snapshot date as a key to retain monthly history.

For larger or scheduled workflows, use asynchronous runs and retrieve the summary before updating your sheet. An empty response does not establish zero visits for every input domain.

### Errors and support

- **Where are failed domains?** In the run's key-value store under `ERRORS`. `SUMMARY` reports requested, successful and failed counts for a completed batch. A timeout or aborted run may not have a final summary.
- **What is `upstream_waf_blocked`?** The source refused that lookup. It is an error, not a zero-traffic result or a billed dataset row.
- **Why are fields empty?** Similarweb may not supply every metric for every domain. Compare the reporting month and available fields before drawing conclusions.
- **Can I check more than 100 domains?** Split them into batches of up to 100. Each run has its own budget and timeout; a low limit can stop it before every domain is processed.
- **Need help?** Open an issue on this Actor's [Issues tab](https://apify.com/blessed_button/similarweb-traffic-scraper/issues). Include the run ID and affected domain; keep tokens and private credentials out of the message.

#### Is this live website traffic?

No. Results contain third-party monthly estimates. Check `SnapshotDate` and the keys in `EstimatedMonthlyVisits` for the available period. Missing results do not mean zero traffic.

# Actor input Schema

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

Enter 1–100 hostnames, without https:// or a path. Duplicate hostnames are processed once.

## Actor input object example

```json
{
  "domains": [
    "github.com"
  ]
}
```

# Actor output Schema

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

No description

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

No description

## `errors` (type: `string`):

No description

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("blessed_button/similarweb-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": ["github.com"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blessed_button/similarweb-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/tJTCmXXwF4uyhpExH/builds/taIC2iW5gOGmen8b9/openapi.json
