Similarweb scraper
The Zenrows Similarweb scraper turns any Similarweb website URL into structured JSON: domain, global rank, country rank, category rank, total visits, bounce rate, pages per visit, visit duration, top countries, audience split and similar sites. You send the URL, Fetch in Adaptive Stealth Mode opens the page, and Extract returns the fields. Run it from an API call, the CLI or an AI agent.
- Site
similarweb.com- Returns
- Domain traffic, rank, engagement and audience
- Updated
{
"site": {
"domain": "wikipedia.org",
"description": "Wikipedia is a free online encyclopedia, created and edited by volunteers around the world and hosted by the Wikimedia Foundation.",
"period": "September 2026"
},
"ranking": {
"global_rank": 11,
"country_rank": 14,
"country": "United States",
"category_rank": 1,
"category": "Reference Materials > Dictionaries and Encyclopedias"
},
"engagement": {
"total_visits": "3.4B",
"visits_change_last_month": "-4.59%",
"bounce_rate": "54.09%",
"pages_per_visit": 3.23,
"avg_visit_duration": "00:03:08"
},
"top_countries": [
{ "country": "United States", "share": "27.07%" },
{ "country": "Japan", "share": "6.37%" },
{ "country": "United Kingdom", "share": "5.67%" }
],
"audience": {
"male_share": "58.78%",
"female_share": "41.22%",
"largest_age_group": "25 - 34"
},
"similar_sites": ["quora.com", "merriam-webster.com", "sciencedirect.com"]
}{
"url": "https://www.similarweb.com/website/wikipedia.org/",
"mode": "auto",
"extract": "auto",
"proxy_country": "us"
}Sample output for Similarweb, built from a live request on Oct 29, 2026, trimmed for length. Values are the ones the page showed for September 2026, and a field is returned when the page shows it.
What data can you scrape from Similarweb?
A Similarweb website page comes back as the domain, its rank, its traffic and engagement, where its visitors come from and who they are.
These are the fields teams use most, with the path where each lives in the JSON.
| Field | What it holds | Example |
|---|---|---|
site. |
The domain the page reports on | wikipedia.org |
site. |
The site's own description | Wikipedia is a free online encyclopedia… |
site. |
The month the estimates cover | September 2026 |
ranking. |
Rank among all websites worldwide | 11 |
ranking. |
Rank in the top country | 14 |
ranking. |
Rank inside the site's category | 1 |
ranking. |
The category the rank refers to | Reference Materials > Dictionaries and Encyclopedias |
engagement. |
Visits in the period, as the page shows them | 3.4B |
engagement. |
Change in visits against the previous month | -4.59% |
engagement. |
Share of visits that leave after one page | 54.09% |
engagement. |
Average pages viewed per visit | 3.23 |
engagement. |
Average time spent per visit | 00:03:08 |
top_ |
Countries sending the most traffic, with their share | { "country": "Japan", "share": "6.37%" } |
audience., audience. |
Gender split of the audience | 58.78% |
audience. |
The age group with the most visitors | 25 - 34 |
similar_ |
Sites ranked close to the domain | quora.com |
How to scrape Similarweb with Zenrows
- Create a free Zenrows account and copy your API key from the dashboard.
- Pick the Similarweb URL. A website page has the form
similarweb.com/website/<domain>/, so a list of domains becomes a list of URLs. - Send it with the default configuration: Adaptive Stealth Mode to open the page, Extract to return the fields, and a country so the page opens the same way each time.
- Read
parsedfrom the response. To keep only some fields, list their paths and the response returns just those. - Run your full domain list in Batch once one URL returns what you need, with the domain as your own key.
# pip install requests
import json
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": "https://www.similarweb.com/website/wikipedia.org/",
"mode": "auto", # Adaptive Stealth Mode
"extract": "auto", # structured JSON
"proxy_country": "us",
}
response = requests.get("https://api.zenrows.com/v1/", params=params, timeout=180)
response.raise_for_status()
data = response.json()["parsed"]
ranking = data.get("ranking") or {}
engagement = data.get("engagement") or {}
print(data["site"]["domain"], ranking.get("global_rank"), engagement.get("total_visits"))
print(json.dumps(data, indent=2))// Node 18+ (built-in fetch)
const params = new URLSearchParams({
apikey: "YOUR_ZENROWS_API_KEY",
url: "https://www.similarweb.com/website/wikipedia.org/",
mode: "auto",
extract: "auto",
proxy_country: "us",
});
const response = await fetch(`https://api.zenrows.com/v1/?${params}`, {
signal: AbortSignal.timeout(180_000),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const { parsed } = await response.json();
console.log(parsed.site.domain, parsed.ranking?.global_rank, parsed.engagement?.bounce_rate);curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.similarweb.com%2Fwebsite%2Fwikipedia.org%2F&mode=auto&extract=auto&proxy_country=us"
# Only the fields you need
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.similarweb.com%2Fwebsite%2Fwikipedia.org%2F&mode=auto&extract=auto&proxy_country=us&extract_fields=site.domain%2Cranking.global_rank%2Cengagement.total_visits%2Cengagement.bounce_rate"# pip install zenrows
from zenrows import ZenRowsClient
client = ZenRowsClient("YOUR_ZENROWS_API_KEY")
for domain in ["wikipedia.org", "quora.com", "merriam-webster.com"]:
response = client.get(
f"https://www.similarweb.com/website/{domain}/",
params={"mode": "auto", "extract": "auto", "proxy_country": "us"},
)
data = response.json()["parsed"]
print(domain, data["ranking"].get("global_rank"), data["engagement"].get("total_visits"))Input
The scraper takes one Similarweb URL per request, plus the options below.
The same parameters go into every task of a Batch job, so the input for a thousand domains is a list of URLs with these settings.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | A Similarweb website page: https://www.similarweb.com/website/<domain>/ |
mode |
string | auto |
Adaptive Stealth Mode: starts with the lightest setup and adds rendering and protected-site handling only when the page needs them |
extract |
string | auto |
Returns the page's fields as JSON in parsed, next to the raw html |
extract_ |
string | all fields | Comma-separated paths to keep, such as ranking.global_rank,engagement.total_visits |
proxy_ |
string | any | Two-letter country code. Similarweb names the country rank after the visitor's location, so fix it for comparable runs |
wait_ |
string | none | A CSS selector to wait for before the page is read |
session_ |
integer | none | Reuse the same session across several requests, up to 10 minutes |
{
"type": "regular",
"status": "closed",
"zenrows_params": {
"mode": "auto",
"extract": "auto",
"proxy_country": "us"
},
"tasks": [
{ "url": "https://www.similarweb.com/website/wikipedia.org/", "external_id": "wikipedia.org" },
{ "url": "https://www.similarweb.com/website/quora.com/", "external_id": "quora.com" },
{ "url": "https://www.similarweb.com/website/merriam-webster.com/", "external_id": "merriam-webster.com" }
]
}
Output
Every response is JSON with two keys: html, the page as Similarweb served it, and parsed, the structured record. The sample below is built from the values of a live request to a website page.
Need a spreadsheet? Load parsed into pandas with pd.json_normalize(...) and write CSV or Excel. Need the page for an LLM? Ask for Markdown instead of JSON.
{
"site": {
"domain": "wikipedia.org",
"period": "September 2026"
},
"ranking": {
"global_rank": 11,
"country_rank": 14,
"country": "United States",
"category_rank": 1,
"category": "Reference Materials > Dictionaries and Encyclopedias"
},
"engagement": {
"total_visits": "3.4B",
"visits_change_last_month": "-4.59%",
"bounce_rate": "54.09%",
"pages_per_visit": 3.23,
"avg_visit_duration": "00:03:08"
},
"top_countries": [
{ "country": "United States", "share": "27.07%" },
{ "country": "Japan", "share": "6.37%" },
{ "country": "United Kingdom", "share": "5.67%" },
{ "country": "Germany", "share": "5.28%" },
{ "country": "France", "share": "4.08%" }
],
"audience": {
"male_share": "58.78%",
"female_share": "41.22%",
"largest_age_group": "25 - 34"
},
"company": {
"name": "Wikipedia",
"year_founded": 2001,
"employees": "> 10001",
"headquarters": "United States, Washington, Seattle",
"annual_revenue": "$100M - $200M",
"industry": "Reference Materials > Dictionaries and Encyclopedias"
},
"similar_sites": ["quora.com", "merriam-webster.com", "sciencedirect.com", "word.tips"]
}
Connect the MCP server (Claude Code)
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
MCP config (Cursor, Claude Desktop, Windsurf)
{
"mcpServers": {
"zenrows": {
"command": "npx",
"args": ["-y", "@zenrows/mcp"],
"env": { "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY" }
}
}
}
Or run the CLI
npx -y @zenrows/cli init
zenrows extract "https://www.similarweb.com/website/wikipedia.org/" --proxy-country us
Then ask your agent
Use Zenrows to get the global rank, total visits, bounce rate and top
three countries for these domains and return them as a table sorted by
total visits:
https://www.similarweb.com/website/wikipedia.org/
https://www.similarweb.com/website/quora.com/
Scrape Similarweb from your coding agent
Claude Code, Cursor, Codex and any MCP client can scrape Similarweb from a prompt.
The agent calls the same Fetch and Extract request a developer would, so the JSON above is what it reads. Connect the Zenrows MCP server once, or install the CLI and let the agent run it in the terminal.
Scrape Similarweb at scale with Batch and Crawl
Batch runs a list of Similarweb URLs as one job: hundreds or thousands of domains in parallel, with your own ID on each result. Run it monthly to keep a rank and traffic history for every competitor or prospect you follow.
Crawl finds the URLs for you. Start it on a Similarweb top websites list, keep the links that contain /website/, and it returns the page of every domain it reaches. Send that list to Batch.
Scheduled jobs run the same Batch job on a timetable, on Zenrows' side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can tell your app when a run finishes, and you can pause or resume the schedule at any time, with no cron server to keep alive.
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "regular",
"status": "closed",
"zenrows_params": { "mode": "auto", "extract": "auto", "proxy_country": "us" },
"tasks": [
{ "url": "https://www.similarweb.com/website/wikipedia.org/", "external_id": "wikipedia.org" },
{ "url": "https://www.similarweb.com/website/quora.com/", "external_id": "quora.com" }
]
}'
# Read the results when the job finishes
curl "https://async.api.zenrows.com/v1/jobs/JOB_ID/results?status=successful" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY"# domains.jsonl: one {"url": "...", "external_id": "...", "extract": "auto"} per line
zenrows batch create domains.jsonl --proxy-country us --wait
zenrows batch results <job-id> --out similarweb-domains.jsonlcurl -X POST "https://api.zenrows.com/v1/crawls" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.similarweb.com/top-websites/",
"depth": 1,
"max_pages": 100,
"include_patterns": ["/website/"]
}'# Runs every day on Zenrows' side; each run keeps its own results
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "scheduled",
"status": "closed",
"schedule": {
"rate": {
"every": 1,
"unit": "day"
}
},
"zenrows_params": {
"mode": "auto",
"extract": "auto",
"proxy_country": "us"
},
"tasks": [
{
"url": "https://www.similarweb.com/website/wikipedia.org/",
"external_id": "similarweb"
}
]
}'
# Or at set times: "schedule": { "calendar": { "times_of_day": ["09:00"],
# "cadence": { "weekly": { "days": ["mon", "thu"] } } }, "timezone": "Europe/Madrid" }What teams do with Similarweb data
| Use case | Data they pull | Who runs it |
|---|---|---|
| Competitor benchmarking | Global rank, total visits, bounce rate and pages per visit for rival domains | Marketing and strategy teams |
| Market sizing | Visits and category rank across every site in a segment | Analysts and consultants |
| Lead scoring and prospecting | Visits, rank and top countries for the domains of target companies | Sales and revenue operations teams |
| Investment research | Month on month change in visits for public and private companies | Investors and data teams |
| Audience research | Top countries, gender split and largest age group per site | Media and advertising teams |
| AI research agents | The full domain record, or the page as Markdown | AI and data teams |
Tips for scraping Similarweb
- Build URLs from domains. The page for any domain is
https://www.similarweb.com/website/<domain>/, so a column of domains in a sheet is already your input list. - Use the bare domain. Write
wikipedia.org, notwww.wikipedia.orgor a full page URL, since the page reports on the registered domain. - Store the period with every row. The page shows estimates for one month, named in
site.period. Keep it next to the values so each run joins to the month it describes. - Fix the country. The country rank refers to the top country for the site and the page is opened from a location, so use the same
proxy_countryon every run you compare. - Treat numbers as strings with units. Visits come as
3.4Band shares as27.07%. Convert them once on load, and keep the original text in your raw table. - Read missing groups defensively. Smaller sites show fewer sections, so a field is returned when the page shows it and optional groups can be empty.
More Similarweb and lead generation scrapers
-
similarweb.com
Similarweb traffic scraper
Monthly visit trends, traffic source split and top countries for any domain.
-
similarweb.com
Similarweb top websites scraper
Ranked top websites per category or country with rank and monthly visits.
-
alibaba.com
Alibaba scraper
Wholesale listings with tiered prices, minimum order quantities and supplier details.
-
crunchbase.com
Crunchbase scraper
Company profiles with funding totals, rounds, investors, acquisitions and headcount ranges.
-
apollo.io
Apollo scraper
Public company directory pages with industry, headcount, location and technologies used.
-
indiamart.com
IndiaMART scraper
Indian B2B listings with product prices, supplier names, cities and GST status.
-
zoominfo.com
ZoomInfo scraper
Public company profiles with industry, revenue range, headcount, location and website.
-
clutch.co
Clutch scraper
B2B service provider profiles with client reviews, hourly rates, team size and services.
-
builtwith.com
BuiltWith scraper
Technology profiles of websites with detected tools, categories and first and last seen dates.
Frequently asked questions
-
Collecting publicly available data from Similarweb, such as the traffic estimates and rankings shown on its free website pages, is common practice for competitor and market research. The pages describe companies and sites rather than people, but you should still keep any personal data you come across within the GDPR and the CCPA. Check Similarweb's terms for your use case and ask your lawyer if you are unsure.
-
Yes. Similarweb sells API and data feed access to its full dataset on a contract basis, with a larger history and more metrics than its public pages. The scraper reads what the public website page shows for a domain, which suits teams that need a quick rank and traffic snapshot for many domains.
-
Website pages (
/website/<domain>/) and the lists they link to, such as top websites by country and category, on similarweb.com. Send the URL as it appears in your browser. -
Yes. Build one URL per domain, send the list as a Batch job and use the domain as the
external_id. Every result joins back to your sheet by that key, and the same job can run each month. -
Send a GET request to
https://api.zenrows.com/v1/with your API key, the Similarweb URL, Adaptive Stealth Mode and Extract turned on, as in the Python example above. The response'sparsedkey holds the record as a Python dictionary. Thezenrowspackage on PyPI wraps the same request. -
Similarweb labels them as estimated data. The scraper returns what the page shows, so accuracy is Similarweb's, and the value in
site.periodtells you which month it covers. -
No. Extract returns each field by name, so your code reads
parsedinstead of parsing Similarweb's HTML. For a field of your own, send a separate request with CSS selectors instead of Extract. -
Yes. Connect the Zenrows MCP server to Claude, Cursor, Codex or any MCP client, or give your agent the Zenrows CLI. Ask for the domains and metrics you want in plain language and the agent calls Fetch and Extract for you.
-
Yes. Create a scheduled Batch job with your Similarweb URLs and the same settings as a single request, and Zenrows runs it on its side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can notify your app when a run finishes, and the schedule can be paused or resumed at any time.
-
Zenrows works with n8n, Make, Zapier, Clay, Dify, LangChain, LlamaIndex, CrewAI and Mastra, plus the Python, Node.js and Go SDKs and any HTTP client. Send results to Google Sheets, a database or a data warehouse from the workflow tool you already use. See the integrations page for the full list.
-
JSON by default, with the structured record in
parsedand the original page inhtml. You can also ask for the page as Markdown or plain text, which is what most LLM and RAG pipelines want.