# 🚀 Ahrefs Top Websites Scraper · 5,000 Free Websites/Month (`omkar-cloud/ahrefs-top-websites-scraper`) Actor

Ahrefs Top Websites Scraper gets you Ahrefs' ranking of the most visited websites ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — rank, search traffic, category & trend in 183 countries. 💰 $1 per 1,000 websites, no start fee. Scrape your first 5,000 websites free every month 🚀

- **URL**: https://apify.com/omkar-cloud/ahrefs-top-websites-scraper.md
- **Developed by:** [Omkar Cloud](https://apify.com/omkar-cloud) (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.70 / 1,000 websites

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

## Ahrefs Top Websites Scraper

Ahrefs Top Websites Scraper by Omkar Cloud gets you 🎯 accurate, 🔍 detailed rankings of the most visited websites, straight from Ahrefs.

Ahrefs ranks websites by organic search traffic every month. Ahrefs Top Websites Scraper turns that ranking into clean rows, so you can successfully complete your project.

**$1 per 1,000 websites.** And with Apify's free plan you get $5 of credit every month, so your first **~5,000 websites each month are free**.

This is an excellent Actor made by Omkar Cloud, which is Rated Excellent — [4.7 based on 37 reviews on Trustpilot](https://www.trustpilot.com/review/omkar.cloud).

👉 [**Try Ahrefs Top Websites Scraper free**](https://apify.com/omkar-cloud/ahrefs-top-websites-scraper) — your first ~5,000 websites are Free.

### What can I get

- 🏆 **The worldwide top 1,000 websites** — rank, monthly change, category & search traffic
- 🌍 **The top 100 in 183 countries** — and in 25 categories, from Shopping to News
- 📈 **Trending websites** — the 10 that climbed or fell the most this month, per country and category
- 🔍 **Full website profiles** — traffic since 2015, traffic value, top keywords, competitors & Domain Rating

### Why Ahrefs Top Websites Scraper

Most other top-websites scrapers fail you in one of four ways:

- 🗄️ **Inaccurate, cached, stale data**
- 🧩 **Low-detail data** — a rank and a domain, never the full picture
- 💸 **Pay more to get the same data**
- 🪦 **Works today, breaks next month** — nobody maintains it

Ahrefs Top Websites Scraper is scraped live on every run, priced honestly, and actively maintained.

### Example: The #1 Website, With Its Full Profile

```json
{
  "list": "top",
  "period": "2026-10",
  "rank": 1,
  "rank_change": 2,
  "domain": "youtube.com",
  "link": "https://ahrefstop.com/websites/youtube.com",
  "category": "Entertainment",
  "traffic": 3500000000,
  "traffic_change": 1700000000,
  "name": "YouTube",
  "country_rank": 2,
  "country_rank_country": "US",
  "traffic_value": 563400000,
  "keywords": 121000000,
  "currency": "USD",
  "traffic_history": [{ "month": "2026-10", "organic_traffic": 3472781366, "traffic_value": 563440144 }],
  "traffic_by_country": [{ "country": "US", "traffic": 763233570, "previous_traffic": 356256888, "share_percent": 21.9 }],
  "top_keywords": [{ "keyword": "youtube", "volume": 99600000, "traffic": 90400000, "position": 1 }],
  "competitors": [{ "domain": "wikipedia.org", "traffic": 4200000000, "pages": 2400000 }],
  "domain_rating": 99,
  "linking_websites": 12700000,
  "updated_at": "2026-10-01"
}
```

*Trimmed for readability.* Every row is flat — each value is its own column, so CSV and Excel exports need no clean-up.

### Get Started with 5,000 Free Websites

1. [Hit **Try for Free Button**](https://apify.com/omkar-cloud/ahrefs-top-websites-scraper) — the input is pre-filled with the US ranking.
2. Enjoy your data 😎.

### Pricing

High value, Low price.

| What | Price | What you get |
|---|---|---|
| **Standard websites** | **$1 per 1,000** | rank, rank change, domain, category, monthly search traffic and its change, list and month |
| **Detailed websites** | $2 per 1,000 | Everything above + worldwide / country / category rank, traffic value, keyword count, traffic since 2015, top countries, top keywords, competitors, Domain Rating, linking websites |

No start fee — you pay only for the rows you get. Control your spend with **Max websites**: 1,000 websites = $1.

💡 Apify's free plan includes $5 of credit every month — about **5,000 free websites, every month**.

👉 [**Scrape your first 5,000 websites free**](https://apify.com/omkar-cloud/ahrefs-top-websites-scraper)

### Run It from Code

Grab your API token from [Integrations Settings here](https://console.apify.com/settings/integrations) and replace `<YOUR_API_TOKEN>` below.

**Python** (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("omkar-cloud/ahrefs-top-websites-scraper").call(run_input={
    "countries": ["US", "GB"],
    "categories": ["shopping"],
    "includeDetails": True,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["country"], row["rank"], row["domain"], row["traffic"], row["domain_rating"])
```

**Node.js** (`npm install apify-client`)

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('omkar-cloud/ahrefs-top-websites-scraper').call({
    lists: ['trending_up', 'trending_down'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### 💬 Have Questions? We Have Answers.

You're a business owner — we know how hard completing a project can be. So we offer full support: just message us and we'll reply ✅ with a solution within 1 working day.

[![Message Us on WhatsApp about Ahrefs Top Websites Scraper](https://raw.githubusercontent.com/omkarcloud/assets/master/images/whatsapp-us.png)](https://www.omkar.cloud/l/ahrefs-scraper-apify-whatsapp)

[![Ask Us by Email about Ahrefs Top Websites Scraper](https://raw.githubusercontent.com/omkarcloud/assets/master/images/ask-on-email.png)](mailto:happy.to.help@omkar.cloud?subject=Help%20with%20Ahrefs%20Top%20Websites%20Scraper%20actor\&body=I%20need%20help%20using%20the%20Ahrefs%20Top%20Websites%20Scraper%20actor.)

### Related Actors

- 📈 [**Ahrefs Scraper**](https://apify.com/omkar-cloud/ahrefs-scraper) — Domain Rating, backlinks, traffic, website profiles, competitors, broken links and AI visibility. $3 per 1,000 results.
- 🔑 [**Ahrefs Keyword Scraper**](https://apify.com/omkar-cloud/ahrefs-keyword-scraper) — Keyword Difficulty, the Google top 10, keyword ideas and rank checks. $3 per 1,000 keywords.

### Popular Actors by Omkar Cloud

- [**G2 Product Scraper**](https://apify.com/omkar-cloud/g2-product-scraper) — G2 product details, ratings & AI-found contacts
- [**Website Email Contact Scraper**](https://apify.com/omkar-cloud/website-email-contact-scraper) — emails, phones & socials from any website
- [**AliExpress Product Scraper**](https://apify.com/omkar-cloud/aliexpress-product-scraper) — live product details, SKU variants, stock & shipping
- [**Booking Scraper**](https://apify.com/omkar-cloud/booking-scraper) — Booking.com hotels: prices, ratings, rooms & amenities
- [**Etsy Scraper**](https://apify.com/omkar-cloud/etsy-scraper) — Etsy products: prices, discounts, shops & variations

👉 [**Scrape your first 5,000 websites free now**](https://apify.com/omkar-cloud/ahrefs-top-websites-scraper)

# Actor input Schema

## `countries` (type: `array`):

Countries whose ranking to scrape: 2-letter codes (US, GB, IN), Ahrefs slugs (united-states) or names (United Kingdom). Leave empty for the worldwide ranking.

## `categories` (type: `array`):

Only websites in these categories. Leave empty for every category.

## `lists` (type: `array`):

<b>Top websites</b>: the ranking itself (worldwide: the top 1,000 in 10 pages; a country or category: the top 100).<br><b>Trending up / down</b>: the 10 websites that climbed or fell the most this month.

## `includeDetails` (type: `boolean`):

Merge every website's full Ahrefs profile into its row: worldwide / country / category rank, traffic value, keyword count, monthly traffic since 2015, top countries, top keywords, competitors, Domain Rating and linking websites. Still one row per website, billed at the detailed rate (1,000 detailed websites = $2 vs $1 standard).

## `maxResults` (type: `integer`):

Maximum number of website rows to scrape in this run. Use it to control your cost (1,000 websites = $1).

## Actor input object example

```json
{
  "countries": [
    "US"
  ],
  "lists": [
    "top"
  ],
  "includeDetails": false,
  "maxResults": 1000
}
```

# Actor output Schema

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

Every row with every field.

## `overview` (type: `string`):

Rank, rank change, category and monthly search traffic of every website.

## `details` (type: `string`):

Website profiles: worldwide and category ranks, traffic value, keywords, DR and linking websites.

# 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 = {
    "countries": [
        "US"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("omkar-cloud/ahrefs-top-websites-scraper").call(input);

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

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

```

## Python example

```python
from apify_client import ApifyClient

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

# Prepare the Actor input
run_input = { "countries": ["US"] }

# Run the Actor and wait for it to finish
run = client.actor("omkar-cloud/ahrefs-top-websites-scraper").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 '{
  "countries": [
    "US"
  ]
}' |
apify call omkar-cloud/ahrefs-top-websites-scraper --silent --output-dataset

```

## MCP server setup

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

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/zMtkDN0BHyK4LVnZg/builds/6RVGRJcUt4zfscUep/openapi.json
