# 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/workflows/similarweb
- Handle: `@similarweb`
- Category: [Marketing](https://fous.com/workflows/category/marketing)
- Source website: https://similarweb.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Similarweb.

## Methods

### Get website traffic

Operation `get_website_traffic`, version 1. 1 credit per call.

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 call.

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

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@similarweb","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with Similarweb?

No. Fous is not affiliated with Similarweb. This workflow reads the public similarweb.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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

- [Cloudflare Radar API](https://fous.com/workflows/cloudflare-radar.md): Cloudflare Radar provides internet trends, domain popularity and weekly rank history only for top-100 sites, plus recent and ongoing outages with locations when identified.
- [Amazon API](https://fous.com/workflows/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Google Play API](https://fous.com/workflows/google-play.md): Google Play helps people discover Android apps and games, view public listings and search results, read reviews when available by app and region, and see country-specific top charts.
- [Twitch API](https://fous.com/workflows/twitch.md): Twitch returns channel profiles, live status, up to 10 broadcasts, top streams, viewer-ranked categories, up to 100 public videos/clips, and 1–30-day schedules; counts change.
- [Apple App Store API](https://fous.com/workflows/apple-app-store.md): Apple App Store returns public app listings, keyword search, ratings, prices, listed purchases, country-specific reviews and visible replies, and up to 200 ranked chart apps.
- [Google Trends API](https://fous.com/workflows/google-trends.md): Google Trends compares relative search interest over time and by region, shows related searches and current trends, with daily peaks for seven-day views.
- [CompaniesMarketCap API](https://fous.com/workflows/companiesmarketcap.md): CompaniesMarketCap ranks public companies worldwide or by country and industry across size and financial measures, and provides company figures with market-cap history for completed years.
- [Microsoft Store API](https://fous.com/workflows/microsoft-store.md): Microsoft Store returns app and game listings, country-specific searches, and ranked charts; update notes, purchase prices, and exact rating counts may be unavailable.
- [All Marketing workflows](https://fous.com/workflows/category/marketing)
