# Domain Rank Lookup: Top-1M popularity and authority score (`opstoolkit/domain-rank-lookup`) Actor

Give it domains or URLs, get each one's Majestic Million rank, TLD rank, referring subnets, weekly change and a 0 to 100 authority score as JSON. Open CC BY data, no scraping. Top 1M domains only, others return rank null. $0.30 per 1,000 domains.

- **URL**: https://apify.com/opstoolkit/domain-rank-lookup.md
- **Developed by:** [Elio Saliba](https://apify.com/opstoolkit) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 domain rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Domain Rank Lookup: Top-1M popularity and authority score

Give it a list of domains or URLs and get each one's global rank, rank inside its TLD, referring subnets, referring IPs and change since the previous list, plus a 0 to 100 authority score. Use it to sort a lead list by site strength, find strong sites for link prospecting, or screen out thin sites.

**$0.30 per 1,000 domains.** The data is the Majestic Million, a free list under a Creative Commons licence. Nothing is scraped, there are no logins and no blocking.

**Only the top million domains are covered.** A domain outside the list comes back with `ranked: false` and empty numbers. For a typical small-business site that is the normal answer, and it does not mean the site is bad. It means the site has fewer linking networks than the 1,000,000th domain on the list. You are billed for those rows too, because "not in the top million" is a result. Turn off `includeUnranked` if you only want ranked domains and only want to pay for them.

### What you get

One row per distinct domain.

| Column | Example | Notes |
|---|---|---|
| `input` | `https://www.apify.com/store` | Exactly what you gave |
| `domain` | `apify.com` | The registrable domain that was looked up. `blog.example.co.uk` becomes `example.co.uk` |
| `status` | `ranked` | `ranked`, `not-in-top-1m` or `invalid` |
| `ranked` | `true` | |
| `globalRank` | `13836` | Position in the Majestic Million. 1 is the biggest site |
| `tldRank` | `6564` | Position among domains with the same last label (`.com` here) |
| `tld` | `com` | |
| `refSubnets` | `2648` | Referring subnets: how many distinct IP networks link to the domain. Majestic sorts the list by this |
| `refIps` | `5969` | Referring IP addresses |
| `authorityScore` | `35` | 0 to 100, calculated here from `refSubnets`. Formula below |
| `rankChange` | `224` | Places gained since the previous list. Negative means the domain fell. Empty if it was not on that list |
| `subnetChange` | `36` | Change in referring subnets since the previous list |
| `listDate` | `2026-11-21` | Date of the Majestic file used |
| `note` | | Why a row is unranked or invalid |
| `source` | `Majestic Million, majestic.com/reports/majestic-million, CC BY 3.0` | Attribution, on every row |

The run's `OUTPUT` record has the totals, the list date and the full attribution text.

#### Authority score

`authorityScore = 100 x (ln(refSubnets) - ln(150)) / (ln(500000) - ln(150))`, limited to 0 to 100 and rounded. It is a log scale, so each doubling of referring subnets adds about 8.5 points. The smallest domain on the list scores about 1, a site with 3,000 referring subnets about 37, and anything at or above 500,000 subnets (Google, today) 100.

This is not Moz Domain Authority, Ahrefs Domain Rating or any other vendor's score, and it will not match them. It is one number built from one public measure, with a formula you can read and reproduce.

### Use it from an AI agent

In Claude, ChatGPT or Cursor, add the Apify MCP server (https://mcp.apify.com) and ask the agent to run this Actor. It takes a list of domains or URLs, or the ID of a dataset that holds them, and returns one row per domain.

Example prompt: "Use the Apify Actor opstoolkit/domain-rank-lookup on apify.com, crawlee.dev and example.com and tell me which one has the highest authority score."

### Input example

```json
{
  "domains": ["apify.com", "crawlee.dev", "https://www.example.com/page", "wikipedia.org", "github.com"],
  "sortBy": "rank"
}
```

Output for the first two:

```json
[
  {
    "input": "apify.com", "domain": "apify.com", "status": "ranked", "ranked": true,
    "globalRank": 13836, "tldRank": 6564, "tld": "com", "refSubnets": 2648, "refIps": 5969,
    "authorityScore": 35, "rankChange": 224, "subnetChange": 36, "listDate": "2026-11-21",
    "note": null, "source": "Majestic Million, majestic.com/reports/majestic-million, CC BY 3.0"
  },
  {
    "input": "crawlee.dev", "domain": "crawlee.dev", "status": "ranked", "ranked": true,
    "globalRank": 292119, "tldRank": 294, "tld": "dev", "refSubnets": 444, "refIps": 597,
    "authorityScore": 13, "rankChange": -290, "subnetChange": 3, "listDate": "2026-11-21",
    "note": null, "source": "Majestic Million, majestic.com/reports/majestic-million, CC BY 3.0"
  }
]
```

A domain outside the list:

```json
{
  "input": "a-small-local-shop.com", "domain": "a-small-local-shop.com", "status": "not-in-top-1m", "ranked": false,
  "globalRank": null, "authorityScore": null, "note": "Not in the Majestic Million, which covers the top 1,000,000 domains by referring subnets. ..."
}
```

### Options

- **Domains or URLs**: one per line. Full URLs, host names with `www.` or subdomains, ports and paths are all reduced to the registrable domain using the public suffix list. Repeats are merged and counted once.
- **Dataset**: give a dataset ID instead of, or as well as, a list. The Actor reads the `domain` field, then `website`, then `url`, or the field you name. This matches the output of our lead and contact Actors.
- **Sort by**: global rank, authority score, or the order you gave. Unranked domains always come last.
- **Minimum and maximum rank number**: `maxRank: 100000` keeps only the top 100,000. These filters drop unranked rows, and dropped rows are free.
- **Include domains outside the top million**: on by default.

Entries that are not domains (an IP address, a typo, an empty line) come back as `status: invalid` with the reason, and are free.

Up to 100,000 domains per run.

### Pricing

Pay per event:

| Event | Price |
|---|---|
| Domain row delivered (ranked or not) | $0.0003, so $0.30 per 1,000 |

You pay for the rows in your dataset. Invalid entries, repeats and rows removed by a rank filter are free. Set a max cost per run in the run options and the Actor stops there. Rows it could not charge for are not delivered. Platform start fees follow Apify's usual rate for the run's memory.

### How it is fast

The first run each day downloads the Majestic file (about 80 MB), splits it into 512 small compressed pieces and saves them in a key-value store named `majestic-million-index` in your Apify account. That store holds about 29 MB. Every later run in the same day reads only the pieces that contain your domains: a five-domain lookup reads five pieces of about 55 KB each and takes a fraction of a second. After 24 hours the Actor checks Majestic for a newer file and rebuilds only if one exists. If Majestic is down, it uses your saved copy and the `listDate` column shows how old it is.

The saved store is yours. Delete it from Storage in the Console at any time and the next run rebuilds it.

### Where the data comes from

- **Majestic Million**, published by Majestic at [majestic.com/reports/majestic-million](https://majestic.com/reports/majestic-million) under the [Creative Commons Attribution 3.0 Unported](https://creativecommons.org/licenses/by/3.0/) licence. That licence allows commercial use and redistribution if the source is credited. The credit is in every row's `source` field and in the `OUTPUT` record.
- **Changes made here**: rows are re-keyed by domain, and `authorityScore`, `rankChange` and `subnetChange` are calculated from the published columns. The rank, subnet and IP numbers are Majestic's as published.
- This Actor is not made by, affiliated with or endorsed by Majestic.
- Other open lists were considered and left out. The Tranco list combines sources that include one under a non-commercial licence (CC BY-NC 4.0), so it is not safe to resell.
- The domains you supply are the only input. Nothing is crawled, so robots.txt does not apply, and no personal data is involved.

### Limits

- **Top million only.** Most small and local business sites will return `ranked: false`. If most of your list is small sites, this Actor tells you which few are established and says nothing about the rest.
- **Referring subnets are one signal.** They count linking networks and say nothing about traffic, content quality or search rankings. Do not treat the authority score as Moz DA or Ahrefs DR.
- **Registrable domains only.** `blog.example.co.uk` and `shop.example.co.uk` both return the data for `example.co.uk`. Sites hosted on a shared domain, such as `name.github.io` or `name.blogspot.com`, return that platform's rank, not the site's.
- **Daily list.** Majestic updates the file about once a day. `listDate` is the date of the file.
- **Change columns** compare against the previous list in the same Majestic file. They are empty for domains that were not on it.

### Works well with

- [Local Business Leads](https://apify.com/opstoolkit/local-business-leads) and [Company Contact Finder](https://apify.com/opstoolkit/company-contact-finder): clean the list with [Dataset Cleaner](https://apify.com/opstoolkit/dataset-cleaner) and check emails with [Email Validator](https://apify.com/opstoolkit/email-syntax-mx-validator), then pass the dataset ID here (it reads `domain`, then `website`) and sort the leads by authority score.
- [Domain Availability & Expiry Checker](https://apify.com/opstoolkit/domain-availability-expiry-checker): check whether a strong domain is registered and when it expires. Rank first, then check the ones worth buying.
- [Website Tech Stack Detector](https://apify.com/opstoolkit/website-tech-stack-detector): see what the highest-ranked sites run on.

### Integrations

Schedules, webhooks, the REST API, and the official Zapier, Make, n8n and Google Sheets integrations all work. Schedule a weekly run on your own domain list and watch `rankChange` and `subnetChange`.

### FAQ

**Why is my domain not ranked?**
It is outside the top 1,000,000 domains by referring subnets. The list covers a tiny share of all registered domains.

**Is this the same as Moz Domain Authority?**
No. It uses Majestic's referring-subnet count and its own published formula. Use it to compare sites on the same list, not to match another vendor's number.

**Can I use the data commercially?**
The Majestic Million is licensed CC BY 3.0, which allows it if you credit Majestic. Keep the `source` field or the attribution text from the `OUTPUT` record with the data you share.

**Something broke.**
Open an issue on the Issues tab with the run link. I reply within a day.

# Actor input Schema

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

Domains, host names or full URLs, one per item. Example: \["apify.com", "https://blog.example.co.uk/post"]. Each is reduced to its registrable domain (example.co.uk) and checked once, so repeats are merged. Entries that are not domains come back as free invalid rows. Up to 100,000 per run. Give this, datasetId, or both.

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

Optional. ID of an Apify dataset that holds domains or URLs, such as the output of Local Business Leads or Company Contact Finder. Example: "aBcDeFgHiJkLmNoPq". Its domains are added to the list above. Set datasetField if the column is not named domain, website or url.

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

Name of the dataset field that holds the domain or URL. Example: website. Only used with datasetId. Leave empty to try domain, then website, then url.

## `sortBy` (type: `string`):

Order of the output rows. rank: most popular domains first. authority: highest authority score first. input: the order you gave. Domains outside the top million always come last. Default: rank.

## `minRank` (type: `integer`):

A whole number from 1 to 1,000,000, for example 5000. Keeps only domains whose global rank number is at least this, so 5000 skips the 4,999 biggest sites. Setting it drops domains outside the top million. Dropped rows are free. Cannot be bigger than maxRank. Leave empty for no lower limit.

## `maxRank` (type: `integer`):

A whole number from 1 to 1,000,000, for example 100000. Keeps only domains ranked this number or better, so 100000 keeps the top 100,000. Setting it drops domains outside the top million. Dropped rows are free. Leave empty for no upper limit.

## `includeUnranked` (type: `boolean`):

When true, domains not in the top million come back with ranked false and empty numbers, and are billed like any other row. When false, they are left out and not billed. Default: true.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "crawlee.dev",
    "example.com",
    "wikipedia.org",
    "github.com"
  ],
  "sortBy": "rank",
  "includeUnranked": true
}
```

# Actor output Schema

## `domains` (type: `string`):

No description

## `summary` (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 = {
    "domains": [
        "apify.com",
        "crawlee.dev",
        "example.com",
        "wikipedia.org",
        "github.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("opstoolkit/domain-rank-lookup").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": [
        "apify.com",
        "crawlee.dev",
        "example.com",
        "wikipedia.org",
        "github.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("opstoolkit/domain-rank-lookup").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": [
    "apify.com",
    "crawlee.dev",
    "example.com",
    "wikipedia.org",
    "github.com"
  ]
}' |
apify call opstoolkit/domain-rank-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,opstoolkit/domain-rank-lookup"
        }
    }
}
```

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/3dBZGmgZo7rYMevkb/builds/cmtt8EHWrmgfKbfIG/openapi.json
