# Similarweb Quick Scraper (`mscraper/similarweb-quick-scraper`) Actor

A quick scraper for Similarweb. Get needed data instantly for domains of your choice. Export accumulated data into formats such as HTML, JSON, or Excel.

- **URL**: https://apify.com/mscraper/similarweb-quick-scraper.md
- **Developed by:** [mscraper](https://apify.com/mscraper) (community)
- **Categories:** SEO tools
- **Stats:** 1,329 total users, 30 monthly users, 100.0% runs succeeded, 40 bookmarks
- **User rating**: 1.70 out of 5 stars

## Pricing

from $9.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 Quick Scraper

![scraper-icon](https://i.imgur.com/rTtX5M0.png)

A quick scraper for [similarweb.com](https://www.similarweb.com). Get needed data instantly for domains of your choice. Export accumulated data into formats such as HTML, JSON, or Excel.

### Scraper comparison

|                                     | Similarweb Quick Scraper | Similarweb Scraper |
| ----------------------------------- | ------------------------ | ------------------ |
| Time Per Website                    | 11s                      | 53s                |
| Time Per 10 Websites                | 22s                      | 9min 25s           |
| Cost Per Website                    | $0.004                   | $0.003             |
| Website information                 | ✅                       | ✅                 |
| Company information                 | ❌                       | ✅                 |
| Totals                              | ✅                       | ✅                 |
| Popularity ranking                  | ✅                       | ✅                 |
| Traffic sources                     | ✅                       | ✅                 |
| Social network distribution         | ❌                       | ✅                 |
| Competitors                         | ❌                       | ✅                 |
| Used technologies                   | ❌                       | ✅                 |
| Age/gender distribution             | ❌                       | ✅                 |
| Popular topics/websites among users | ❌                       | ✅                 |
| Top countries                       | ✅                       | ✅                 |
| Est. visits (past 3 months)         | ✅                       | ❌                 |

### Results

```json
{
    "Url": "https://similarweb.com/website/shopcider.com",
    "Version": 1,
    "SiteName": "shopcider.com",
    "Description": "cider is a globally-minded, social-first fashion brand. we ship anywhere, go everywhere, and make clothes for a new generation.",
    "TopCountryShares": [
        {
            "Country": 840,
            "CountryCode": "US",
            "Value": 0.46933741856427624
        },
        {
            "Country": 826,
            "CountryCode": "GB",
            "Value": 0.11652092366193785
        },
        {
            "Country": 124,
            "CountryCode": "CA",
            "Value": 0.05283521720450086
        },
        {
            "Country": 36,
            "CountryCode": "AU",
            "Value": 0.04059897711624111
        },
        {
            "Country": 276,
            "CountryCode": "DE",
            "Value": 0.0399622515590104
        }
    ],
    "Title": "cider | your closet's happy hour",
    "Engagments": {
        "BounceRate": "0.40887824674596307",
        "Month": "5",
        "Year": "2023",
        "PagePerVisit": "5.258222658371529",
        "Visits": "7654236.050896728",
        "TimeOnSite": "355.5229279446244"
    },
    "EstimatedMonthlyVisits": {
        "2023-03-01": 6357745,
        "2023-04-01": 6644964,
        "2023-05-01": 7654236
    },
    "GlobalRank": {
        "Rank": 7099
    },
    "CountryRank": {
        "Country": 840,
        "CountryCode": "US",
        "Rank": 3670
    },
    "CategoryRank": {
        "Rank": "172",
        "Category": "Lifestyle/Fashion_and_Apparel"
    },
    "IsSmall": false,
    "TrafficSources": {
        "Social": 0.08695719436501925,
        "Paid Referrals": 0.008611427132944546,
        "Mail": 0.00842827963525021,
        "Referrals": 0.00655563874723541,
        "Search": 0.45398827670217423,
        "Direct": 0.4354591834173762
    },
    "Category": "lifestyle/fashion_and_apparel",
    "LargeScreenshot": "https://site-images.similarcdn.com/image?url=shopcider.com&t=1&s=1&h=6a42a5787aae6bd7353c479fc99c699e330f672a537eb244e9fa9f40a985022b",
    "IsDataFromGa": false
}
```

### Is it legal to scrape Similarweb?

Note that personal data is protected by GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. We also recommend that you read our blog post: [is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

### Contact

Please feel free to browse through the diverse array of web scrapers available on [my Apify profile](https://apify.com/mscraper). If a custom solution or extra options are what you're seeking, don't hesitate to get in touch with me directly at <contact@mscraper.com>.

### Related scrapers for social media and competitor research

Complement Similarweb website traffic estimates with public social content and community discussions about the brands you track.

- [TikTok Scraper](https://apify.com/mscraper/tiktok-scraper) — Collect video metadata, creator profiles and comments for social content research.
- [X (Twitter) Scraper](https://apify.com/mscraper/x-scraper) — Retrieve public profiles, timeline posts and follower lists to examine a brand’s presence on X.
- [Reddit Scraper](https://apify.com/mscraper/reddit-scraper) — Search Reddit posts and collect comments to explore product feedback and community discussions.

Run each Actor separately and combine its exported data in your own workflow. Each Actor has its own input, output and pricing.

# Actor input Schema

## `websites` (type: `array`):

Similarweb websites to scrape. Enter domains.

## `token` (type: `string`):

Optional token for priority queue.

## Actor input object example

```json
{
  "websites": [
    "apple.com",
    "microsoft.com",
    "google.com",
    "twitter.com",
    "samsung.com",
    "hp.com",
    "dell.com",
    "mi.com",
    "lg.com",
    "sony.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 = {
    "websites": [
        "apple.com",
        "microsoft.com",
        "google.com",
        "twitter.com",
        "samsung.com",
        "hp.com",
        "dell.com",
        "mi.com",
        "lg.com",
        "sony.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mscraper/similarweb-quick-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 = { "websites": [
        "apple.com",
        "microsoft.com",
        "google.com",
        "twitter.com",
        "samsung.com",
        "hp.com",
        "dell.com",
        "mi.com",
        "lg.com",
        "sony.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("mscraper/similarweb-quick-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 '{
  "websites": [
    "apple.com",
    "microsoft.com",
    "google.com",
    "twitter.com",
    "samsung.com",
    "hp.com",
    "dell.com",
    "mi.com",
    "lg.com",
    "sony.com"
  ]
}' |
apify call mscraper/similarweb-quick-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mscraper/similarweb-quick-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/ctzd4Jx2UCTZZf6rR/builds/03JXsfl8hD9z41OAI/openapi.json
