# Top Trending Websites (`codebyte/top-trending-websites`) Actor

Scrape the top trending websites worldwide or by country and industry category. Get website traffic data, engagement metrics, visitor counts, bounce rates, and ranking trends — all structured as clean JSON, ready for analysis, reporting, or integration into your data pipeline.

- **URL**: https://apify.com/codebyte/top-trending-websites.md
- **Developed by:** [Codebyte](https://apify.com/codebyte) (community)
- **Categories:** SEO tools, Lead generation, E-commerce
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## 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/platform/actors/running/actors-in-store#pay-per-event

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

## Top Trending Websites Scraper

Scrape the **top trending websites** worldwide or by country and industry category. Get website traffic data, engagement metrics, visitor counts, bounce rates, and ranking trends — all structured as clean JSON, ready for analysis, reporting, or integration into your data pipeline.

This data comes from Semrush's analysis of 200M+ anonymized users' browsing patterns, making it one of the most comprehensive traffic intelligence sources available. While no third-party data is 100% precise, these rankings accurately reflect relative market positions.

### What data can you extract?

For each website in the rankings, the Actor returns:

| Field | Description | Example |
|-------|-------------|---------|
| `rank` | Overall ranking position | `1` |
| `website` | Website domain | `google.com` |
| `rankChange` | Ranking position change | `0` |
| `rankChangeDirection` | Ranking trend direction | `same`, `up`, `down`, `new` |
| `visits` | Total monthly visits | `323775511` |
| `pagesPerVisit` | Average pages per visit | `5.51` |
| `bounceRate` | Bounce rate percentage | `38.07%` |
| `averageDuration` | Average visit duration | `21:41` |
| `display_date` | Data reporting date | `2026-02-01` |

### Use cases

- **Market research** — Identify the most visited websites in any industry to understand competitive landscapes.
- **Competitor analysis** — Track how competitor websites rank and trend over time across different countries.
- **Investment research** — Discover fast-growing websites and digital businesses by traffic volume and engagement.
- **Lead generation** — Build targeted lists of top-performing websites in specific verticals for outreach.
- **SEO benchmarking** — Compare engagement metrics (bounce rate, pages per visit, session duration) against industry leaders.
- **Trend monitoring** — Schedule regular runs to track which websites are gaining or losing traffic month over month.

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `category` | string | `all` | Filter by industry category. Choose from 100+ categories including `finance`, `healthcare`, `entertainment`, `computer-software-and-development`, and more. |
| `country` | string | `global` | Filter by country. Supports 35+ countries including `united-states`, `united-kingdom`, `germany`, `india`, `japan`, and more. |
| `limit` | integer | `1000` | Maximum number of website results to return. |

#### Example input

```json
{
    "category": "computer-software-and-development",
    "country": "united-states",
    "limit": 200
}
````

### Output format

The Actor stores results in a dataset. Each item represents one website with its ranking and engagement data.

#### Example output

```json
{
    "rank": 1,
    "website": "google.com",
    "rankChange": 0,
    "rankChangeDirection": "same",
    "visits": 323775511,
    "pagesPerVisit": 5.51,
    "bounceRate": "38.07%",
    "averageDuration": "21:41",
    "display_date": "2026-02-01"
}
```

### Integrations

Connect the Top Trending Websites Scraper with your existing tools and workflows:

- **Google Sheets** — Export website rankings directly to spreadsheets for reporting.
- **Slack / Microsoft Teams** — Get notifications when new data is available.
- **Zapier / Make** — Trigger downstream workflows automatically after each run.
- **REST API** — Access results programmatically via the [Apify API](https://docs.apify.com/api/v2).
- **Python / JavaScript SDK** — Integrate into your applications using the [Apify SDK](https://docs.apify.com/sdk).

### FAQ

#### How are these website rankings calculated?

Website rankings combine multiple data points: total monthly visits, engagement metrics, and growth rates. Rankings are updated monthly using Semrush's analysis of 200M+ users' browsing patterns for accuracy.

#### How often is the data updated?

Website rankings are updated monthly using the latest available traffic data from Semrush. Each update reflects the previous month's complete traffic patterns, though exact publishing dates may vary based on data availability. For some country+category filter combinations it can return data from 2 months ago.
Each response includes a `display_date` field indicating the reporting period (e.g. 2026-02-01 is February 2026).

#### Can I filter by multiple categories or countries at once?

Each Actor run supports one category and one country filter. To scrape multiple combinations, schedule separate runs or use the Apify API to trigger multiple runs programmatically.

#### What is the maximum number of websites I can scrape?

The number of available results depends on country and category filter used. For country+category filter combinations with a limited number of websites it might only return top 20. Set the `limit` parameter to control how many you want.

#### Why does scraping take longer for large limits?

The first 1,000 results are typically cached by the source and return quickly. Retrieving results beyond 1,000 can take a significant amount of time since they are not cached and must be computed on demand.

# Actor input Schema

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

Filter by industry category.

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

Filter by country.

## `limit` (type: `integer`):

Maximum number of results to scrape.

## Actor input object example

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

# 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("codebyte/top-trending-websites").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("codebyte/top-trending-websites").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 codebyte/top-trending-websites --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Top Trending Websites",
        "description": "Scrape the top trending websites worldwide or by country and industry category. Get website traffic data, engagement metrics, visitor counts, bounce rates, and ranking trends — all structured as clean JSON, ready for analysis, reporting, or integration into your data pipeline.",
        "version": "0.0",
        "x-build-id": "1w138bdeQoNtEP329"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/codebyte~top-trending-websites/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-codebyte-top-trending-websites",
                "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/codebyte~top-trending-websites/runs": {
            "post": {
                "operationId": "runs-sync-codebyte-top-trending-websites",
                "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/codebyte~top-trending-websites/run-sync": {
            "post": {
                "operationId": "run-sync-codebyte-top-trending-websites",
                "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": {
                    "category": {
                        "title": "Category",
                        "enum": [
                            "all",
                            "advertising-and-marketing",
                            "airlines",
                            "accounting-and-auditing",
                            "aerospace-and-defense",
                            "agriculture",
                            "apparel-and-fashion",
                            "architecture",
                            "automotive",
                            "banking",
                            "beauty-and-cosmetics",
                            "biotech",
                            "ceramics-and-pottery",
                            "chemicals",
                            "civil-engineering",
                            "comics-and-animation",
                            "computer-and-video-games",
                            "computer-hardware",
                            "computer-software-and-development",
                            "computers-and-electronics",
                            "construction-and-maintenance",
                            "consulting",
                            "consumer-electronics",
                            "crafts",
                            "customer-services",
                            "design",
                            "distance-learning",
                            "ecology-and-environment",
                            "education",
                            "entertainment",
                            "equipment-and-supplies",
                            "events-services",
                            "facilities-services",
                            "farms-and-ranches",
                            "finance",
                            "fishery",
                            "food-and-beverages",
                            "foreign-language",
                            "furniture",
                            "gambling",
                            "government",
                            "graphic-design",
                            "healthcare",
                            "hospitality",
                            "human-resources",
                            "import-and-export",
                            "information-technology",
                            "insurance",
                            "investment",
                            "jewelry-and-luxury-products",
                            "legal",
                            "libraries",
                            "machinery",
                            "mail-and-package-delivery",
                            "manufacturing",
                            "maritime",
                            "market-research",
                            "mass-media",
                            "medical-devices-and-equipment",
                            "mental-health",
                            "metals-and-mining",
                            "military",
                            "museums",
                            "music",
                            "nanotechnology",
                            "newspapers",
                            "nonprofit-organizations",
                            "oil-and-gas",
                            "online-services",
                            "outsourcing",
                            "packaging-and-containers",
                            "performing-arts",
                            "pharmaceuticals",
                            "photography",
                            "plastics-and-polymers",
                            "political-organizations",
                            "printing",
                            "public-policy",
                            "public-relations",
                            "public-safety",
                            "public-utility",
                            "publishing",
                            "real-estate",
                            "recreational-facilities",
                            "recruitment-and-staffing",
                            "reference",
                            "religion-and-belief",
                            "renewable-energy",
                            "restaurants",
                            "retail",
                            "science",
                            "security-products-and-services",
                            "social-and-charitable-organizations",
                            "sporting-goods",
                            "sports",
                            "telecom",
                            "textiles-and-nonwovens",
                            "tobacco",
                            "training-and-certification",
                            "transportation-and-logistics",
                            "travel-and-tourism",
                            "tv-and-movies",
                            "venture-capital",
                            "veterinary",
                            "visual-art",
                            "warehousing",
                            "wellness",
                            "wholesalers-and-liquidators",
                            "wine-and-spirits",
                            "writing-and-editing-services"
                        ],
                        "type": "string",
                        "description": "Filter by industry category.",
                        "default": "all"
                    },
                    "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": "Filter by country.",
                        "default": "global"
                    },
                    "limit": {
                        "title": "Limit",
                        "minimum": 100,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of results to scrape.",
                        "default": 500
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
