---
title: "Similarweb API: website traffic as JSON | Perceptlayer"
description: "Similarweb API for website traffic by domain, one at a time or in batches, as JSON. One key, no Similarweb plan, 1 credit per domain."
url: https://perceptlayer.com/apis/similarweb
---

[APIs](https://perceptlayer.com/apis) / [Web and SEO](https://perceptlayer.com/verticals/web-seo) / Similarweb

1 credit per call 5 endpoints 

# Similarweb API

Similarweb API for website traffic by domain, one at a time or in batches, as JSON. One key, no Similarweb plan, 1 credit per domain.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Similarweb

GET /v1/similarweb/overview-plus?domain=github.com 

```
curl "https://api.perceptlayer.com/v1/similarweb/overview-plus?domain=github.com" \
  -H "X-API-Key: $API_KEY"
```

cURL 1 credit per successful call

Run this call below or from your dashboard to see a live response.

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/similarweb/overview-plus?domain=github.com" \
  -H "X-API-Key: $API_KEY"
```

Similarweb · 5 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

Note 

Endpoints marked “Needs terms” return personal or social data. They work once you accept the [restricted-endpoint terms](https://perceptlayer.com/legal/restricted-endpoints) in your dashboard.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [POST `/v1/similarweb/batches`](https://perceptlayer.com/apis/similarweb/batches) | `domains` Needs terms | JSON | 1–1,000 credits |
| [GET `/v1/similarweb/batches-detail`](https://perceptlayer.com/apis/similarweb/batches-detail) | `batch` +2 optional Needs terms | JSON | 1 credit |
| [POST `/v1/similarweb/batches-retry`](https://perceptlayer.com/apis/similarweb/batches-retry) | `batch` +2 optional Needs terms | JSON | 1 credit |
| [GET `/v1/similarweb/overview-plus`](https://perceptlayer.com/apis/similarweb/overview-plus) | `domain` Needs terms | `domain` `site_name` `title` `description` `category` `global_rank` +11 more | 1 credit |
| [GET `/v1/similarweb/traffic`](https://perceptlayer.com/apis/similarweb/traffic) | `domain` Needs terms | `domain` `site_name` `title` `description` `category` `global_rank` +8 more | 1 credit |

Overview

## About the Similarweb API

## What you can get

The Similarweb API returns website traffic data as JSON through 4 endpoints. These are restricted endpoints: the [restricted-endpoint terms](https://perceptlayer.com/legal/restricted-endpoints) apply before you call them.

-   **One domain:** `traffic` takes a `domain` and returns its traffic data in one call.
-   **Many domains:** `batches` is a `POST` that takes a `domains` array.
-   **Batch results:** `batches-detail` takes a `batch`, with optional `after` and `limit`.
-   **Retries:** `batches-retry` takes the same `batch`, `after` and `limit`.

## How a call works

For a single site, call `GET /v1/similarweb/traffic?domain=example.com` with your key in the `X-API-Key` header. For a list, send the domains to `batches`, then read the results with `batches-detail`. Run the batch call once in the playground to see the value it returns for `batch`. `traffic`, `batches-detail` and `batches-retry` cost 1 credit; `batches` costs 1 credit per domain in the batch. Failed calls cost nothing.

Web and SEO JSON REST MCP Some endpoints need terms

### More web and seo APIs

[BuiltWith](https://perceptlayer.com/apis/builtwith) [Domain Availability](https://perceptlayer.com/apis/domain-availability) [Google Ads Transparency](https://perceptlayer.com/apis/google-ads-transparency) [Impressum Extraction](https://perceptlayer.com/apis/impressum-extraction) [Local Rank Tracker](https://perceptlayer.com/apis/local-rank-tracker) [North Data](https://perceptlayer.com/apis/north-data) [Owler](https://perceptlayer.com/apis/owler) [PitchBook](https://perceptlayer.com/apis/pitchbook) [Semrush](https://perceptlayer.com/apis/semrush) [Web Scraper](https://perceptlayer.com/apis/web-scraper) [Website Contacts](https://perceptlayer.com/apis/contacts) [ZoomInfo](https://perceptlayer.com/apis/zoominfo)

Use cases

### Size competitors' websites before entering a market

`Use the Similarweb API to size competitors' websites before entering a market` 

### Track traffic for a watchlist of domains each month

`Use the Similarweb API to track traffic for a watchlist of domains each month` 

### Enrich a list of company websites with traffic data

`Use the Similarweb API to enrich a list of company websites with traffic data` 

### Give a research agent website traffic as a tool call

`Use the Similarweb API to give a research agent website traffic as a tool call` 

FAQ

## Questions

**Do I need a Similarweb API key?**

No. You call this Similarweb API with your Perceptlayer key in the \`X-API-Key\` header, so there's no Similarweb plan or key to set up. The same key works for every API in the catalogue.

**How much does a traffic lookup cost?**

A \`traffic\` lookup costs one credit, and \`batches\` costs one credit per domain you send. Reading results with \`batches-detail\` costs one credit a call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Is this the official Similarweb API?**

No. Perceptlayer is an independent service and is not affiliated with Similarweb. It returns Similarweb data as JSON with a Perceptlayer key, so there is no Similarweb developer account, app review or partner approval to get first. It only reads data: if Similarweb has an official API and you need to act on your own Similarweb account, such as posting, managing orders or reading private data, use that one.

**Should I build a Similarweb scraper instead?**

You can, but a Similarweb scraper is code you maintain: page changes break it, requests get blocked, and Similarweb's terms govern how you collect data. The Similarweb API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.

## Try the Similarweb API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
