# Similarweb scraper (`curious_coder/similarweb-scraper`) Actor

Scrape similarweb to get insights for websites in bulk including website traffic, pages per visit, time spent on website, bounce rate, rank, etc

- **URL**: https://apify.com/curious\_coder/similarweb-scraper.md
- **Developed by:** [Curious Coder](https://apify.com/curious_coder) (community)
- **Categories:** Other
- **Stats:** 2,341 total users, 132 monthly users, 100.0% runs succeeded, 84 bookmarks
- **User rating**: 3.72 out of 5 stars

## Pricing

$19.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

SimilarWeb Data Scraper is a powerful Apify actor designed to extract valuable insights from SimilarWeb.com for a given list of websites. 

SimilarWeb is a renowned web analytics platform that provides comprehensive data about website traffic, audience demographics, referral sources, and more. 

With this actor, businesses, marketers, and researchers can effortlessly gather competitive intelligence and make informed decisions to stay ahead in their respective industries.

### Key Features

✅ **Easy Input Configuration:** Users can input a list of websites they want to analyze. This can be provided in various formats, such as a text file, JSON, or CSV.

✅ **Data Extraction:** The actor efficiently navigates through SimilarWeb's web pages, simulating human-like interactions to access and scrape relevant data points for the specified websites.

✅ **Comprehensive Insights:** The actor fetches an array of essential data from SimilarWeb, including but not limited to:
   - Total website visits and traffic sources
   - Geographic distribution of visitors
   - SEO Metrics

✅ **Customizable Output:** Users can choose the desired output format for the scraped data, such as JSON, CSV, or Excel. This allows seamless integration with various data analysis tools and business intelligence platforms.

✅ **Scheduling and Automation:** The actor supports scheduling, enabling users to run regular data updates automatically. This helps monitor the competition consistently and track website performance over time.

✅ **Error Handling and Retry:** In case of temporary connectivity issues or website changes, the actor incorporates robust error handling and automatic retry mechanisms, ensuring reliable data retrieval.

✅ **Data Privacy and Security:** Apify actors are built to prioritize data privacy and security. The SimilarWeb Data Scraper handles all scraped data with utmost confidentiality and does not store any sensitive information.

### Sample data

Here is the sample output of this actor:

```json
{
	"domain": "apify.com",
	"snapshotDate": "2025-09-01T00:00:00+00:00",
	"title": "Apify: Full-stack web scraping and data extraction platform",
	"description": "Cloud platform for web scraping, browser automation, AI agents, and data for AI. Use 6,000+ ready-made tools, code templates, or order a custom solution.",
	"category": "computers_electronics_and_technology/computers_electronics_and_technology",
	"screenshot": "https://site-images.similarcdn.com/image?url=apify.com&t=1&s=1&h=125d66be47a23677bb607b06989996d242ec48f6fa515f16fb9caf60be1ad6f6",
	"globalRank": 18630,
	"countryRank": {
		"Country": 840,
		"CountryCode": "US",
		"Rank": 16326
	},
	"categoryRank": "441",
	"estimatedMonthlyVisits": {
		"2025-07-01": 2199161,
		"2025-08-01": 2089977,
		"2025-09-01": 1911397
	},
	"bounceRate": "0.3450347989318323",
	"pagesPerVisit": "9.489033811248506",
	"visits": "1911397",
	"timeOnSite": "362.2117423055244",
	"topCountryShares": [
		{
			"Country": 840,
			"CountryCode": "US",
			"Value": 0.19364096387539698
		},
		{
			"Country": 356,
			"CountryCode": "IN",
			"Value": 0.11920141872729613
		},
		{
			"Country": 826,
			"CountryCode": "GB",
			"Value": 0.04590373105529772
		},
		{
			"Country": 76,
			"CountryCode": "BR",
			"Value": 0.04508263737412176
		},
		{
			"Country": 124,
			"CountryCode": "CA",
			"Value": 0.03891572380953677
		}
	],
	"trafficSources": {
		"Social": 0.016549451665438503,
		"Paid Referrals": 0.004655117160196928,
		"Mail": 0.0006862730450712692,
		"Referrals": 0.05241703794645685,
		"Search": 0.44363522401984223,
		"Direct": 0.4820568961598155
	},
	"competitors": [],
	"isDataFromGA": false,
	"topKeywords": [
		{
			"name": "apify",
			"esitmatedValue": 369720,
			"cpc": 0.59
		},
		{
			"name": "appify",
			"esitmatedValue": 5570,
			"cpc": 3.68
		},
		{
			"name": "apify api",
			"esitmatedValue": 4310,
			"cpc": 6.46
		},
		{
			"name": "apify store",
			"esitmatedValue": 3490,
			"cpc": 10.76
		},
		{
			"name": "facebook",
			"esitmatedValue": 3050,
			"cpc": 0.31
		}
	],
	"countryRank.country": 840,
	"countryRank.countryCode": "US",
	"countryRank.rank": 16326
}
````

### Use Cases

#### ➡️ Content Strategy

Discover top-performing content and popular social media platforms for your niche, optimizing your content strategy.

#### ➡️ Maximize Marketing Campaign ROI

With Similarweb data, you can optimize your return on investment (ROI) for marketing campaigns. Empower your digital marketing and growth marketing teams to discover innovative ways to launch impactful campaigns. By aggregating data from numerous domains, you can pinpoint traffic acquisition opportunities and make informed decisions to optimize your marketing expenditure. Moreover, you can effortlessly integrate fresh insights into your internal dashboards for continuous analysis and automated reporting.

#### ➡️ Identify Profitable Affiliate Partnerships

Boost your affiliate marketing endeavors by automating the analysis of partnership opportunities across millions of domains. Determine which websites have the potential to enhance your share of voice and grow your affiliate marketing efforts.

#### ➡️ Streamline Conversion Funnel Optimization

For retail, eCommerce, and consumer packaged goods (CPG) companies, Similarweb's API can help track consumer behavior across channels, from initial discovery to conversion. By monitoring competitors' traffic, you can identify new growth opportunities. Automate data delivery to your dashboards, reducing manual work and facilitating more efficient decision-making.

#### ➡️ Enrich Your CRM

Fuel your B2B sales efforts with timely and relevant data. Set up automatic insights refresh to support your sales operations team with up-to-date traffic data, seamlessly integrated into platforms like Salesforce, ensuring they have the information they need when they need it most.

#### ➡️ Analyze Global Travel Audiences

Gain insights into shifting consumer demand and destination trends on a global scale to expand your market share. Examine visitation and booking metrics, such as conversion rates and converted visits, to identify the most effective channels for travel, hospitality, or leisure brands. Automatically monitor destinations experiencing heightened consumer demand and track the leaders in consumer bookings.

#### ➡️ Automate Trading and Investment Decisions

Hedge funds and investors leverage Similarweb's API to feed millions of data points into their predictive algorithms daily. This aids in evaluating brand strength, company performance, and year-over-year (YoY) and quarter-over-quarter (QoQ) traffic trends. By combining Similarweb's alternative data with other datasets within Tableau or other internal systems, the decision-making process is simplified and streamlined.

### ❓ Frequently asked questions

#### ➡️ How does the scraper handle failed urls ?

The scraper has smart retry mechanisms implmented which make sure no URLs are left behind or the failed URLs do not stop the scraper from scraping other URLs. The scraper also supports resuming last run perfectly in case it fails

# Actor input Schema

## `domains` (type: `array`):

No description

## `proxy` (type: `object`):

No description

## Actor input object example

```json
{
  "domains": [
    "twitter.com",
    "apify.com"
  ]
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "twitter.com",
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("curious_coder/similarweb-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "domains": [
        "twitter.com",
        "apify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("curious_coder/similarweb-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "twitter.com",
    "apify.com"
  ]
}' |
apify call curious_coder/similarweb-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=curious_coder/similarweb-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Similarweb scraper",
        "description": "Scrape similarweb to get insights for websites in bulk including website traffic, pages per visit, time spent on website, bounce rate, rank, etc",
        "version": "1.0",
        "x-build-id": "0gZF8cUtfQ3MSejDj"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/curious_coder~similarweb-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-curious_coder-similarweb-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/curious_coder~similarweb-scraper/runs": {
            "post": {
                "operationId": "runs-sync-curious_coder-similarweb-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/curious_coder~similarweb-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-curious_coder-similarweb-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "domains"
                ],
                "properties": {
                    "domains": {
                        "title": "Domains list",
                        "type": "array",
                        "description": "",
                        "items": {
                            "type": "string"
                        }
                    },
                    "proxy": {
                        "title": "Custom proxy",
                        "type": "object",
                        "description": ""
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
