# \[PRO] Similarweb Top Websites: Rankings by Country (`agentx/similarweb-top-websites`) Actor

Pro-level Similarweb Top Websites scraper: top sites per industry in 66 markets, desktop or mobile, up to the number you set, each with its position and, when available, visits, traffic share, users, bounce rate and visit time; plus climbers, fallers, new entrants and worldwide channel leaders.

- **URL**: https://apify.com/agentx/similarweb-top-websites.md
- **Developed by:** [AgentX](https://apify.com/agentx) (community)
- **Categories:** SEO tools, Agents
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.90 / 1,000 report items

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

![\[PRO\] Similarweb Top Websites: Rankings by Country](https://api.apify.com/v2/key-value-stores/kjFMzTgdeZ43RnmXV/records/similarweb-pro.png)

**\[PRO] Similarweb Top Websites: Rankings by Country is a Similarweb ranking scraper that takes the rankings and listed industries you choose and returns the most visited websites from Similarweb's rankings: each website's position, plus visits, traffic share, visit change and ranks when Similarweb supplies them, and audience and engagement on total-traffic and mover lists when reported.** Use the results to map a market, build prospect lists or spot fast-growing websites.

[![Apify Users](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.apify.com%2Fv2%2Facts%2Fagentx~similarweb-top-websites\&query=%24.data.stats.totalUsers\&style=for-the-badge\&label=Apify%20Users\&color=ff9013)](https://apify.com/agentx/similarweb-top-websites) [![Apify Runs](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.apify.com%2Fv2%2Facts%2Fagentx~similarweb-top-websites\&query=%24.data.stats.totalRuns\&style=for-the-badge\&label=Apify%20Runs\&color=ff9013)](https://apify.com/agentx/similarweb-top-websites) [![Result price](https://img.shields.io/badge/result-%240.051-4285f4?style=for-the-badge)](https://apify.com/agentx/similarweb-top-websites/pricing) [![14 fields](https://img.shields.io/badge/14%20fields-34a853?style=for-the-badge)](https://apify.com/agentx/similarweb-top-websites) [![Integrations](https://img.shields.io/badge/integrations-fbbc05?style=for-the-badge)](https://apify.com/agentx/similarweb-top-websites#integration-examples)

- **Industry leaderboards.** Each total-traffic or channel ranking returns up to `max_items` websites as Similarweb lists them (100 by default), for 26 listed industries or all industries combined.
- **Traffic and engagement per website.** Total-traffic websites carry their position, plus, when Similarweb supplies them, monthly visits, traffic share, month-over-month and quarterly change, unique users, deduplicated audience, desktop and mobile share, bounce rate, pages per visit, visit duration and global, category and industry ranks.
- **Channel leaders and movers.** Rank websites worldwide by visits from search, social, display, referral, direct, email, gen AI or affiliates, with visits, share and ranks while their audience and engagement fields stay `null`, or list the month's top climbers, top fallers and new entrants.
- **Only an Apify account needed.** Choose a ranking and get the leaderboard.

The smallest useful run is one ranking record with 1 to 1,000 websites: one Actor Start, one Result and one Report Items unit, $0.0651 on FREE at 512 MB ($0.01 + $0.051 + $0.0041); a `not_found` record with zero websites costs Actor Start and Result only, $0.061.

***

### Why Choose \[PRO] Similarweb Top Websites: Rankings by Country

Rank by total traffic for a country and device, or by one of eight traffic channels, worldwide across all devices; or list the month's top climbers, fallers and new entrants for a country and device. Each ranking returns up to `max_items` websites as Similarweb lists them and is saved as one record with its websites in a JSON file and a CSV file. Similarweb's free [Top Websites Ranking page](https://www.similarweb.com/top-websites/) shows the first 50 websites of its total-traffic rankings and is updated monthly.

***

### Quick Start Guide

#### Step 1: Configure your request

Keep the prefilled form: Rankings `all_traffic`, Industries `AI_Chatbots_and_Tools` and Max Items 1.

```json
{"rankings": ["all_traffic"], "industries": ["AI_Chatbots_and_Tools"], "max_items": 1}
```

#### Step 2: Run the Actor

Click **Start** and wait for the run to finish. This input saves one ranking record for `all_traffic` and `ai_chatbots_and_tools`, worldwide on all devices, for the latest complete month, with one website when Similarweb lists any. On the FREE tier at 512 MB, the run costs $0.0651 in total: Actor Start costs $0.01, the record costs $0.051, and one website uses one $0.0041 Report Items unit.

#### Step 3: Collect the results

Open the **Output** tab or the run's default Dataset and open the record's `websites` link for the top website's `domain`, `position` and `visits`, or `websites_csv` for a spreadsheet. When the ranking holds more websites than Max Items, `report_context.status` reads `limit_reached`, `report_context.total_count` gives Similarweb's total (null when not supplied) and the status message ends with `More entries are available for <rankings>.` For the prefilled input it reads `✅ Returned 1 ranking record. 1 website in the list files. More entries are available for Similarweb All traffic / AI Chatbots and Tools.` When more than three rankings are capped, it names the first three and adds `and <N> more`.

***

### Input Configuration

Supply `rankings`. Use `industries`, `country` and `device` to choose the leaderboards, and `max_items` to set how many websites each ranking record holds.

| Parameter | Type | Required | Description | Example |
| --- | --- | --- | --- | --- |
| `rankings` | array of strings | Yes | One or more of `all_traffic`, `search`, `social`, `display`, `referral`, `direct`, `email`, `gen_ai`, `affiliates`, `top_climbers`, `top_fallers`, `new_entrants`. An unsupported value stops the run with a message. | `["all_traffic"]` |
| `industries` | array of strings | No | Industries to rank. Choose one or more of the 26 listed industries, or leave empty / choose `All` for all industries combined. Each industry is ranked separately. | `["AI_Chatbots_and_Tools"]` |
| `country` | string | No | Full country name from the 66 listed markets. Changes `all_traffic` and the three mover lists; empty means worldwide. | `"United States"` |
| `device` | string | No | `desktop` or `mobile`. Changes `all_traffic` and the three mover lists; empty means all traffic. | `"mobile"` |
| `max_items` | integer | No | Websites per ranking record, minimum 1; defaults to 100 when omitted. The form prefills 1. | `1` |

```json
{"rankings": ["all_traffic"], "industries": ["AI_Chatbots_and_Tools"], "max_items": 1}
```

The prefilled form selects the request shown in Quick Start. An API call sends only the fields you include: the defaults are "empty `industries` = all industries", "empty `country` = worldwide", "empty `device` = all traffic" and "`max_items` = 100". A website is saved once per ranking and industry in a run.

This request retrieves US mobile all-traffic rankings and the month's climber lists for two industries: up to 500 websites per ranking and industry, as Similarweb lists them. It saves four ranking records, one per ranking and industry, and the country and device filters apply to both selected ranking types.

```json
{
  "rankings": [
    "all_traffic",
    "top_climbers"
  ],
  "industries": [
    "Finance",
    "E-commerce_and_Shopping"
  ],
  "country": "United States",
  "device": "mobile",
  "max_items": 500
}
```

#### Rankings

Each value in `rankings` is a separate leaderboard, read once for every industry, up to `max_items` websites. Every ranking covers the latest complete month, stated in `period_start` and `period_end`.

| Ranking | Websites ranked by | Fields filled | `country` | `device` |
| --- | --- | --- | --- | --- |
| `all_traffic` | total visits | rank, traffic, audience and engagement metrics when supplied | applies | applies |
| `search`, `social`, `display`, `referral`, `direct`, `email`, `gen_ai`, `affiliates` | visits from that traffic channel | `domain`, `favicon_url`, `site_category`, `traffic_share`, `visits`, `visits_change`, `global_rank`, `category_rank`, `industry_rank`, `has_adsense` | worldwide only | ignored |
| `top_climbers`, `top_fallers`, `new_entrants` | Similarweb's lists of the month's top climbers, top fallers and new entrants in the all-traffic ranking | rank, traffic, audience and engagement metrics when supplied; compare `industry_rank` with `previous_industry_rank` | applies | applies |

On traffic-channel websites the audience and engagement fields (`quarterly_change`, `unique_users`, `deduplicated_audience`, `desktop_share`, `mobile_share`, `bounce_rate`, `pages_per_visit`, `visit_duration`) are `null`, because Similarweb does not report them per channel. `previous_industry_rank` is often `null` on channel rankings as well.

***

### Output Data Schema

One record describes one ranking for one industry, country and device. The Dataset has one Overview view with every record field.

#### Core fields

| Field | Type | Description |
| --- | --- | --- |
| `ranking` | string | The ranking this record holds, such as `all_traffic` or `top_climbers`. |
| `industry` | string | The selected industry as a lowercase key such as `ai_chatbots_and_tools`, or `all` for all industries combined. |
| `country` | string | The market's English name, or `worldwide`. |
| `device` | string | `desktop`, `mobile` or `all`. |
| `period_start`, `period_end` | string | First and last day of the ranked month. |
| `status` | string | `success`, or `not_found` when Similarweb lists no websites for this ranking. |
| `item_count` | integer | Websites in this record's files; Report Items are billed on this count. |
| `record_id` | string | Identifier of this monthly ranking snapshot. |
| `processor` | string | URL of the Actor that produced the row. |
| `processed_at` | string | ISO 8601 UTC processing timestamp. |

#### Data fields

| Field | Type | Description |
| --- | --- | --- |
| `websites` | string | Link to a JSON file with the ranked websites, in Similarweb's order. |
| `websites_csv` | string | Link to a CSV file with the same websites and columns. |
| `report_context` | object | `item_count`, `total_count` (Similarweb's total for the ranking, or null when not supplied), `status` and, for a partial ranking, `unavailable_reason`. |

Each website entry in the files has these 29 fields, in this order. Shares and changes are fractions; estimates keep Similarweb's decimals. A field is `null` when Similarweb does not supply it, and the audience and engagement fields are always `null` on traffic-channel rankings.

| Field | Type | Meaning |
| --- | --- | --- |
| `ranking` | string | The ranking, such as `all_traffic` or `top_climbers`. |
| `industry` | string | The selected industry key, such as `ai_chatbots_and_tools`, or `all`. |
| `country` | string | The market's English name, or `worldwide`. |
| `device` | string | `desktop`, `mobile` or `all`. |
| `period_start`, `period_end` | string | First and last day of the ranked month. |
| `position` | integer | The website's place in this ranking, starting at 1. |
| `domain` | string | The ranked website. |
| `favicon_url` | string or null | Site icon link supplied by Similarweb. |
| `site_category` | string or null | Similarweb's category for the website, such as `AI_Chatbots_and_Tools`. |
| `traffic_share` | number or null | The website's share of the traffic Similarweb measures for this ranking. |
| `visits` | number or null | Estimated visits in the month; on a channel ranking, visits from that channel. |
| `visits_change` | number or null | Relative change in visits against the previous month. |
| `quarterly_change` | number or null | Relative visit change over Similarweb's longer comparison period; Similarweb does not state which periods it compares, so use `visits_change` for month-over-month change. |
| `unique_users` | number or null | Similarweb's unique-visitor estimate for the month. |
| `deduplicated_audience` | number or null | Similarweb's deduplicated audience estimate for the month, reported separately from `unique_users`; `null` when Similarweb reports none or 0. Do not add the two together. |
| `desktop_share`, `mobile_share` | number or null | Desktop and mobile shares of the website's traffic. |
| `bounce_rate` | number or null | Share of visits that leave after one page. |
| `pages_per_visit` | number or null | Average pages viewed per visit. |
| `visit_duration` | number or null | Average visit duration in seconds. |
| `global_rank` | integer or null | Rank across all websites in the record's market. |
| `category_rank` | integer or null | Rank within the website's own Similarweb category, `site_category`. |
| `industry_rank`, `previous_industry_rank` | integer or null | Rank within the website's top-level industry this month and the month before. |
| `has_adsense` | boolean or null | Whether Similarweb marks the website as showing AdSense ads. |
| `processor` | string | URL of the Actor that produced the file. |
| `processed_at` | string | ISO 8601 UTC processing timestamp. |
| `record_id` | string | Identifier of this website in this ranking scope and month. |

This illustrative record shows the Quick Start input when the ranking holds more websites than Max Items; the month, total and identifiers vary, and the file links are shortened:

```json
{
  "ranking": "all_traffic",
  "industry": "ai_chatbots_and_tools",
  "country": "worldwide",
  "device": "all",
  "period_start": "2026-10-01",
  "period_end": "2026-10-31",
  "status": "success",
  "websites": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/RECORD_ID-websites.json",
  "websites_csv": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/RECORD_ID-websites.csv",
  "report_context": {
    "item_count": 1,
    "total_count": 74,
    "status": "limit_reached"
  },
  "item_count": 1,
  "record_id": "similarweb-top-websites:79a2e33c5f245f5f3ccf6264d7172baee1db6d8ef84e6f91dd7ae1bcff1796a6",
  "processor": "https://apify.com/agentx/similarweb-top-websites",
  "processed_at": "2026-11-21T12:24:46Z"
}
```

An illustrative website entry from a `top_climbers` file:

```json
[
  {
    "ranking": "top_climbers",
    "industry": "ai_chatbots_and_tools",
    "country": "United States",
    "device": "desktop",
    "period_start": "2026-10-01",
    "period_end": "2026-10-31",
    "position": 1,
    "domain": "copilot.cloud.microsoft",
    "favicon_url": "https://site-images.similarcdn.com/image?url=copilot.cloud.microsoft&t=2&s=0",
    "site_category": "AI_Chatbots_and_Tools",
    "traffic_share": 0.005740303632429488,
    "visits": 10325121.359117085,
    "visits_change": 0.8823361394774033,
    "quarterly_change": 15.426477929756192,
    "unique_users": 1577914.7358820217,
    "deduplicated_audience": null,
    "desktop_share": 0.9847261786338214,
    "mobile_share": 0.015273821366178608,
    "bounce_rate": 0.35896496232587455,
    "pages_per_visit": 2.9419354503861204,
    "visit_duration": 231.07360105919062,
    "global_rank": 1509,
    "category_rank": 14,
    "industry_rank": 14,
    "previous_industry_rank": 20,
    "has_adsense": false,
    "processor": "https://apify.com/agentx/similarweb-top-websites",
    "processed_at": "2026-11-20T10:30:00Z",
    "record_id": "similarweb-top-websites:fa8bcf4b88f43bcac13c67b49f35ac166a88e20055b619fd836cc0cff2b07aca"
  }
]
```

How to read the values:

- `report_context.status` is `complete` when the whole ranking was read, including a ranking that ends exactly at `max_items`; `limit_reached` when `max_items` stopped the list and Similarweb's total or a further website proves the ranking is longer; `partial` when Similarweb stopped answering partway, with `report_context.unavailable_reason` set to `access_refused` (Similarweb refused access), `rate_limited` (Similarweb limited requests), `task_time_limit` (the run time limit was reached), `source_window_limit` (Similarweb showed only the first websites of a longer ranking; the status names the ranking and says `the site only shows the first <count> websites`) or `reason_unknown` (no reason was given); or `empty` when Similarweb lists no websites. `item_count` is the number of websites in the files, and `total_count` is Similarweb's total for the ranking, or null when Similarweb supplies none.
- A ranking Similarweb leaves empty is saved as a record with `status` `not_found` and `item_count` 0; its links open an empty JSON list and a CSV file with only the header.
- A ranking that could not be read at all gets no record. The final status names it as `Similarweb <Ranking> / <Industry>` with the reason, such as `Not returned: Similarweb All traffic / Finance, the site refused access.`, and the run log has a matching line, such as `⚠️ Similarweb All traffic / Finance: the site refused access.`
- Shares and changes are fractions; multiply by 100 for a percentage. `traffic_share` is Similarweb's share of the traffic it measures for the ranking, not a share of the websites in your file: 0.0057 means 0.57%. To get a website's share of the downloaded visits, divide its `visits` by the sum of `visits` in that file. `visits_change` 0.88 means 88% more visits than the previous month.
- `visits`, `unique_users` and `deduplicated_audience` are Similarweb estimates for the month, with decimals; round them for display. `deduplicated_audience` is `null` when Similarweb reports none.
- `quarterly_change` compares visits over a longer period than `visits_change`; Similarweb does not state its comparison basis.
- `visit_duration` is in seconds.
- `global_rank` is the website's rank across all websites in the record's market; on a country list it is the rank within that country (October 2026: facebook.com was 4 on the United States list and 3 worldwide). `industry_rank` and `previous_industry_rank` are its rank within its own top-level industry this month and the month before. `category_rank` is the website's rank within its own Similarweb category, `site_category`.
- `industry` is the selected industry as a key such as `ai_chatbots_and_tools` (`all` for all industries combined); `country` is the market's English name, or `worldwide`. The input accepts the spellings shown in the form, such as `AI_Chatbots_and_Tools` or `All`.
- `record_id` identifies a monthly snapshot: on a record, one ranking scope for that month; on a website entry, that website in that scope and month. It changes when the month changes, so to follow the same website across months, match `ranking`, `industry`, `country`, `device` and `domain`, and use `period_end` as the month.

#### Export formats

Download the Dataset as JSON to keep `report_context` as an object, or as CSV or Excel for a table of the records and their file links. The `websites_csv` file has the same columns as the JSON file; `has_adsense` is written as `true` or `false`. The website files live in the run's storage, not in the Dataset row, and are kept only as long as that storage is retained on your Apify account; download the JSON or CSV files you need when you compare runs over time.

***

### Integration Examples

#### Actor ID

```text
Lre4Qgfh1NbUDZArp
```

In REST paths, `agentx~similarweb-top-websites` is equivalent to the Actor ID; the Store and MCP name is `agentx/similarweb-top-websites`. Each example starts one billed run with the Quick Start input, keeps its run ID, waits for a terminal status and reads every Dataset page; each `POST` starts a new billed run, so do not repeat it to check progress. If your client stops waiting, the run keeps going on Apify; check it later with the same run ID instead of starting a new one. Each record's websites are in the files behind its `websites` and `websites_csv` links. A `SUCCEEDED` run is a success even when its status message reports a warning; the examples fail only when the run ends in another status, and keep any rows it saved.

#### HTTP

```bash
## Requires curl, jq and an APIFY_TOKEN environment variable.
set -euo pipefail
ACTOR_ID='Lre4Qgfh1NbUDZArp'
API='https://api.apify.com/v2'
RUN_ID=$(curl --fail --silent --show-error -X POST "$API/acts/$ACTOR_ID/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"rankings":["all_traffic"],"industries":["AI_Chatbots_and_Tools"],"max_items":1}' | jq -er '.data.id')
printf 'Saved run ID: %s\n' "$RUN_ID" >&2
while :; do
  RUN=$(curl --fail --silent --show-error "$API/actor-runs/$RUN_ID" \
    -H "Authorization: Bearer $APIFY_TOKEN")
  STATUS=$(printf '%s' "$RUN" | jq -er '.data.status')
  case "$STATUS" in SUCCEEDED|FAILED|TIMED-OUT|ABORTED) break;; esac
  sleep 2
done
DATASET_ID=$(printf '%s' "$RUN" | jq -er '.data.defaultDatasetId')
OFFSET=0
while :; do
  PAGE=$(curl --fail --silent --show-error \
    "$API/datasets/$DATASET_ID/items?format=json&offset=$OFFSET&limit=1000" \
    -H "Authorization: Bearer $APIFY_TOKEN")
  printf '%s' "$PAGE" | jq -c '.[]'
  COUNT=$(printf '%s' "$PAGE" | jq 'length')
  [ "$COUNT" -lt 1000 ] && break
  OFFSET=$((OFFSET + COUNT))
done
[ "$STATUS" = SUCCEEDED ] # Partial rows remain available if the run failed.
```

#### Python

```python
import json
import os
import time
from urllib.request import Request, urlopen

API = "https://api.apify.com/v2"
ACTOR_ID = "Lre4Qgfh1NbUDZArp"

def api(path, body=None):
    data = None if body is None else json.dumps(body).encode()
    req = Request(API + path, data=data, headers={
        "Authorization": "Bearer " + os.environ["APIFY_TOKEN"],
        "Content-Type": "application/json",
    })
    with urlopen(req) as response:
        return json.load(response)

run = api(f"/acts/{ACTOR_ID}/runs", {"rankings": ["all_traffic"], "industries": ["AI_Chatbots_and_Tools"], "max_items": 1})["data"]
run_id = run["id"]
print("Saved run ID:", run_id)
while run["status"] not in {"SUCCEEDED", "FAILED", "TIMED-OUT", "ABORTED"}:
    time.sleep(2)
    run = api(f"/actor-runs/{run_id}")["data"]
offset = 0
while True:
    page = api(f"/datasets/{run['defaultDatasetId']}/items?format=json&offset={offset}&limit=1000")
    for row in page:
        print(json.dumps(row))
    offset += len(page)
    if len(page) < 1000:
        break
if run["status"] != "SUCCEEDED":
    raise RuntimeError(f"Run {run_id} ended {run['status']}; partial rows were retained")
```

#### JavaScript

```javascript
const apiRoot = 'https://api.apify.com/v2';
const actorId = 'Lre4Qgfh1NbUDZArp';
async function api(path, body) {
  const response = await fetch(apiRoot + path, {
    method: body === undefined ? 'GET' : 'POST',
    headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}`, 'Content-Type': 'application/json' },
    body: body === undefined ? undefined : JSON.stringify(body),
  });
  if (!response.ok) throw new Error(`Apify HTTP ${response.status}`);
  return response.json();
}
let { data: run } = await api(`/acts/${actorId}/runs`, { rankings: ['all_traffic'], industries: ['AI_Chatbots_and_Tools'], max_items: 1 });
const runId = run.id;
console.log('Saved run ID:', runId);
while (!['SUCCEEDED', 'FAILED', 'TIMED-OUT', 'ABORTED'].includes(run.status)) {
  await new Promise(resolve => setTimeout(resolve, 2000));
  ({ data: run } = await api(`/actor-runs/${runId}`));
}
let offset = 0;
while (true) {
  const page = await api(`/datasets/${run.defaultDatasetId}/items?format=json&offset=${offset}&limit=1000`);
  for (const row of page) console.log(JSON.stringify(row));
  offset += page.length;
  if (page.length < 1000) break;
}
if (run.status !== 'SUCCEEDED') throw new Error(`Run ${runId} ended ${run.status}; partial rows were retained`);
```

#### Make.com

Use Run an Actor with ID `Lre4Qgfh1NbUDZArp` and input `{"rankings":["all_traffic"],"industries":["AI_Chatbots_and_Tools"],"max_items":1}`. Save its run ID, read that run until terminal, then use its `defaultDatasetId` with Get Dataset Items and retrieve all pages. Retain partial rows and report a failed terminal status. Download each record's `websites` JSON or `websites_csv` file.

#### n8n

Start Actor `Lre4Qgfh1NbUDZArp` with `{"rankings":["all_traffic"],"industries":["AI_Chatbots_and_Tools"],"max_items":1}`. Store its run ID, poll that run to terminal, then page its `defaultDatasetId` with offset and limit until the final page. Retain partial rows and branch on terminal status.

#### MCP

Select Actor `agentx/similarweb-top-websites` in your Apify MCP client and send this input. Retain its run ID, continue it until terminal, and retrieve every Dataset page before interpreting the outcome. AI assistants that support MCP can reach this Actor through the Apify MCP server at `https://mcp.apify.com?tools=agentx/similarweb-top-websites`, signed in with your Apify account.

```json
{"rankings": ["all_traffic"], "industries": ["AI_Chatbots_and_Tools"], "max_items": 1}
```

***

### Pricing

On FREE at 512 MB, a run that saves one ranking record with 1 to 1,000 websites costs $0.0651 for Actor Start, Result and one Report Items unit. If the saved record has zero websites, the run costs $0.061 for Actor Start and Result.

| Event | Billing unit | FREE | BRONZE | SILVER | GOLD / PLATINUM / DIAMOND |
| --- | --- | ---: | ---: | ---: | ---: |
| Result | Single result in the default dataset. Once per saved ranking record. | $0.051 | $0.045 | $0.041 | GOLD: $0.037; PLATINUM: $0.037; DIAMOND: $0.037 |
| Report Items | Every started 1,000 report items in a row. | $0.0041 | $0.0036 | $0.0032 | GOLD: $0.0029; PLATINUM: $0.0029; DIAMOND: $0.0029 |
| Actor Start | One unit per GB of Actor memory, minimum one | $0.01 | $0.01 | $0.01 | GOLD: $0.01; PLATINUM: $0.01; DIAMOND: $0.01 |

At 512 MB, Actor Start costs $0.01. Each saved ranking record adds one Result, including a `not_found` record. Its `item_count` is the number of delivered websites. To find the Report Items units, divide each record's count by 1,000 and round up to a whole unit. A record with 0 websites adds zero units, 1–1,000 websites add one, and 1,001–2,000 add two. Add the units across records for the run total. The JSON and CSV downloads are included. A resumed run charges only the units still unpaid for its saved records, within your spending limit; a charge whose confirmation was lost counts as paid.

| Ranking records saved | Websites delivered | Result units | Report Items units | FREE total at 512 MB |
| --- | ---: | ---: | ---: | ---: |
| None | 0 | 0 | 0 | $0.01 |
| One `not_found` record | 0 | 1 | 0 | $0.061 |
| Quick Start run | 1 | 1 | 1 | $0.0651 |
| One record at the default | 100 | 1 | 1 | $0.0651 |
| Three records with 100 websites each | 300 | 3 | 3 | $0.1753 |
| One record with 1,000 websites | 1,000 | 1 | 1 | $0.0651 |
| One record with 1,001 websites | 1,001 | 1 | 2 | $0.0692 |

***

### Use Cases

- **Market maps.** Pull up to 1,000 websites of an industry in one country (`max_items` 1000) and group them by `site_category`.
- **Prospect lists.** Take the domains of an industry ranking and look up the companies behind them.
- **Channel strategy.** Compare who leads the `search`, `social` and `gen_ai` rankings of your industry to see where competitors get their traffic.
- **Trend spotting.** Run `top_climbers` and `new_entrants` monthly to catch fast-growing websites early.
- **Monthly tracking.** An Apify schedule can repeat the same input monthly. Each run is a fresh snapshot of the latest complete month; download each run's website files and compare runs by `period_end` and each website's `domain` yourself, since the Actor does not diff runs or skip websites it returned before.

***

### Alternatives

Similarweb's free [Top Websites Ranking page](https://www.similarweb.com/top-websites/) shows the top 50 websites per industry and country with no account; Similarweb's paid plans add full lists, exports and deeper analysis in its web app. This Actor provides each ranking's websites up to `max_items` as Similarweb lists them, traffic-channel rankings and mover lists as JSON and CSV files for spreadsheets, scripts or AI agents without a Similarweb subscription.

***

### Limits and Troubleshooting

- Channel-ranking records show `country: worldwide` although you set a country: traffic-channel rankings are worldwide in this Actor; use `all_traffic` or the mover lists for country rankings.
- Audience and engagement fields are `null`: the row belongs to a traffic-channel ranking, or Similarweb did not supply that estimate; use `all_traffic` for those fields. Individual estimates, including visits, share and ranks, can also be missing on total-traffic and mover lists.
- The run stops with `Select a supported country or omit country for worldwide.`: the country is not one of the 66 listed markets; pick a listed country or leave `country` empty.
- A record has `status` `not_found`: Similarweb has no websites for that ranking and industry in the chosen market; try all industries or a larger market.
- Fewer records than the rankings and industries you selected, and the final status names the missing rankings with a reason, such as `Not returned: Similarweb All traffic / Finance, the site refused access.`: Similarweb refused or did not answer for those rankings. When no ranking was read, it reads, for example, `⚠️ No ranking records returned. Similarweb All traffic / Finance, Similarweb All traffic / All industries: the site limited requests; Similarweb Top climbers / Finance, Similarweb Top climbers / All industries: the site refused access.` Saved records stay in the Dataset, and you can run the missing rankings again later.
- A record has `report_context.status` `limit_reached`: `max_items` stopped the ranking and more websites exist; raise `max_items`. A ranking that ends exactly at `max_items` reads `complete`.
- A record has `report_context.status` `partial` with `unavailable_reason` `source_window_limit`: Similarweb showed only the first websites of that ranking, fewer than its `total_count`; the status reads, for example, `Partially returned: Similarweb All traffic / AI Chatbots and Tools, the site only shows the first <count> websites.` Use the saved websites.
- A record has `report_context.status` `partial`: Similarweb stopped answering partway through that ranking; use the saved websites and run that ranking again later. A resumed run keeps the ⚠️ status of a saved partial ranking.
- The run ended before every ranking was read: many rankings or industries were selected; split the request across runs or lower `max_items`. Records saved before the run ended stay in the Dataset.
- The status includes `Your spending limit was reached.`, such as `⚠️ Returned 1 ranking record. Your spending limit was reached. 1,001 websites in the list files.`: the run reached the maximum cost set for it; records already saved stay in the Dataset. Check the run's charges, then run the remaining rankings with a higher limit.
- A resumed run ends with `Cannot resume because the current input differs from the saved ranking selection.`: the run continued with different rankings, industries, country, device or `max_items` than it started with; no further records or charges are added, and saved records stay in the Dataset. Start a new run for the new input.
- A resumed run ends with `Cannot resume because the original ranking selection is unavailable.`: the run cannot confirm the selection behind its saved records; no further records or charges are added.

***

### Trust and Reliability

- Every record states its ranking, industry, country, device and month, and `report_context` gives its status and website count, so runs can be compared on the same scope.
- Visits, users, shares and changes are Similarweb's monthly estimates, kept as reported; values Similarweb omits stay `null`.
- Similarweb publishes the first 50 websites of its total-traffic rankings on its free [Top Websites Ranking page](https://www.similarweb.com/top-websites/), which you can use to spot-check the top of an `all_traffic` list.

***

### Legal and Compliance

Use the output in line with applicable law and the terms that govern your use of Similarweb and Apify. The rankings contain website domains and website-level traffic estimates rather than personal profiles. Treat traffic figures as estimates when you publish or resell them.

***

### Frequently Asked Questions

#### How do I get the top websites of an industry in a country?

Choose `all_traffic` in `rankings`, pick the industry in `industries`, set `country` and set `max_items` to how many websites you want. Open the record's `websites` file.

#### How many websites can I get per ranking?

100 by default; set `max_items` higher to request more. Each ranking returns up to `max_items` websites as Similarweb lists them, so a ranking can end sooner: the October 2026 worldwide `all_traffic` ranking for AI Chatbots and Tools reported a total of 74.

#### Can I rank websites by traffic source, such as search or social?

Yes. Choose `search`, `social`, `display`, `referral`, `direct`, `email`, `gen_ai` or `affiliates`. These channel rankings are worldwide and cover all devices.

#### Which countries are available?

66 markets, listed in the `country` field of the input form. Total-traffic rankings and mover lists use the country; channel rankings are worldwide.

#### Do I need a Similarweb account or API key?

No. You need only an Apify account.

#### How is a run billed?

On FREE at 512 MB, a run costs $0.01 to start, $0.051 per saved ranking record, and $0.0041 for each started group of 1,000 websites within that record. A `not_found` record adds $0.051 for Result and zero Report Items units.

#### How often does the ranking change?

Similarweb ranks by calendar month. Each run reads the latest complete month; `period_start` and `period_end` on every row show which month.

#### What is the difference between `position` and `category_rank`?

`position` is the website's place in the ranking you requested, as returned. `category_rank` is the website's rank within its own Similarweb category, `site_category`. `global_rank` ranks the website across all websites in the record's market (within the country on a country list), and `industry_rank` within its own top-level industry.

***

### Related AgentX Actors

#### Business and Market Intelligence

- **[\[PRO\] Similarweb Traffic: Keywords, Backlinks, Ads](https://apify.com/agentx/similarweb-pro-scraper)** — take a ranked `domain` and pull its traffic, audience, SEO and advertising reports.
- **[\[PRO\] Similarweb Keywords: Volume, CPC, SERPs](https://apify.com/agentx/similarweb-keyword-research)** — research search volume, CPC and SERP competitors for keywords in a ranked website's industry.
- **[\[PRO\] Similarweb Search Ads: Text and Shopping Ads](https://apify.com/agentx/similarweb-search-ads)** — see the text and shopping ads and the advertisers on keywords in a ranked website's market.
- **[Domain Intelligence Lookup](https://apify.com/agentx/domain-intelligence-lookup)** — check registration, DNS, certificates and mail policy for a ranked domain.
- **[LinkedIn Company Lookup](https://apify.com/agentx/linkedin-company-lookup)** — find the company profile behind a website on your prospect list.
- **[All Web Search Scraper](https://apify.com/agentx/all-web-search-scraper)** — search the web for news and mentions of a fast climber.

***

### Support and Community

Ask about rankings, fields and billing in the [AgentX community on Telegram](https://t.me/Apify_Actor); for a reproducible bug, open an [Issue](https://apify.com/agentx/similarweb-top-websites/issues) with the run ID and the exact input.

AgentX is an Arcyton brand — [arcyton.com](https://arcyton.com).

**Last Updated:** November 21, 2026

# Actor input Schema

## `rankings` (type: `array`):

Leaderboards to read. all_traffic ranks websites by total visits. search, social, display, referral, direct, email, gen_ai and affiliates rank them by visits from that traffic channel. top_climbers, top_fallers and new_entrants are Similarweb's lists of the month's top climbers, top fallers and new entrants in the all-traffic ranking. Each ranking returns up to max_items websites as Similarweb lists them.

## `industries` (type: `array`):

Choose broad industries to rank, such as Finance or E-commerce_and_Shopping. Each selected industry is ranked separately. Leave empty, or choose All, for all industries combined.

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

Full country name, such as United States, United Kingdom or Germany (66 markets). Applies to all_traffic, top_climbers, top_fallers and new_entrants. The traffic-channel rankings are worldwide in every run, and each row's country field shows the market it describes. Leave empty for worldwide.

## `device` (type: `string`):

desktop or mobile. Applies to all_traffic, top_climbers, top_fallers and new_entrants; the traffic-channel rankings cover all devices. Leave empty for all traffic.

## `max_items` (type: `integer`):

Maximum websites per ranking record, that is per selected ranking for each industry (default 100). Set any integer of 1 or more; websites keep Similarweb's ranking order.

## Actor input object example

```json
{
  "rankings": [
    "all_traffic"
  ],
  "industries": [
    "AI_Chatbots_and_Tools"
  ],
  "max_items": 1
}
```

# Actor output Schema

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

Open Overview to read each ranking record and follow its Websites JSON or CSV link.

# 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 = {
    "rankings": [
        "all_traffic"
    ],
    "industries": [
        "AI_Chatbots_and_Tools"
    ],
    "max_items": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("agentx/similarweb-top-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 = {
    "rankings": ["all_traffic"],
    "industries": ["AI_Chatbots_and_Tools"],
    "max_items": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("agentx/similarweb-top-websites").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 '{
  "rankings": [
    "all_traffic"
  ],
  "industries": [
    "AI_Chatbots_and_Tools"
  ],
  "max_items": 1
}' |
apify call agentx/similarweb-top-websites --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,agentx/similarweb-top-websites"
        }
    }
}
```

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/Lre4Qgfh1NbUDZArp/builds/XPXnBCewQKUzQbHqV/openapi.json
