# 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:** 3,216 total users, 438 monthly users, 100.0% runs succeeded, 90 bookmarks
- **User rating**: 4.49 out of 5 stars

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# 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

# Changelog

This Actor's version history is a separate document: https://apify.com/curious_coder/similarweb-scraper/changelog.md

# 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(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,curious_coder/similarweb-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/yOYYzj2J5K88boIVO/builds/0gZF8cUtfQ3MSejDj/openapi.json
