APIs / Web and SEO / Similarweb
1 credit per call5 endpointsChecked working 6 Dec 2026
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.
curl "https://api.perceptlayer.com/v1/similarweb/overview-plus?domain=github.com" \
-H "X-API-Key: $API_KEY"Playground
Run this API
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.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
POST/v1/similarweb/batches | domainsNeeds terms | JSON | 1–1,000 credits |
GET/v1/similarweb/batches-detail | batch+2 optionalNeeds terms | JSON | 1 credit |
POST/v1/similarweb/batches-retry | batch+2 optionalNeeds terms | JSON | 1 credit |
GET/v1/similarweb/overview-plus | domainNeeds terms | domainsite_nametitledescriptioncategoryglobal_rank+11 more | 1 credit |
GET/v1/similarweb/traffic | domainNeeds terms | domainsite_nametitledescriptioncategoryglobal_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 apply before you call them.
- One domain:
traffictakes adomainand returns its traffic data in one call. - Many domains:
batchesis aPOSTthat takes adomainsarray. - Batch results:
batches-detailtakes abatch, with optionalafterandlimit. - Retries:
batches-retrytakes the samebatch,afterandlimit.
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.
More web and seo APIs
Use cases
Size competitors' websites before entering a market
Use the Similarweb API to size competitors' websites before entering a marketTrack traffic for a watchlist of domains each month
Use the Similarweb API to track traffic for a watchlist of domains each monthEnrich a list of company websites with traffic data
Use the Similarweb API to enrich a list of company websites with traffic dataGive a research agent website traffic as a tool call
Use the Similarweb API to give a research agent website traffic as a tool callFAQ
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.