# Semrush Top Websites Scraper (`saswave/semrush-top-websites-scraper`) Actor

Semrush top websites scraper. Collect data at scale on top websites per country and category. Extract informations like: number of visits, bounce rate, page per visit, name, domain, rank position, change, favicon

- **URL**: https://apify.com/saswave/semrush-top-websites-scraper.md
- **Developed by:** [SASWAVE](https://apify.com/saswave) (community)
- **Categories:** SEO tools, Social media, Lead generation
- **Stats:** 8 total users, 1 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.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

### Semrush Top Websites Scraper – Website Analytics at Scale

The Semrush Top Websites Scraper collects detailed analytics on the top websites per country and category. 

This tool is ideal for market research, competitive intelligence, SEO benchmarking, and digital marketing insights.

It extracts critical website performance metrics such as:

Number of visits

Bounce rate

Pages per visit

Domain and website name

Rank position and ranking changes

Favicon URLs

### 🔹 Key Metrics

Average Visits: Mean number of visits across all sites

Average Bounce Rate: Mean bounce rate across sites

Average Pages per Visit: Mean pages viewed per visitor

Highest & Lowest Metrics: Identify websites with the highest or lowest visits, bounce rates, and pages per visit

Ranking Table: Full ranking list including position, change, and key performance metrics

### 💡 Use Cases

Competitive Benchmarking – Compare top websites in a niche or country.

Market Research – Understand user engagement and traffic trends across sectors.

SEO & Performance Analysis – Identify high-performing websites for backlinks or content inspiration.

Digital Marketing Strategy – Track the success of competitors’ online campaigns.

Data-Driven Decisions – Use website metrics to guide investment or partnership decisions.


### Output

```json
{
  "report_date": "2025-10-01",
  "date_modified": "2025-11-13",
  "avg_visits": 10947805691.75,
  "avg_bounce_rate": 0.454565,
  "avg_pages_per_visit": 5.70312,
  "highest_visits": 105639948420,
  "highest_bounce_rate": 0.6073,
  "highest_bounce_rate_domain": "whatsapp.com",
  "highest_pages_per_visit": 8.8959,
  "highest_pages_per_visit_domain": "xvideos.com",
  "lowest_visits": 1635629471,
  "lowest_pages_per_visit": 2.5917,
  "lowest_bounce_rate": 0.2292,
  "lowest_bounce_rate_domain": "pornhub.com",
  "ranking": [
    {
      "domain": "google.com",
      "rank": 1,
      "change": 0,
      "visits": 105639948420,
      "pages_per_visit": 5.3763,
      "bounce_rate": 0.3758,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/google-com-favicon-f3418a44.ico",
      "name": "Google"
    },
    {
      "domain": "youtube.com",
      "rank": 2,
      "change": 0,
      "visits": 48855932719,
      "pages_per_visit": 8.7361,
      "bounce_rate": 0.3081,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/youtube-com-favicon-88b01f68.png",
      "name": "YouTube"
    },
    {
      "domain": "facebook.com",
      "rank": 3,
      "change": 0,
      "visits": 9667903834,
      "pages_per_visit": 7.366,
      "bounce_rate": 0.4748,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/facebook-com-favicon-d2850d31.ico",
      "name": "Facebook"
    },
    {
      "domain": "chatgpt.com",
      "rank": 4,
      "change": 0,
      "visits": 6014424297,
      "pages_per_visit": 3.9829,
      "bounce_rate": 0.4075,
      "favicon": null,
      "name": ""
    },
    {
      "domain": "instagram.com",
      "rank": 5,
      "change": 0,
      "visits": 5792098446,
      "pages_per_visit": 8.6887,
      "bounce_rate": 0.5072,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/instagram-com-favicon-b407fa10.png",
      "name": "Instagram"
    },
    {
      "domain": "reddit.com",
      "rank": 6,
      "change": 0,
      "visits": 5156718021,
      "pages_per_visit": 3.4565,
      "bounce_rate": 0.5981,
      "favicon": null,
      "name": "Reddit"
    },
    {
      "domain": "wikipedia.org",
      "rank": 7,
      "change": 0,
      "visits": 4859209722,
      "pages_per_visit": 3.2177,
      "bounce_rate": 0.5871,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/wikipedia-org-favicon-904ce6bd.ico",
      "name": "Wikipedia"
    },
    {
      "domain": "pornhub.com",
      "rank": 8,
      "change": 0,
      "visits": 4037812283,
      "pages_per_visit": 7.5498,
      "bounce_rate": 0.2292,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/pornhub-com-favicon-bf5b6c80.ico",
      "name": "Pornhub"
    },
    {
      "domain": "x.com",
      "rank": 9,
      "change": 0,
      "visits": 3907153654,
      "pages_per_visit": 8.5157,
      "bounce_rate": 0.4738,
      "favicon": null,
      "name": ""
    },
    {
      "domain": "yahoo.com",
      "rank": 10,
      "change": 0,
      "visits": 3243568828,
      "pages_per_visit": 3.9224,
      "bounce_rate": 0.4985,
      "favicon": null,
      "name": "Yahoo"
    },
    {
      "domain": "whatsapp.com",
      "rank": 11,
      "change": 0,
      "visits": 2802808602,
      "pages_per_visit": 5.1502,
      "bounce_rate": 0.6073,
      "favicon": null,
      "name": "WhatsApp"
    },
    {
      "domain": "amazon.com",
      "rank": 12,
      "change": 1,
      "visits": 2767444695,
      "pages_per_visit": 7.0662,
      "bounce_rate": 0.4027,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/amazon-com-favicon-ca6619b8.ico",
      "name": "Amazon"
    },
    {
      "domain": "xvideos.com",
      "rank": 13,
      "change": -1,
      "visits": 2617314897,
      "pages_per_visit": 8.8959,
      "bounce_rate": 0.232,
      "favicon": null,
      "name": "Xvideos"
    },
    {
      "domain": "bing.com",
      "rank": 14,
      "change": 0,
      "visits": 2167115243,
      "pages_per_visit": 4.8184,
      "bounce_rate": 0.4054,
      "favicon": null,
      "name": "Bing"
    },
    {
      "domain": "duckduckgo.com",
      "rank": 15,
      "change": 0,
      "visits": 2136733601,
      "pages_per_visit": 2.719,
      "bounce_rate": 0.496,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/duckduckgo-com-favicon-6a39c9fc.png",
      "name": "DuckDuckGo"
    },
    {
      "domain": "tiktok.com",
      "rank": 16,
      "change": 0,
      "visits": 2085079590,
      "pages_per_visit": 8.1108,
      "bounce_rate": 0.5352,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/tiktok-com-favicon-3776ce2f.png",
      "name": "TikTok"
    },
    {
      "domain": "yahoo.co.jp",
      "rank": 17,
      "change": 1,
      "visits": 1985909764,
      "pages_per_visit": 6.0988,
      "bounce_rate": 0.348,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/yahoo-co-jp-favicon-53370746.ico",
      "name": "Yahoo Japan"
    },
    {
      "domain": "yandex.ru",
      "rank": 18,
      "change": 2,
      "visits": 1882950759,
      "pages_per_visit": 4.6031,
      "bounce_rate": 0.4748,
      "favicon": "https://static.semrush.com/power-pages/media/favicons/yandex-ru-favicon-cc30b73b.png",
      "name": "Yandex Russia"
    },
    {
      "domain": "temu.com",
      "rank": 19,
      "change": -2,
      "visits": 1700356989,
      "pages_per_visit": 3.1962,
      "bounce_rate": 0.5911,
      "favicon": null,
      "name": ""
    },
    {
      "domain": "search.yahoo.com",
      "rank": 20,
      "change": -1,
      "visits": 1635629471,
      "pages_per_visit": 2.5917,
      "bounce_rate": 0.5387,
      "favicon": null,
      "name": ""
    }
  ]
}
````

### 🛟 SUPPORT

Share your runs with the developer team and create issues on error to help us improve actor quality.

You might discover edge case we didn't test yet

We stay available anytime

# Actor input Schema

## `country` (type: `string`):

Select your ranking country

## `category` (type: `string`):

Select your ranking category

## Actor input object example

```json
{
  "country": "global",
  "category": "all"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("saswave/semrush-top-websites-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("saswave/semrush-top-websites-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 '{}' |
apify call saswave/semrush-top-websites-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Semrush Top Websites Scraper",
        "description": "Semrush top websites scraper. Collect data at scale on top websites per country and category. Extract informations like: number of visits, bounce rate, page per visit, name, domain, rank position, change, favicon",
        "version": "0.0",
        "x-build-id": "JrJjfG5z1bA9u5U55"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/saswave~semrush-top-websites-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-saswave-semrush-top-websites-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/saswave~semrush-top-websites-scraper/runs": {
            "post": {
                "operationId": "runs-sync-saswave-semrush-top-websites-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/saswave~semrush-top-websites-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-saswave-semrush-top-websites-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",
                "properties": {
                    "country": {
                        "title": "Country",
                        "enum": [
                            "global",
                            "angola",
                            "argentina",
                            "australia",
                            "austria",
                            "belgium",
                            "brazil",
                            "canada",
                            "france",
                            "germany",
                            "greece",
                            "hong-kong",
                            "india",
                            "indonesia",
                            "ireland",
                            "israel",
                            "italy",
                            "japan",
                            "malaysia",
                            "mexico",
                            "netherlands",
                            "norway",
                            "philippines",
                            "portugal",
                            "saudi-arabia",
                            "serbia",
                            "singapore",
                            "south-africa",
                            "south-korea",
                            "spain",
                            "sweden",
                            "switzerland",
                            "thailand",
                            "turkey",
                            "united-arab-emirates",
                            "united-kingdom",
                            "united-states",
                            "vietnam"
                        ],
                        "type": "string",
                        "description": "Select your ranking country",
                        "default": "global"
                    },
                    "category": {
                        "title": "Category",
                        "enum": [
                            "all",
                            "accommodation-and-hotels",
                            "advertising-and-marketing",
                            "ai",
                            "airlines",
                            "banking",
                            "beauty",
                            "computer-software-and-development",
                            "distance-learning",
                            "e-commerce-and-retail",
                            "education",
                            "entertainment",
                            "fashion",
                            "finance",
                            "food-and-beverages",
                            "gambling",
                            "games",
                            "health",
                            "information-technology",
                            "insurance",
                            "investment",
                            "jobs",
                            "market-research",
                            "music",
                            "news-and-media",
                            "online-services",
                            "real-estate",
                            "restaurants",
                            "science",
                            "sports",
                            "telecom",
                            "transportation-and-logistics",
                            "travel-and-tourism",
                            "vehicles",
                            "wellness"
                        ],
                        "type": "string",
                        "description": "Select your ranking category",
                        "default": "all"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
