Crawl: the most reliable web crawler APISee what’s new
Zenrows
Talk to sales Start free

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
Runs on
Fetch, Extract, Batch, Crawl
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"]
}

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.

FieldWhat it holdsExample
site.domain The domain the page reports on wikipedia.org
site.description The site's own description Wikipedia is a free online encyclopedia…
site.period The month the estimates cover September 2026
ranking.global_rank Rank among all websites worldwide 11
ranking.country_rank Rank in the top country 14
ranking.category_rank Rank inside the site's category 1
ranking.category The category the rank refers to Reference Materials > Dictionaries and Encyclopedias
engagement.total_visits Visits in the period, as the page shows them 3.4B
engagement.visits_change_last_month Change in visits against the previous month -4.59%
engagement.bounce_rate Share of visits that leave after one page 54.09%
engagement.pages_per_visit Average pages viewed per visit 3.23
engagement.avg_visit_duration Average time spent per visit 00:03:08
top_countries[] Countries sending the most traffic, with their share { "country": "Japan", "share": "6.37%" }
audience.male_share, audience.female_share Gender split of the audience 58.78%
audience.largest_age_group The age group with the most visitors 25 - 34
similar_sites[] Sites ranked close to the domain quora.com

How to scrape Similarweb with Zenrows

  1. Create a free Zenrows account and copy your API key from the dashboard.
  2. Pick the Similarweb URL. A website page has the form similarweb.com/website/<domain>/, so a list of domains becomes a list of URLs.
  3. 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.
  4. Read parsed from the response. To keep only some fields, list their paths and the response returns just those.
  5. 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))

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.

ParameterTypeDefaultDescription
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_fields string all fields Comma-separated paths to keep, such as ranking.global_rank,engagement.total_visits
proxy_country string any Two-letter country code. Similarweb names the country rank after the visitor's location, so fix it for comparable runs
wait_for string none A CSS selector to wait for before the page is read
session_id integer none Reuse the same session across several requests, up to 10 minutes
Batch input
{
  "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.

Website page
{
  "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"

What teams do with Similarweb data

Use caseData they pullWho 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, not www.wikipedia.org or 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_country on every run you compare.
  • Treat numbers as strings with units. Visits come as 3.4B and shares as 27.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.

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's parsed key holds the record as a Python dictionary. The zenrows package 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.period tells you which month it covers.

  • No. Extract returns each field by name, so your code reads parsed instead 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 parsed and the original page in html. You can also ask for the page as Markdown or plain text, which is what most LLM and RAG pipelines want.

Turn the live web into usable data.

Start building free 5,000 credits/month, always