curl --request POST \
--url https://api.scrapeunblocker.com/seo/similarweb \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/seo/similarweb"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/seo/similarweb', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Get a website's Similarweb traffic overview
Returns Similarweb’s public traffic overview for domain as JSON: globalRank, countryRank (with country), categoryRank (with category) and their month-over-month changes; totalVisits for the latest month with visitsChangePercent; bounceRate, pagesPerVisit, avgVisitDuration/avgVisitDurationSeconds; visitsHistory (the last 3 months - earlier months are derived from Similarweb’s own month-over-month change) and rankHistory; trafficSources (channel shares - Similarweb’s free page reveals only some, the rest are null); topCountries; demographics (gender, age groups); competitors (similar sites with affinity); search (organic/paid split and top keywords); socialNetworks, referrals, outgoingLinks, displayAds; technologies; audienceInterests; and the company profile. snapshotDate is the month the data describes. A domain Similarweb has no page for returns found: false with the same keys set to null/empty; a known domain too small to estimate returns hasTrafficData: false.
curl --request POST \
--url https://api.scrapeunblocker.com/seo/similarweb \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/seo/similarweb"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/seo/similarweb', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
Website to look up: a bare domain ('github.com'), a URL ('https://www.github.com/about'), or a Similarweb page URL. A leading 'www.' is dropped; other subdomains ('docs.python.org') are kept.
Exit-IP country (ISO-2, e.g. 'US', 'DE'). Optional.
Response
JSON website overview (found: false when Similarweb has no data for the domain).

