# Ahrefs Top Trending Websites List Scraper (`scrapeverse/ahrefs-top-trending-websites-list-scraper`) Actor

Instantly extract trending websites from Ahrefs' Top Sites with filters for country, category, and traffic. Get detailed insights like global rank, traffic volume, and categories. Perfect for SEO research, lead generation, and competitive analysis.

- **URL**: https://apify.com/scrapeverse/ahrefs-top-trending-websites-list-scraper.md
- **Developed by:** [ScrapeVerse](https://apify.com/scrapeverse) (community)
- **Categories:** Lead generation, SEO tools, Automation
- **Security:** Limited permissions
- **Stats:** 21 total users, 1 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

from $3.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.

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 — Most Visited Sites by Country & Category

**Ahrefs Top Websites Scraper** returns Ahrefs' **Top Websites** ranking as structured data, filtered by **country** (183 countries) and **category** (25 categories). Each run returns **100 websites** with rank, domain, URL, category and estimated monthly organic traffic. No Ahrefs subscription or login is needed. **$0.30 per 100 websites.**

> **Where this fits in the ScrapeVerse SEO & lead-gen toolkit**
>
> 1. **Find high-traffic domains in your niche and market** → **Ahrefs Top Websites Scraper** (you are here)
> 2. **Turn domains into companies** → get the LinkedIn page with [LinkedIn Company URL Mass Finder](https://apify.com/scrapeverse/linkedin-company-url---mass-finder), then headcount and industry with [LinkedIn Company Profile Scraper](https://apify.com/scrapeverse/linkedin-company-profile-scraper)
> 3. **Get contact details** from their Facebook pages with [Facebook Page Details Scraper](https://apify.com/scrapeverse/facebook-page-details-scraper)

***

### Before you run: input checklist

| Check | What to do |
| --- | --- |
| **Filters are optional** | Leave both empty for the **global** top 100. Set `country`, `category`, or both. |
| **Country + category** | Combine them for niche lists, e.g. `country: "india"` + `category: "finance"`, the top finance websites in India. |
| **Pagination** | Each `page` is 100 websites. `page: 2` returns ranks 101–200, `page: 3` returns 201–300, and so on. |
| **Proxy** | Nothing to configure. US residential proxies are built in. |
| **Empty run?** | If Ahrefs shows no table for a combination, you get one row with `"status": "no_results"`. Try a broader filter. |

***

### What data does the Ahrefs top sites scraper extract?

| Output key | Description |
| --- | --- |
| `rank` | Position in the Ahrefs Top Websites list for your filter |
| `domain` | Website domain, e.g. `wikipedia.org` |
| `url` | Full URL, e.g. `https://wikipedia.org` |
| `category`, `categories[]` | Ahrefs website category |
| `traffic` / `traffic_string` | Estimated monthly organic traffic as a number (`910000000`) and as shown (`910M`) |
| `trafficPrev` / `trafficPrev_string` | The comparison traffic figure Ahrefs shows next to the current value |

**Categories:** Arts & Entertainment, Autos & Vehicles, Beauty & Fitness, Books & Literature, Business & Industrial, Computers & Electronics, Finance, Food & Drink, Games, Health, Hobbies & Leisure, Home & Garden, Internet & Telecom, Jobs & Education, Law & Government, News, Online Communities, People & Society, Pets & Animals, Real Estate, Reference, Science, Shopping, Sports, Travel & Transportation.

***

### How to scrape Ahrefs top websites

1. Pick a **Country** (or leave it empty for worldwide).
2. Pick a **Category** (or leave it empty for all categories).
3. Set **page** (`1` = top 100).
4. Click **Start** and export to CSV, Excel or JSON.

#### Input example

```json
{
    "country": "united-states",
    "category": "shopping",
    "page": 1
}
```

#### Output example

```json
[
    {
        "rank": 1,
        "categories": ["Reference"],
        "rankPrev": null,
        "domain": "wikipedia.org",
        "traffic": 910000000,
        "trafficPrev": 26500000,
        "url": "https://wikipedia.org",
        "category": "Reference",
        "traffic_string": "910M",
        "trafficPrev_string": "26.5M"
    }
]
```

***

### How much does it cost?

Pay-per-event pricing: **$0.003 per website ($0.30 per 100-site page, $3 per 1,000)**. Apify platform usage (headless browser and residential proxies) is included, plus a negligible $0.00005 start fee per run.

**What does Apify's free $5 monthly credit get you?** About **1,600 ranked websites every month for $0**. That's 16 country or category top-100 lists. The **Pricing** tab always shows the live rate.

***

### Integrations: n8n, Make, Clay, Google Sheets and API

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapeverse~ahrefs-top-trending-websites-list-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"country":"germany","category":"news","page":1}'
```

- **Google Sheets:** schedule a monthly run per country or category and append results to a sheet to track rank changes over time.
- **n8n / Make:** loop over a list of countries or categories, run the Actor for each, then pass every `domain` to [LinkedIn Company URL Mass Finder](https://apify.com/scrapeverse/linkedin-company-url---mass-finder) for outreach.
- **Clay:** import the CSV, then enrich each domain with company, contact and tech-stack data.
- **AI agents:** callable from Claude, Cursor and other MCP clients through the [Apify MCP server](https://mcp.apify.com). For example: "list the top 100 health sites in Canada."

***

### Use cases

- **SEO link-building prospecting:** build lists of high-authority, high-traffic publishers in your niche and country.
- **Publisher and media buying:** find the biggest sites to place ads or sponsored content on.
- **Market research:** see which brands dominate traffic in a category per country.
- **Competitor benchmarking:** check where your site and competitors rank in a category.
- **B2B lead generation:** turn top domains into company leads with the LinkedIn and Facebook scrapers.

***

### FAQ

#### Do I need an Ahrefs account?

No. The data comes from Ahrefs' public Top Websites pages, so no subscription, API key or login is needed.

#### How many websites can I get?

100 per page. Increase `page` for ranks 101–200, 201–300 and beyond, as far as Ahrefs lists sites for that filter.

#### How accurate are the traffic numbers?

They are Ahrefs' estimates of monthly organic search traffic, the same figures shown on ahrefs.com. Use them for ranking and comparison, not as exact visit counts.

#### Why did I get a `no_results` row?

Ahrefs had no table for that country and category combination, or the page didn't load. Try a broader filter or run it again.

#### Can I export the list to CSV or Excel?

Yes. Download from the run's **Storage** tab (CSV, Excel, JSON, XML) or via the dataset API with `format=csv`.

***

### Related ScrapeVerse scrapers

- [LinkedIn Company URL Mass Finder](https://apify.com/scrapeverse/linkedin-company-url---mass-finder): domain or brand → LinkedIn company page.
- [LinkedIn Company Profile Scraper](https://apify.com/scrapeverse/linkedin-company-profile-scraper): headcount, industry and HQ for each company.
- [Facebook Page Details Scraper](https://apify.com/scrapeverse/facebook-page-details-scraper): public emails and phones from brand pages.
- [Clutch.co Search Results Scraper](https://apify.com/scrapeverse/clutch-search-results-scraper): find agencies serving your niche.

Need a custom SEO dataset? [Contact ScrapeVerse](https://scrapeverse.in/contact).

# Actor input Schema

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

Select Category

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

Select country

## `page` (type: `integer`):

Select page

## `debugSecret` (type: `string`):

or maintainers

## Actor input object example

```json
{
  "category": "",
  "country": "",
  "page": 1,
  "debugSecret": ""
}
```

# 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("scrapeverse/ahrefs-top-trending-websites-list-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("scrapeverse/ahrefs-top-trending-websites-list-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 '{}' |
apify call scrapeverse/ahrefs-top-trending-websites-list-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeverse/ahrefs-top-trending-websites-list-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/o844jUtaR5fQRMdBy/builds/sb10KWN4reHUTz6Y4/openapi.json
