---
title: "Similarweb scraper"
description: "Scrape Similarweb website pages as JSON: global rank, monthly visits, bounce rate, pages per visit, top countries and similar sites. API, CLI or MCP."
canonical: https://www.zenrows.com/scrape/similarweb
updated: 2026-10-29
---

# 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

## Run it: one Similarweb domain in, JSON out

```json Input
{
  "url": "https://www.similarweb.com/website/wikipedia.org/",
  "mode": "auto",
  "extract": "auto",
  "proxy_country": "us"
}
```

```json Output
{
  "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.

| Field | What it holds | Example |
|---|---|---|
| `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.

```python Python
# 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))
```

```javascript Node.js
// 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);
```

```bash cURL
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"
```

```python Python SDK
# 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_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 |

```json 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.

```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"]
}
```

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.

## 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.

```bash Connect the MCP server (Claude Code)
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
```

```json MCP config (Cursor, Claude Desktop, Windsurf)
{
  "mcpServers": {
    "zenrows": {
      "command": "npx",
      "args": ["-y", "@zenrows/mcp"],
      "env": { "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY" }
    }
  }
}
```

```bash Or run the CLI
npx -y @zenrows/cli init
zenrows extract "https://www.similarweb.com/website/wikipedia.org/" --proxy-country us
```

```text 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 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.

```bash Batch (cURL)
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"
```

```bash Batch (CLI)
# 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.jsonl
```

```bash Crawl (cURL)
curl -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/"]
  }'
```

**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.

```bash Scheduled job (cURL)
# 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`, 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

### Is it legal to scrape Similarweb?

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.

### Is there an official Similarweb API?

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.

### What Similarweb pages can I scrape?

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.

### Can I scrape Similarweb traffic for many domains?

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.

### How do I scrape Similarweb with Python?

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.

### How accurate are the Similarweb numbers?

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.

### Do I need to write or maintain selectors?

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.

### Can AI agents scrape Similarweb with Zenrows?

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.

### Can I scrape Similarweb on a schedule?

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.

### Which integrations work with the Similarweb scraper?

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.

### What format does the data come in?

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.

All scrapers: https://www.zenrows.com/scrape. Start free: https://app.zenrows.com/register. Docs: https://docs.zenrows.com

## Structured data



<script type="application/ld+json">
{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://www.zenrows.com/scrape/similarweb#webpage","url":"https://www.zenrows.com/scrape/similarweb","name":"Similarweb scraper","description":"Scrape Similarweb website pages as JSON: global rank, monthly visits, bounce rate, pages per visit, top countries and similar sites. API, CLI or MCP.","isPartOf":{"@id":"https://www.zenrows.com/#website"},"inLanguage":"en","datePublished":"2026-10-29","dateModified":"2026-10-29","about":{"@type":"WebSite","name":"Similarweb","url":"https://similarweb.com"},"keywords":"similarweb scraper, similarweb api, similarweb scraper, similarweb scraping, scrape similarweb","mainEntity":{"@id":"https://www.zenrows.com/scrape/similarweb#scraper"},"publisher":{"@type":"Organization","name":"Zenrows","url":"https://www.zenrows.com/"}},{"@type":"SoftwareApplication","@id":"https://www.zenrows.com/scrape/similarweb#scraper","name":"Similarweb scraper by Zenrows","url":"https://www.zenrows.com/scrape/similarweb","applicationCategory":"DeveloperApplication","operatingSystem":"Any (HTTP API, CLI, MCP)","description":"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.","featureList":"Domain traffic, rank, engagement and audience","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"provider":{"@type":"Organization","name":"Zenrows","url":"https://www.zenrows.com/"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.zenrows.com/"},{"@type":"ListItem","position":2,"name":"Scrapers","item":"https://www.zenrows.com/scrape"},{"@type":"ListItem","position":3,"name":"Similarweb scraper","item":"https://www.zenrows.com/scrape/similarweb"}]},{"@type":"FAQPage","@id":"https://www.zenrows.com/scrape/similarweb#faq","mainEntity":[{"@type":"Question","name":"Is it legal to scrape Similarweb?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Is there an official Similarweb API?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"What Similarweb pages can I scrape?","acceptedAnswer":{"@type":"Answer","text":"Website pages ( /website/\u003cdomain>/ ) 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."}},{"@type":"Question","name":"Can I scrape Similarweb traffic for many domains?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How do I scrape Similarweb with Python?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How accurate are the Similarweb numbers?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Do I need to write or maintain selectors?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Can AI agents scrape Similarweb with Zenrows?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Can I scrape Similarweb on a schedule?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Which integrations work with the Similarweb scraper?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"What format does the data come in?","acceptedAnswer":{"@type":"Answer","text":"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."}}]}]}
</script>
