# Similarweb API

> Similarweb provides monthly website traffic estimates, rankings, and engagement data as a workflow and API.

Get website traffic returns monthly traffic estimates, rankings, engagement, and top countries for a website domain or link. List top websites returns ranked websites and engagement figures for a country and category, with an optional maximum number of results.

- Page: https://fous.com/tools/similarweb
- Handle: `@similarweb`
- Category: [Marketing](https://fous.com/tools/category/marketing)
- Source website: https://similarweb.com
- Last verified: Sep 29, 2026

## Methods

### Get website traffic

Operation `get_website_traffic`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Get a website’s monthly traffic estimate, rankings, engagement and top countries from its free public overview. Traffic-source percentages withheld by the site are null; the site may limit anonymous views.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `website` | string | yes | `"notion.so"` | Website domain or link, such as notion.so or https://notion.so/page. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "website"
  ],
  "properties": {
    "website": {
      "type": "string",
      "description": "Website domain or link, such as notion.so or https://notion.so/page.",
      "examples": [
        "notion.so",
        "https://www.google.com/search?q=test"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "website": "notion.so"
    },
    {
      "website": "https://www.google.com/search?q=test"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `month` | string | `"2026-08-01"` | First day of the month covered. |
| `domain` | string | `"notion.so"` | Website domain. |
| `country` | string or null | `"United States"` |  |
| `category` | string or null | `"Computers Electronics and Technology - Other"` |  |
| `global_rank` | integer or null | `3644` |  |
| `country_rank` | integer or null | `3480` |  |
| `category_rank` | integer or null | `111` |  |
| `top_countries` | array |  |  |
| `top_countries[].country` | string | `"United States"` |  |
| `top_countries[].share_percent` | number | `22.16` |  |
| `pages_per_visit` | number or null | `7.35` |  |
| `similarweb_link` | string | `"https://www.similarweb.com/website/notion.so/"` |  |
| `traffic_sources` | object |  |  |
| `traffic_sources.email` | number or null |  |  |
| `traffic_sources.direct` | number or null | `78.96` |  |
| `traffic_sources.search` | number or null |  |  |
| `traffic_sources.social` | number or null |  |  |
| `traffic_sources.referrals` | number or null |  |  |
| `traffic_sources.display_ads` | number or null |  |  |
| `bounce_rate_percent` | number or null | `50.34` |  |
| `average_visit_duration` | string or null | `"8 min 37 s"` |  |
| `visit_duration_seconds` | integer or null | `517` | Average time on site in seconds. |
| `estimated_monthly_visits` | integer or null | `11874618` |  |
| `change_from_previous_month_percent` | number or null | `-0.25` |  |

**Example input**

```json
{
  "website": "notion.so"
}
```

**Example output**

```json
{
  "month": "2026-08-01",
  "domain": "notion.so",
  "country": "United States",
  "category": "Computers Electronics and Technology - Other",
  "global_rank": 3644,
  "country_rank": 3480,
  "category_rank": 111,
  "top_countries": [
    {
      "country": "United States",
      "share_percent": 22.16
    },
    {
      "country": "Japan",
      "share_percent": 8.24
    },
    {
      "country": "Korea, Republic of",
      "share_percent": 6.92
    }
  ],
  "pages_per_visit": 7.35,
  "similarweb_link": "https://www.similarweb.com/website/notion.so/",
  "traffic_sources": {
    "email": null,
    "direct": 78.96,
    "search": null,
    "social": null,
    "referrals": null,
    "display_ads": null
  },
  "bounce_rate_percent": 50.34,
  "average_visit_duration": "8 min 37 s",
  "visit_duration_seconds": 517,
  "estimated_monthly_visits": 11874618,
  "change_from_previous_month_percent": -0.25
}
```

### List top websites

Operation `list_top_websites`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

List Similarweb’s most visited websites for a category and country, with rankings and engagement figures for the reported month. Anonymous view limits may restrict results, especially for country rankings.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `country` | string | no | `"United States"` | Country name or two-letter code, such as United States or US. Default: worldwide. |
| `category` | string | no | `"finance"` | Top-level category name, such as news and media, e-commerce and shopping, or finance. Default: all. |
| `max_results` | integer | no | `5` | Maximum websites to return, such as 25. Default: 50. |

**Input schema**

```json
{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "default": "worldwide",
      "description": "Country name or two-letter code, such as United States or US. Default: worldwide.",
      "examples": [
        "United States",
        "worldwide",
        "GB"
      ]
    },
    "category": {
      "type": "string",
      "default": "all",
      "description": "Top-level category name, such as news and media, e-commerce and shopping, or finance. Default: all.",
      "examples": [
        "finance",
        "news and media",
        "e-commerce and shopping"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 50,
      "maximum": 50,
      "minimum": 1,
      "description": "Maximum websites to return, such as 25. Default: 50.",
      "x-fous-developer": true,
      "examples": [
        5,
        10,
        2
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "country": "United States",
      "category": "finance",
      "max_results": 5
    },
    {
      "country": "worldwide",
      "category": "news and media",
      "max_results": 10
    },
    {
      "max_results": 2
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `month` | string | `"2026-08-01"` | First day of the month covered. |
| `websites` | array |  |  |
| `websites[].rank` | integer | `1` |  |
| `websites[].domain` | string | `"paypal.com"` |  |
| `websites[].category` | string or null | `"Finance > Banking Credit and Lending"` |  |
| `websites[].rank_change` | integer or null | `0` |  |
| `websites[].pages_per_visit` | number or null | `4.93` |  |
| `websites[].similarweb_link` | string | `"https://www.similarweb.com/website/paypal.com/"` |  |
| `websites[].bounce_rate_percent` | number or null | `21.87` |  |
| `websites[].average_visit_duration` | string or null | `"00:02:22"` |  |

**Example input**

```json
{
  "country": "United States",
  "category": "finance",
  "max_results": 5
}
```

**Example output**

```json
{
  "month": "2026-08-01",
  "websites": [
    {
      "rank": 1,
      "domain": "paypal.com",
      "category": "Finance > Banking Credit and Lending",
      "rank_change": 0,
      "pages_per_visit": 4.93,
      "similarweb_link": "https://www.similarweb.com/website/paypal.com/",
      "bounce_rate_percent": 21.87,
      "average_visit_duration": "00:02:22"
    },
    {
      "rank": 2,
      "domain": "chase.com",
      "category": "Finance > Banking Credit and Lending",
      "rank_change": 0,
      "pages_per_visit": 8.01,
      "similarweb_link": "https://www.similarweb.com/website/chase.com/",
      "bounce_rate_percent": 17.69,
      "average_visit_duration": "00:06:58"
    },
    {
      "rank": 3,
      "domain": "capitalone.com",
      "category": "Finance > Banking Credit and Lending",
      "rank_change": 0,
      "pages_per_visit": 7.42,
      "similarweb_link": "https://www.similarweb.com/website/capitalone.com/",
      "bounce_rate_percent": 21.27,
      "average_visit_duration": "00:05:14"
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@similarweb",
  "visibility": "public",
  "operation": "get_website_traffic",
  "version": 1,
  "input": {
    "website": "notion.so"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@similarweb\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_website_traffic\",\n  \"version\": 1,\n  \"input\": {\n    \"website\": \"notion.so\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@similarweb",
  "visibility": "public",
  "operation": "get_website_traffic",
  "version": 1,
  "input": {
    "website": "notion.so"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/similarweb`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_website_traffic`: Get website traffic. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `list_top_websites`: List top websites. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-similarweb https://api.fous.com/mcp/tools/similarweb --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare monthly traffic estimates across websites
- Track a website’s rankings by country or category
- Review the top countries for a website’s audience
- Find highly ranked websites in a country and category
- Compare website engagement figures

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Similarweb tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Similarweb account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from similarweb.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What is a website’s estimated monthly traffic?

Get website traffic returns estimated monthly visits for the supplied website domain or link.

### Which countries are among a website’s top countries?

Get website traffic returns a website’s top countries and their share of traffic.

### Which websites rank highest in a category?

List top websites returns ranked websites for the selected country and category.

## Related

- [All Marketing tools](https://fous.com/tools/category/marketing)
