> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Similarweb

> Estimated website traffic and engagement, marketing channel mix, referrals, country split, global rank, similar sites and search keywords for any domain.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/similarweb.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=4e5c15f77793cc08e1751bd951315b4e)

[Web Catalog · Analytics](https://docs.webrouter.net/data-apis.md?category=analytics)

Needs&#x20;

`SIMILARWEB_API_KEY`

Endpoints

8

Auth

Key in query

[Vendor docs](https://developers.similarweb.com/docs/similarweb-web-traffic-api)

&#x20;·&#x20;

[Pricing](https://www.similarweb.com/corp/pricing/)

## Setup

| Variable | | What it is |
| - | - | - |
| `SIMILARWEB_API_KEY` | required | a Similarweb API key (pro.similarweb.com, Settings > Account > API; admins generate keys and must activate them) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Calls spend data credits: roughly domains x endpoint price x granularity x country filters x months x results. Keep date ranges, countries and limit small; check the balance with similarweb.capabilities.
* Dates are months (YYYY-MM); historical data goes back up to 37 months depending on the subscription. Daily granularity and mtd depend on the plan too.
* A key that was created but not activated answers 'Invalid API key'. Country filters you can use are listed by similarweb.capabilities.
* v4 endpoints page with limit, offset, sort and asc; v1 endpoints return the whole series.

## Endpoints

GET

Check account capabilities and credits

Remaining data credits, available country filters and accessible history for the account. Costs no credits.

[Open](#similarweb-capabilities)

GET

Total visits over time

Estimated desktop plus mobile web visits to a domain per day, week or month.

[Open](#similarweb-traffic-visits)

GET

Visits by marketing channel (desktop)

Desktop visits split across organic search, paid search, direct, display, email, referrals and social.

[Open](#similarweb-traffic-channels)

GET

Referring websites (desktop)

Sites sending referral traffic to a domain, with traffic share and change.

[Open](#similarweb-traffic-referrals)

GET

Traffic by country

Traffic share, visits, pages per visit, visit duration, bounce rate and rank per country (desktop plus mobile).

[Open](#similarweb-traffic-geography)

GET

Global rank over time

Similarweb's global rank for a domain per month.

[Open](#similarweb-rank-global)

GET

Similar sites

Up to 40 sites most similar to a domain, with similarity scores.

[Open](#similarweb-similar-sites)

GET

Keywords driving search traffic

The search keywords sending clicks to a domain, by organic or paid, branded or not, desktop or mobile.

[Open](#similarweb-keywords-website)

### Check account capabilities and credits

GET

`/capabilities`

`similarweb.capabilities`

Remaining data credits, available country filters and accessible history for the account. Costs no credits.

Input

No inputs.

[Vendor docs](https://developers.similarweb.com/docs/check-capabilities)

```python Python theme={null}
router.call_data_api("similarweb.capabilities")
```

```text MCP theme={null}
call_data_api(endpoint="similarweb.capabilities")
```

### Total visits over time

GET

`/v1/website/{domain_name}/total-traffic-and-engagement/visits`

`similarweb.traffic.visits`

Estimated desktop plus mobile web visits to a domain per day, week or month.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain_name` required</td><td>string</td><td>path</td><td>The domain, without www. Example `amazon.com`</td></tr>
    <tr><td>`start_date`</td><td>string</td><td>query</td><td>Start month, YYYY-MM. Example `2026-07`</td></tr>
    <tr><td>`end_date`</td><td>string</td><td>query</td><td>End month, YYYY-MM. Example `2026-09`</td></tr>
    <tr><td>`country` required</td><td>string</td><td>query</td><td>2-letter ISO country code, or world. Example `world`</td></tr>
    <tr><td>`granularity` required</td><td>string</td><td>query</td><td>Granularity of the series. One of `daily`, `weekly`, `monthly` Example `monthly`</td></tr>

    <tr>
      <td>
        `main_domain_only`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true for the main domain only; false (default) includes subdomains.
      </td>
    </tr>

    <tr>
      <td>
        `mtd`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        End at the latest available day (month to date); needs daily granularity.
      </td>
    </tr>

    <tr>
      <td>
        `engaged_only`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Count engaged visits only.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.similarweb.com/reference/visits) · Same job: [SE Ranking](https://docs.webrouter.net/data-apis/seranking.md#seranking-domain-overview-history)

```python Python theme={null}
router.call_data_api("similarweb.traffic.visits", {'domain_name': 'amazon.com', 'start_date': '2026-07', 'end_date': '2026-09', 'country': 'world', 'granularity': 'monthly'})
```

```text MCP theme={null}
call_data_api(endpoint="similarweb.traffic.visits", params={"domain_name": "amazon.com", "start_date": "2026-07", "end_date": "2026-09", "country": "world", "granularity": "monthly"})
```

### Visits by marketing channel (desktop)

GET

`/v1/website/{domain_name}/traffic-sources/overview-share`

`similarweb.traffic.channels`

Desktop visits split across organic search, paid search, direct, display, email, referrals and social.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain_name` required</td><td>string</td><td>path</td><td>The domain, without www. Example `amazon.com`</td></tr>
    <tr><td>`start_date`</td><td>string</td><td>query</td><td>Start month, YYYY-MM. Example `2026-07`</td></tr>
    <tr><td>`end_date`</td><td>string</td><td>query</td><td>End month, YYYY-MM. Example `2026-09`</td></tr>
    <tr><td>`country` required</td><td>string</td><td>query</td><td>2-letter ISO country code, or world. Example `world`</td></tr>
    <tr><td>`granularity` required</td><td>string</td><td>query</td><td>Granularity of the series. One of `daily`, `weekly`, `monthly` Example `monthly`</td></tr>

    <tr>
      <td>
        `main_domain_only`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true for the main domain only; false (default) includes subdomains.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.similarweb.com/reference/traffic-sources-overview)

```python Python theme={null}
router.call_data_api("similarweb.traffic.channels", {'domain_name': 'amazon.com', 'start_date': '2026-07', 'end_date': '2026-09', 'country': 'world', 'granularity': 'monthly'})
```

```text MCP theme={null}
call_data_api(endpoint="similarweb.traffic.channels", params={"domain_name": "amazon.com", "start_date": "2026-07", "end_date": "2026-09", "country": "world", "granularity": "monthly"})
```

### Referring websites (desktop)

GET

`/v4/website/{domain_name}/traffic-sources/referrals`

`similarweb.traffic.referrals`

Sites sending referral traffic to a domain, with traffic share and change.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain_name` required</td><td>string</td><td>path</td><td>The domain, without www. Example `amazon.com`</td></tr>
    <tr><td>`start_date`</td><td>string</td><td>query</td><td>Start month, YYYY-MM. Example `2026-07`</td></tr>
    <tr><td>`end_date`</td><td>string</td><td>query</td><td>End month, YYYY-MM. Example `2026-09`</td></tr>
    <tr><td>`country` required</td><td>string</td><td>query</td><td>2-letter ISO country code, or world. Example `world`</td></tr>

    <tr>
      <td>
        `main_domain_only`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true for the main domain only; false (default) includes subdomains.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to return; default 100. Credits scale with results.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Metric to order by.
      </td>
    </tr>

    <tr>
      <td>
        `asc`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true ascending, false descending.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.similarweb.com/reference/referrals-desktop) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-refdomains), [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-backlinks-refdomains), [Moz](https://docs.webrouter.net/data-apis/moz.md#moz-links-linking-root-domains), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-backlinks-refdomains), [SE Ranking](https://docs.webrouter.net/data-apis/seranking.md#seranking-backlinks-refdomains)

```python Python theme={null}
router.call_data_api("similarweb.traffic.referrals", {'domain_name': 'amazon.com', 'start_date': '2026-07', 'end_date': '2026-09', 'country': 'world'})
```

```text MCP theme={null}
call_data_api(endpoint="similarweb.traffic.referrals", params={"domain_name": "amazon.com", "start_date": "2026-07", "end_date": "2026-09", "country": "world"})
```

### Traffic by country

GET

`/v4/website/{domain_name}/geo/total-traffic-by-country`

`similarweb.traffic.geography`

Traffic share, visits, pages per visit, visit duration, bounce rate and rank per country (desktop plus mobile).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain_name` required</td><td>string</td><td>path</td><td>The domain, without www. Example `amazon.com`</td></tr>
    <tr><td>`start_date`</td><td>string</td><td>query</td><td>Start month, YYYY-MM. Example `2026-07`</td></tr>
    <tr><td>`end_date`</td><td>string</td><td>query</td><td>End month, YYYY-MM. Example `2026-09`</td></tr>

    <tr>
      <td>
        `main_domain_only`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true for the main domain only; false (default) includes subdomains.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to return; default 100. Credits scale with results.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Metric to order by.
      </td>
    </tr>

    <tr>
      <td>
        `asc`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true ascending, false descending.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.similarweb.com/reference/geography-total)

```python Python theme={null}
router.call_data_api("similarweb.traffic.geography", {'domain_name': 'amazon.com', 'start_date': '2026-07', 'end_date': '2026-09'})
```

```text MCP theme={null}
call_data_api(endpoint="similarweb.traffic.geography", params={"domain_name": "amazon.com", "start_date": "2026-07", "end_date": "2026-09"})
```

### Global rank over time

GET

`/v1/website/{domain_name}/global-rank/global-rank`

`similarweb.rank.global`

Similarweb's global rank for a domain per month.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain_name` required</td><td>string</td><td>path</td><td>The domain, without www. Example `amazon.com`</td></tr>
    <tr><td>`start_date`</td><td>string</td><td>query</td><td>Start month, YYYY-MM. Example `2026-07`</td></tr>
    <tr><td>`end_date`</td><td>string</td><td>query</td><td>End month, YYYY-MM. Example `2026-09`</td></tr>

    <tr>
      <td>
        `main_domain_only`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true for the main domain only; false (default) includes subdomains.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.similarweb.com/reference/global-rank) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-domain-rating), [DataForSEO](https://docs.webrouter.net/data-apis/dataforseo.md#dataforseo-labs-domain-rank-overview), [Mangools](https://docs.webrouter.net/data-apis/mangools.md#mangools-links-metrics), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-overview-domain-rank)

```python Python theme={null}
router.call_data_api("similarweb.rank.global", {'domain_name': 'amazon.com', 'start_date': '2026-07', 'end_date': '2026-09'})
```

```text MCP theme={null}
call_data_api(endpoint="similarweb.rank.global", params={"domain_name": "amazon.com", "start_date": "2026-07", "end_date": "2026-09"})
```

### Similar sites

GET

`/v4/website/{domain_name}/similar-sites/similarsites`

`similarweb.similar_sites`

Up to 40 sites most similar to a domain, with similarity scores.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain_name` required</td><td>string</td><td>path</td><td>The domain, without www. Example `amazon.com`</td></tr>
    <tr><td>`format` required</td><td>string</td><td>query</td><td>json or xml. One of `json`, `xml` Example `json`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        At most 40.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.similarweb.com/reference/similar-sites) · Same job: [Advanced Web Ranking](https://docs.webrouter.net/data-apis/advanced-web-ranking.md#advanced-web-ranking-marketshare-metadata), [Mangools](https://docs.webrouter.net/data-apis/mangools.md#mangools-domain-competitors), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-domain-organic-competitors), [SE Ranking](https://docs.webrouter.net/data-apis/seranking.md#seranking-domain-competitors), [Serpstat](https://docs.webrouter.net/data-apis/serpstat.md#serpstat-domain-competitors), [SpyFu](https://docs.webrouter.net/data-apis/spyfu.md#spyfu-seo-top-competitors)

```python Python theme={null}
router.call_data_api("similarweb.similar_sites", {'domain_name': 'amazon.com', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="similarweb.similar_sites", params={"domain_name": "amazon.com", "format": "json"})
```

### Keywords driving search traffic

GET

`/v4/website-analysis/keywords`

`similarweb.keywords.website`

The search keywords sending clicks to a domain, by organic or paid, branded or not, desktop or mobile.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url` required</td><td>string</td><td>query</td><td>The domain, without www. Example `cnn.com`</td></tr>
    <tr><td>`start_date`</td><td>string</td><td>query</td><td>Start month, YYYY-MM. Example `2026-07`</td></tr>
    <tr><td>`end_date`</td><td>string</td><td>query</td><td>End month, YYYY-MM. Example `2026-09`</td></tr>
    <tr><td>`country` required</td><td>string</td><td>query</td><td>2-letter ISO country code, or world. Example `world`</td></tr>
    <tr><td>`traffic_source`</td><td>string</td><td>query</td><td>Default All. One of `Organic`, `Paid`, `All`</td></tr>
    <tr><td>`web_source`</td><td>string</td><td>query</td><td>Default Total. One of `Desktop`, `MobileWeb`, `Total`</td></tr>
    <tr><td>`branded_type`</td><td>string</td><td>query</td><td>Default All. One of `Branded`, `NonBranded`, `All`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Default 100.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.similarweb.com/reference/website-analysis-keywords) · Same job: [Advanced Web Ranking](https://docs.webrouter.net/data-apis/advanced-web-ranking.md#advanced-web-ranking-marketshare-domain-keywords), [BuiltWith](https://docs.webrouter.net/data-apis/builtwith.md#builtwith-keywords-get), [DataForSEO](https://docs.webrouter.net/data-apis/dataforseo.md#dataforseo-labs-ranked-keywords), [SE Ranking](https://docs.webrouter.net/data-apis/seranking.md#seranking-domain-keywords), [SpyFu](https://docs.webrouter.net/data-apis/spyfu.md#spyfu-seo-most-valuable-keywords)

```python Python theme={null}
router.call_data_api("similarweb.keywords.website", {'url': 'cnn.com', 'start_date': '2026-07', 'end_date': '2026-09', 'country': 'world'})
```

```text MCP theme={null}
call_data_api(endpoint="similarweb.keywords.website", params={"url": "cnn.com", "start_date": "2026-07", "end_date": "2026-09", "country": "world"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.