# SimilarWeb Data API — Website Traffic, Keywords & AI Analytics (`dev00/similarweb-api`) Actor

Instant website traffic analytics, global ranks, category ranks, top search keywords, referral traffic sources, and AI chatbot traffic metrics for any domain. Built-in randomized User-Agent anti-blocking.

- **URL**: https://apify.com/dev00/similarweb-api.md
- **Developed by:** [dev00](https://apify.com/dev00) (community)
- **Categories:** SEO tools, AI
- **Stats:** 3 total users, 2 monthly users, 75.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 domain analytics queries

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## SimilarWeb Data API — Instant Website Traffic, Keywords & AI Analytics

Extract comprehensive website traffic analytics, global ranks, category ranks, top search keywords, referral traffic sources, and AI chatbot traffic metrics for any domain. Built-in procedural User-Agent anti-blocking and lightweight stripped payloads. No signup, no API keys, no cookies — instant extraction in sub-200ms.

***

### ✨ Key Features

- 📊 **Traffic & Engagement Breakdown** — Instant access to total monthly visits, bounce rates, pages per visit, and average duration on site.
- 🏆 **Global & Category Rankings** — Detailed global rank, country rank, and industry category rankings.
- 🔍 **Top Search Keywords** — Search terms with estimated traffic values, monthly search volumes, and Cost-Per-Click (CPC) metrics.
- 🤖 **AI Chatbot Traffic Insights** — Breakdown of referral traffic coming from AI platforms like ChatGPT, Gemini, Perplexity, Claude, and Grok.
- 🎯 **Traffic Channel Distribution** — Proportions across Direct, Organic Search, Paid Search, Social, Referral, Email, Display Ads, and GenAI.
- 🛡️ **Anti-Blocking User-Agent Randomization** — Every call dynamically generates a fresh, authentic browser User-Agent fingerprint (Chrome, Firefox, Safari across Windows, macOS, Linux, iOS, and Android).
- ⚡ **70% Lighter & Ultra-Fast Payload** — Heavy 250+ country lookup tables (`Countries` array) are automatically stripped, reducing response sizes from >150KB to under 15KB.

***

### 📥 Input Parameters

| Parameter | Type | Required | Default | Description |
| :--- | :--- | :--- | :--- | :--- |
| `domain` | String | Yes | `namecheap.com` | Target domain or URL to analyze (e.g., `namecheap.com`, `github.com`, `google.com`). Protocols (`https://`) and trailing slashes are automatically cleaned. |

#### Input Example (JSON):

```json
{
  "domain": "namecheap.com"
}
```

***

### 📤 Output Format & Response Examples

Output data is stored as JSON in the Key-Value store under key `OUTPUT` and pushed to the default Apify Dataset.

```json
{
  "Version": 1,
  "SiteName": "namecheap.com",
  "Description": "register domain names at namecheap. buy cheap domain names and enjoy 24/7 support...",
  "Title": "Buy a domain name - Register cheap domain names from $0.99 - Namecheap",
  "TopCountryShares": [
    { "Country": 840, "CountryCode": "US", "Value": 0.3316 },
    { "Country": 356, "CountryCode": "IN", "Value": 0.0857 },
    { "Country": 826, "CountryCode": "GB", "Value": 0.0593 },
    { "Country": 124, "CountryCode": "CA", "Value": 0.0369 },
    { "Country": 586, "CountryCode": "PK", "Value": 0.0366 }
  ],
  "Engagments": {
    "BounceRate": "0.2858385021445424",
    "Month": "6",
    "Year": "2026",
    "PagePerVisit": "6.312105343569435",
    "Visits": "12098346",
    "TimeOnSite": "300.293819085654"
  },
  "EstimatedMonthlyVisits": {
    "2026-04-01": 13611605,
    "2026-05-01": 12831750,
    "2026-06-01": 12098346
  },
  "GlobalRank": {
    "Rank": 3333
  },
  "CountryRank": {
    "Country": 840,
    "CountryCode": "US",
    "Rank": 2107
  },
  "CategoryRank": {
    "Rank": "10",
    "Category": "Computers_Electronics_and_Technology/Web_Hosting_and_Domain_Names"
  },
  "TrafficSources": {
    "Direct": 0.5223651142440969,
    "SearchOrganic": 0.2587716074885727,
    "SearchPaid": 0.0715815126463767,
    "Mail": 0.04079742571257126,
    "Referrals": 0.03502500491914991,
    "SocialOrganic": 0.027432417350327934,
    "GenAi": 0.021144446279851813,
    "Affiliate": 0.013040432431168031,
    "DisplayAds": 0.008619580281668811
  },
  "TopKeywords": [
    {
      "Name": "namecheap",
      "EstimatedValue": 2260730,
      "Volume": 1937160,
      "Cpc": 1.76
    },
    {
      "Name": "godaddy",
      "EstimatedValue": 166100,
      "Volume": 3707780,
      "Cpc": 1.88
    }
  ],
  "AiTrafficDetails": {
    "Traffic": {
      "Split": [
        { "Name": "chatgpt.com", "Rank": 1 },
        { "Name": "gemini.google.com", "Rank": 2 },
        { "Name": "perplexity.ai", "Rank": 3 },
        { "Name": "claude.ai", "Rank": 4 },
        { "Name": "grok.com", "Rank": 5 }
      ]
    }
  }
}
```

***

### 🆚 Why SimilarWeb Data API vs. Raw Web Scraping

| Feature | SimilarWeb Data API | Traditional Web Scraping |
| :--- | :--- | :--- |
| **Response Time** | ⚡ Sub-200ms (Edge Infrastructure) | 🐢 5–15 seconds per page render |
| **Anti-Blocking** | ✅ Procedurally Randomized User-Agent | ❌ Frequently blocked by Cloudflare / Captchas |
| **Payload Size** | 🚀 Lightweight (~15KB) | 🐘 Heavy (>150KB due to country dictionaries) |
| **Data Cleanliness** | ✅ Clean, structured JSON | ❌ Raw HTML or unformatted JSON strings |
| **Maintenance** | ✅ 100% Server Managed | ❌ Breaks whenever target site layout updates |

***

### 💡 How To Use — Simple Workflow

1. **Enter Domain** → Pass `"domain": "github.com"` in the Actor input tab.
2. **Run Actor** → Click **Start** to initiate instant extraction.
3. **Export Results** → Download results in JSON, CSV, Excel, or XML from the Apify Dataset tab.

***

### 🙋 Frequently Asked Questions (FAQ)

**Q: Do I need to provide proxies or cookie headers?**\
A: No! The backend automatically generates realistic browser headers and User-Agent fingerprints for every request.

**Q: Why is the `Countries` field missing from the output?**\
A: Raw SimilarWeb responses contain a massive array of 252+ static country definitions (`{"Code":"AF","Name":"Afghanistan"}, ...`) which inflates payload size without adding domain specific insights. Stripping this field makes the API 70% lighter and significantly faster to process in automation scripts.

**Q: What happens if I input a full URL like `https://www.github.com/features`?**\
A: The input cleaner automatically strips protocols (`https://`), path parameters, and query strings, extracting data for the root domain (`github.com`).

**Q: Can I use this Actor in automated Apify workflows and integrations?**\
A: Yes! You can trigger this Actor programmatically via the Apify REST API, Python SDK, Node.js SDK, or Zapier / Make integrations.

***

### 🎯 Use Cases

- 📈 **Competitor Intelligence & Benchmarking** — Compare traffic volume, rankings, and growth trends against industry competitors.
- 🔍 **SEO & Keyword Strategy** — Discover top organic search terms, search volumes, and CPC estimates.
- 🤖 **AI Traffic Tracking** — Analyze referral traffic originating from ChatGPT, Claude, Gemini, Perplexity, and Grok.
- 💰 **M\&A & Investment Due Diligence** — Validate website audience size, monthly traffic health, and visitor engagement metrics.
- 📊 **Lead Qualification** — Enrich domain leads in CRM workflows with estimated monthly visits and global rankings.

***

### 🔍 Keywords & Tags

`similarweb api`, `website traffic api`, `domain analytics`, `web traffic scraper`, `seo keywords api`, `competitor intelligence`, `ai traffic tracker`, `website rank api`, `domain traffic analytics`, `traffic channels`

# Actor input Schema

## `domain` (type: `string`):

Enter the domain name or URL to analyze (e.g. 'namecheap.com', 'github.com', 'google.com').

## Actor input object example

```json
{
  "domain": "namecheap.com"
}
```

# Actor output Schema

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

No description

## `keyValueStoreResult` (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 = {
    "domain": "namecheap.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("dev00/similarweb-api").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 = { "domain": "namecheap.com" }

# Run the Actor and wait for it to finish
run = client.actor("dev00/similarweb-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domain": "namecheap.com"
}' |
apify call dev00/similarweb-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=dev00/similarweb-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/9d6LXMnoc8FVnXa9F/builds/m0QZjv73sXhF072NC/openapi.json
