# Website Traffic Rank & Tier: Tranco, CrUX, Majestic (`apt_squirrel/website-traffic-tier`) Actor

Bulk website popularity check: rank in Tranco, Chrome UX Report (global and by country), Majestic Million and Cisco Umbrella, one traffic tier with a rough visits band, 30-day and 3-month trends, backlink subnets. 100,000 domains per run, no API key.

- **URL**: https://apify.com/apt_squirrel/website-traffic-tier.md
- **Developed by:** [YDidkivskiy](https://apify.com/apt_squirrel) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 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/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

## Website Traffic Rank & Tier: Tranco, CrUX, Majestic

How big is a website? Paste a list of domains, up to 100,000 per run. For each one you get its rank in four open
top-site rankings and one **traffic tier** that sums them up:

| Ranking | What it measures | Fields |
|---|---|---|
| **Tranco** | Research ranking that averages several lists over 30 days, hard to manipulate | `trancoRank`, `trancoRankMonthAgo`, `trancoTrend`, `trancoHistory` (daily, 30 days) |
| **Chrome UX Report** | Real page loads by Chrome users, from Google | `cruxRank` (bucket: 1K, 5K, 10K, 50K, 100K, 500K, 1M), `cruxRankBefore` (3 months earlier), `cruxTrend`, `cruxOrigins`, `cruxCountryRanks`, `topCountry` |
| **Majestic Million** | Links: how many different networks link to the site | `majesticRank`, `majesticTldRank`, `referringSubnets`, `referringIps`, `majesticTrend` |
| **Cisco Umbrella** | DNS lookups, including apps and APIs | `umbrellaRank` |

The summary fields:

- `tier`: 1–8, with `tierLabel`, from "Top 1K" to "Below the top 1M"
- `bestRank`: the best traffic rank, and `tierBasis`, which lists decided it
- `estimatedMonthlyVisits`: a rough band such as `1M-2M`
- `inTop1M` and `rankedBy`

The `SUMMARY` record holds a leaderboard, the number of domains in each tier, and which domains are climbing or
falling.

### Honest about what this is

None of these rankings publishes visit counts. Similarweb-style visit numbers are themselves estimates from panels.
This actor gives you **ranks from open data you can verify**, and turns them into a tier. `estimatedMonthlyVisits` is
an order-of-magnitude band derived from the rank, not a measurement. Use it to sort, filter and qualify lists, for
example "only publishers in the top 100K" or "which of these 5,000 shops get real traffic", not to report exact
traffic.

### Input

- `domains`: one per line, or `datasetId` with `datasetField` to take them from another actor's output.
- `sources`: tranco, crux, majestic, umbrella.
- `cruxCountries`: for example `us, gb, de, ua`. Gives the rank bucket per country and the strongest country.
- `trancoHistory`: 30 days of daily Tranco ranks for up to 200 ranked domains.
- `maxTier`: keep only domains at this tier or better.

### Use it for

- **Lead qualification**: drop sites with no traffic before your sales team calls them.
- **Affiliate and media buying**: rank publishers and placements by size and see who is growing.
- **Link building and PR**: pick sites with real traffic and many referring networks.
- **Market maps**: tier every competitor in a niche, and see where each one is strongest.

Data: Tranco (tranco-list.eu), Chrome UX Report top lists (via github.com/zakird/crux-top-lists), Majestic Million
(CC BY 3.0) and Cisco Umbrella Popularity List.

# Actor input Schema

## `domains` (type: `array`):

One per line. Up to 100,000 per run; the lists are downloaded once per run, so large batches are cheap.

## `datasetId` (type: `string`):

Optional. ID of an Apify dataset, for example the output of another scraper.

## `datasetField` (type: `string`):

Field of each dataset item with the domain. If empty, website and url are tried.

## `sources` (type: `array`):

Which rankings to check.

## `cruxCountries` (type: `array`):

Two-letter country codes. Gives the rank bucket of each site in each country and the country where it is strongest. Up to 30.

## `trancoHistory` (type: `boolean`):

Daily Tranco rank for the last 30 days and the trend, for up to 200 ranked domains (about one second each).

## `maxTier` (type: `integer`):

1 = top 1K, 5 = top 100K, 7 = top 1M, 8 = everything including unranked sites.

## Actor input object example

```json
{
  "domains": [
    "notion.so",
    "monday.com",
    "basecamp.com"
  ],
  "datasetField": "domain",
  "sources": [
    "tranco",
    "crux",
    "majestic",
    "umbrella"
  ],
  "cruxCountries": [
    "us",
    "gb",
    "de"
  ],
  "trancoHistory": true,
  "maxTier": 8
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

Domains by tier, leaderboard, and which sites are climbing or falling.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "notion.so",
        "monday.com",
        "basecamp.com"
    ],
    "cruxCountries": [
        "us",
        "gb",
        "de"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_squirrel/website-traffic-tier").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "domains": [
        "notion.so",
        "monday.com",
        "basecamp.com",
    ],
    "cruxCountries": [
        "us",
        "gb",
        "de",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("apt_squirrel/website-traffic-tier").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "notion.so",
    "monday.com",
    "basecamp.com"
  ],
  "cruxCountries": [
    "us",
    "gb",
    "de"
  ]
}' |
apify call apt_squirrel/website-traffic-tier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apt_squirrel/website-traffic-tier"
        }
    }
}
```

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/InYGAjOlWbAw4y1XY/builds/hbUhDjLPIX9YSfkJS/openapi.json
