# Ahrefs Scraper (`simpleapi/ahrefs-scraper`) Actor

🚀 Ahrefs Scraper automates extracting SEO data from Ahrefs to power competitor research, backlink analysis, and content strategy. 📈 Fast, reliable, and built for growth teams. 🤖 Perfect for agencies & analysts.

- **URL**: https://apify.com/simpleapi/ahrefs-scraper.md
- **Developed by:** [SimpleAPI](https://apify.com/simpleapi) (community)
- **Categories:** SEO tools, Automation, Agents
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🔎 Ahrefs Scraper

Pull rich, structured **SEO data from Ahrefs' free tools** — without an Ahrefs subscription or API key. Give the actor a **domain/URL** and/or a **keyword**, tick the datasets you want, and it returns clean JSON you can pipe straight into spreadsheets, dashboards, or your own pipelines.

It covers **9 Ahrefs free tools** in one run:

| 🧰 Tool | What you get |
|--------|--------------|
| 🏆 Domain Overview / Website Authority | Domain Rating, backlinks, referring domains |
| 📊 Web Traffic | Est. monthly visits, traffic value, history, top pages/countries/keywords |
| 🔗 Backlinks | Backlink & referring-domain overview |
| 🧩 Broken Links | Broken inbound & outbound links |
| 💡 Keyword Ideas | Keyword + question ideas with volumes |
| ⚙️ Keyword Difficulty | KD score + the ranking SERP |
| 🎯 Keyword Ranking | Where a domain ranks for a keyword |
| 🔎 SERP Overview | Full SERP snapshot for a keyword |
| 🤖 AI Visibility | AI citations across LLMs, top cited domains/pages & topics |
| 🌍 Top Websites | AhrefsTop trending websites (Top 1000/100) + movers up & down |

### ✨ Why Choose Us?

- **All-in-one** — 9 Ahrefs tools behind a single, simple input.
- **Bulk-ready** — analyse many domains in one run.
- **Resilient** — starts on a direct connection and **auto-escalates** to datacenter → residential proxies only if Ahrefs blocks it, then sticks with the working tier.
- **Live results** — every record is pushed the moment it's collected, so a long run never loses data.
- **Per-section output** — each tool gets its own clean dataset view (table) for easy export.

### 🔑 Key Features

- ✅ Single + **bulk** URL/domain input
- ✅ 188-country localisation for keyword, SERP & traffic data
- ✅ `exact` / `subdomains` scope and `http`/`https`/`both` protocol control
- ✅ Cloudflare Turnstile solving via **CapSolver**, **2Captcha**, **Playwright**, or a **static token**
- ✅ Polite rate limiting with configurable delay
- ✅ Live dataset writes + friendly, emoji-rich run log

### 🛡️ Captcha — handled for you

Ahrefs gates **every** free tool behind a Cloudflare **Turnstile** challenge. This actor solves it **automatically** with a built-in solver — you don't need to bring your own captcha key or configure anything. Just enter your target and press Start.

### 📥 Input

```json
{
  "keyword": "ai automation",
  "url": "make.com",
  "country": "us",
  "mode": "subdomains",
  "include_web_authority": true,
  "include_traffic": true,
  "include_backlinks": true,
  "include_keywords": true,
  "include_serp": true,
  "include_ai_visibility": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
````

| Field | Type | Description |
|-------|------|-------------|
| `keyword` | string | Keyword (or brand for AI Visibility) |
| `url` | string | Single domain/URL to analyse |
| `urls` | array | Bulk list of domains/URLs (overrides `url`) |
| `country` | string | 2-letter country code (default `us`) |
| `mode` | string | `subdomains` or `exact` |
| `include_*` | boolean | Toggle each dataset on/off |
| `include_top_websites` | boolean | AhrefsTop trending websites (no keyword/domain needed) |
| `category_top_websites` | string | Category filter for Top Websites (default `all`) |
| `country_top_websites` | string | Country filter for Top Websites (default `worldwide`) |
| `proxyConfiguration` | object | Proxy settings (fallback only) |

> Captcha solving is built in — no key required.

### 📤 Output

One record per tool, e.g. a traffic record:

```json
{
  "data_captured_at": "2026-06-09T16:09:17+00:00",
  "type": "traffic",
  "domain": "make.com",
  "mode": "subdomains",
  "website_authority": { "domainRating": 89.0, "backlinks": 2705381, "refdomains": 35390 },
  "website_traffic": { "trafficMonthlyAvg": 360938, "costMontlyAvg": 17315114 },
  "website_traffic_history": [ ... ],
  "website_traffic_top_pages": [ ... ],
  "website_traffic_top_countries": [ ... ],
  "website_traffic_top_keywords": [ ... ]
}
```

Each `type` (`traffic`, `backlinks`, `broken_links`, `keyword_ranking`, `keyword_difficulty`, `keywords`, `serp`, `ai_visibility`, `top_websites`) has its **own dataset view** in the Output tab.

### 🚀 How to Use (Apify Console)

1. Log in at [console.apify.com](https://console.apify.com) → **Actors**.
2. Open **Ahrefs Scraper**.
3. Enter a domain/URL and/or keyword, choose the datasets, and add your captcha key.
4. Click **Start**.
5. Watch the live log as data streams in.
6. Open the **Output** tab and switch between per-section views.
7. Export to JSON / CSV / XLSX.

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"url":"make.com","keyword":"ai automation","include_traffic":true,"include_backlinks":true}'
```

### 💡 Best Use Cases

- Competitor SEO benchmarking at scale
- Keyword research & content gap analysis
- Backlink & broken-link audits
- Tracking AI/LLM brand visibility

### 💰 Pricing

This actor uses **pay-per-event**: you are billed per result record it produces (plus standard platform usage). Captcha-solver costs (CapSolver/2Captcha) are billed by those providers directly, not by Apify.

### ❓ FAQ

**Do I need an Ahrefs account?** No — this uses Ahrefs' public free tools.

**Do I need a captcha key?** No — Ahrefs protects every free tool with Cloudflare Turnstile, but this actor solves it automatically with a built-in solver.

**Will it use a proxy?** Only if Ahrefs blocks the direct connection — it then escalates to datacenter, then residential, and stays there.

**Some fields are empty — why?** A given tool may have no data for a target (e.g. a brand-new domain), or Ahrefs returned an error for that one call; the rest of the run still succeeds.

### 🛟 Support & Feedback

Open an issue on the actor's **Issues** tab in the Apify Console with your run ID and input, and we'll help.

### ⚖️ Legal

Data is collected only from **publicly available** Ahrefs free-tool endpoints. You are responsible for compliance with applicable laws (GDPR, CCPA, etc.) and Ahrefs' Terms of Service.

# Actor input Schema

## `keyword` (type: `string`):

The keyword (or brand, for AI Visibility) to research on Ahrefs.

## `url` (type: `string`):

The single URL or domain to analyse on Ahrefs (e.g. make.com). For many targets at once, use the bulk field below.

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

Country to localise keyword, SERP and traffic results.

## `mode` (type: `string`):

Scope of the domain analysis: 'subdomains' (whole site incl. subdomains) or 'exact' (just the exact URL/host).

## `urls` (type: `array`):

A list of URLs or domains to analyse on Ahrefs. Add them one by one or paste in bulk. When set, this overrides the single URL field above.

## `include_web_authority` (type: `boolean`):

Needs a Domain/URL. If checked, includes Domain Rating, backlinks & referring-domain counts.

## `include_traffic` (type: `boolean`):

Needs a Domain/URL. If checked, includes estimated monthly visits, traffic value, history, top pages/countries/keywords.

## `include_ai_visibility` (type: `boolean`):

Needs a Brand/Keyword. If checked, includes AI citations across LLMs, top cited domains/pages & topics.

## `include_keywords` (type: `boolean`):

Needs a Keyword and Country. If checked, includes keyword ideas + question ideas with volumes.

## `include_keywords_difficulty` (type: `boolean`):

Needs a Keyword and Country. If checked, includes the Keyword Difficulty score + ranking SERP.

## `include_keywords_ranking` (type: `boolean`):

Needs a Keyword, Domain and Country. If checked, includes where the domain ranks for the keyword.

## `include_serp` (type: `boolean`):

Needs a Keyword and Country. If checked, includes the full SERP overview for the keyword.

## `include_backlinks` (type: `boolean`):

Needs a Domain/URL. If checked, includes the backlink & referring-domain overview.

## `include_broken_links` (type: `boolean`):

Needs a Domain/URL. If checked, includes broken inbound & outbound links.

## `include_top_websites` (type: `boolean`):

If checked, includes the top trending websites from AhrefsTop.com — the Top 1000 (worldwide + all categories) or Top 100 when filtered by category/country. Does not need a Keyword or Domain.

## `category_top_websites` (type: `string`):

Category to filter the AhrefsTop trending websites ranking.

## `country_top_websites` (type: `string`):

Country to filter the AhrefsTop trending websites ranking.

## `proxyConfiguration` (type: `object`):

The scraper starts on a DIRECT connection and only escalates to a datacenter, then residential proxy if Ahrefs blocks it. Pick a country here to localise residential fallback.

## Actor input object example

```json
{
  "keyword": "ai automation",
  "url": "make.com",
  "country": "us",
  "mode": "subdomains",
  "urls": [
    "make.com"
  ],
  "include_web_authority": true,
  "include_traffic": true,
  "include_ai_visibility": false,
  "include_keywords": false,
  "include_keywords_difficulty": false,
  "include_keywords_ranking": false,
  "include_serp": false,
  "include_backlinks": true,
  "include_broken_links": false,
  "include_top_websites": false,
  "category_top_websites": "all",
  "country_top_websites": "worldwide",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "keyword": "ai automation",
    "url": "make.com",
    "urls": [
        "make.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("simpleapi/ahrefs-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 = {
    "keyword": "ai automation",
    "url": "make.com",
    "urls": ["make.com"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("simpleapi/ahrefs-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "keyword": "ai automation",
  "url": "make.com",
  "urls": [
    "make.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call simpleapi/ahrefs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=simpleapi/ahrefs-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Ahrefs Scraper",
        "description": "🚀 Ahrefs Scraper automates extracting SEO data from Ahrefs to power competitor research, backlink analysis, and content strategy. 📈 Fast, reliable, and built for growth teams. 🤖 Perfect for agencies & analysts.",
        "version": "0.2",
        "x-build-id": "oTsGtKCOQxxzw9iOH"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/simpleapi~ahrefs-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-simpleapi-ahrefs-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/simpleapi~ahrefs-scraper/runs": {
            "post": {
                "operationId": "runs-sync-simpleapi-ahrefs-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/simpleapi~ahrefs-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-simpleapi-ahrefs-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "keyword": {
                        "title": "💡 Keyword or Brand",
                        "type": "string",
                        "description": "The keyword (or brand, for AI Visibility) to research on Ahrefs."
                    },
                    "url": {
                        "title": "🌐 URL or Domain",
                        "type": "string",
                        "description": "The single URL or domain to analyse on Ahrefs (e.g. make.com). For many targets at once, use the bulk field below."
                    },
                    "country": {
                        "title": "🗺️ Country",
                        "enum": [
                            "af",
                            "al",
                            "dz",
                            "as",
                            "ad",
                            "ao",
                            "ai",
                            "ag",
                            "ar",
                            "am",
                            "au",
                            "at",
                            "az",
                            "bs",
                            "bh",
                            "bd",
                            "by",
                            "be",
                            "bz",
                            "bj",
                            "bt",
                            "bo",
                            "ba",
                            "bw",
                            "br",
                            "bn",
                            "bg",
                            "bf",
                            "bi",
                            "kh",
                            "cm",
                            "ca",
                            "cv",
                            "cf",
                            "td",
                            "cl",
                            "co",
                            "cg",
                            "cd",
                            "ck",
                            "cr",
                            "ci",
                            "hr",
                            "cy",
                            "cz",
                            "dk",
                            "dj",
                            "dm",
                            "do",
                            "ec",
                            "eg",
                            "sv",
                            "ee",
                            "et",
                            "fj",
                            "fi",
                            "fr",
                            "ga",
                            "gm",
                            "ge",
                            "de",
                            "gh",
                            "gi",
                            "gr",
                            "gl",
                            "gp",
                            "gt",
                            "gg",
                            "gy",
                            "ht",
                            "hn",
                            "hk",
                            "hu",
                            "is",
                            "in",
                            "id",
                            "iq",
                            "ie",
                            "il",
                            "it",
                            "jm",
                            "jp",
                            "je",
                            "jo",
                            "kz",
                            "ke",
                            "ki",
                            "kr",
                            "kw",
                            "kg",
                            "la",
                            "lv",
                            "lb",
                            "ls",
                            "ly",
                            "li",
                            "lt",
                            "lu",
                            "mk",
                            "mg",
                            "mw",
                            "my",
                            "mv",
                            "ml",
                            "mt",
                            "mu",
                            "mx",
                            "fm",
                            "md",
                            "mn",
                            "me",
                            "ms",
                            "ma",
                            "mz",
                            "mm",
                            "na",
                            "nr",
                            "np",
                            "nl",
                            "nz",
                            "ni",
                            "ne",
                            "ng",
                            "nu",
                            "no",
                            "om",
                            "pk",
                            "ps",
                            "pa",
                            "pg",
                            "py",
                            "pe",
                            "ph",
                            "pn",
                            "pl",
                            "pt",
                            "pr",
                            "qa",
                            "ro",
                            "ru",
                            "rw",
                            "sh",
                            "vc",
                            "ws",
                            "sm",
                            "st",
                            "sa",
                            "sn",
                            "rs",
                            "sc",
                            "sl",
                            "sg",
                            "sk",
                            "si",
                            "sb",
                            "so",
                            "za",
                            "es",
                            "lk",
                            "sr",
                            "se",
                            "ch",
                            "tw",
                            "tj",
                            "tz",
                            "th",
                            "tl",
                            "tg",
                            "tk",
                            "to",
                            "tt",
                            "tn",
                            "tr",
                            "tm",
                            "ug",
                            "ua",
                            "ae",
                            "gb",
                            "us",
                            "uy",
                            "uz",
                            "vu",
                            "ve",
                            "vn",
                            "vg",
                            "vi",
                            "zm",
                            "zw"
                        ],
                        "type": "string",
                        "description": "Country to localise keyword, SERP and traffic results.",
                        "default": "us"
                    },
                    "mode": {
                        "title": "🎚️ Mode",
                        "enum": [
                            "subdomains",
                            "exact"
                        ],
                        "type": "string",
                        "description": "Scope of the domain analysis: 'subdomains' (whole site incl. subdomains) or 'exact' (just the exact URL/host).",
                        "default": "subdomains"
                    },
                    "urls": {
                        "title": "📚 Multiple URLs or Domains (Bulk)",
                        "type": "array",
                        "description": "A list of URLs or domains to analyse on Ahrefs. Add them one by one or paste in bulk. When set, this overrides the single URL field above.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "include_web_authority": {
                        "title": "🏆 Include Domain Overview / Website Authority",
                        "type": "boolean",
                        "description": "Needs a Domain/URL. If checked, includes Domain Rating, backlinks & referring-domain counts.",
                        "default": true
                    },
                    "include_traffic": {
                        "title": "📊 Include Web-Traffic",
                        "type": "boolean",
                        "description": "Needs a Domain/URL. If checked, includes estimated monthly visits, traffic value, history, top pages/countries/keywords.",
                        "default": true
                    },
                    "include_ai_visibility": {
                        "title": "🤖 Include AI Visibility Search (New)",
                        "type": "boolean",
                        "description": "Needs a Brand/Keyword. If checked, includes AI citations across LLMs, top cited domains/pages & topics.",
                        "default": false
                    },
                    "include_keywords": {
                        "title": "💡 Include Keywords Search",
                        "type": "boolean",
                        "description": "Needs a Keyword and Country. If checked, includes keyword ideas + question ideas with volumes.",
                        "default": false
                    },
                    "include_keywords_difficulty": {
                        "title": "⚙️ Include Keywords Difficulty Search",
                        "type": "boolean",
                        "description": "Needs a Keyword and Country. If checked, includes the Keyword Difficulty score + ranking SERP.",
                        "default": false
                    },
                    "include_keywords_ranking": {
                        "title": "🎯 Include Keywords Ranking Search",
                        "type": "boolean",
                        "description": "Needs a Keyword, Domain and Country. If checked, includes where the domain ranks for the keyword.",
                        "default": false
                    },
                    "include_serp": {
                        "title": "🔎 Include SERP Search",
                        "type": "boolean",
                        "description": "Needs a Keyword and Country. If checked, includes the full SERP overview for the keyword.",
                        "default": false
                    },
                    "include_backlinks": {
                        "title": "🔗 Include Backlinks Search",
                        "type": "boolean",
                        "description": "Needs a Domain/URL. If checked, includes the backlink & referring-domain overview.",
                        "default": true
                    },
                    "include_broken_links": {
                        "title": "🧩 Include Broken Links Search",
                        "type": "boolean",
                        "description": "Needs a Domain/URL. If checked, includes broken inbound & outbound links.",
                        "default": false
                    },
                    "include_top_websites": {
                        "title": "🌍 Include AhrefsTop Trending Websites Search",
                        "type": "boolean",
                        "description": "If checked, includes the top trending websites from AhrefsTop.com — the Top 1000 (worldwide + all categories) or Top 100 when filtered by category/country. Does not need a Keyword or Domain.",
                        "default": false
                    },
                    "category_top_websites": {
                        "title": "🗂️ Category (Top Websites Search Only)",
                        "enum": [
                            "all",
                            "beauty-and-fitness",
                            "books-and-literature",
                            "business",
                            "computers-and-electronics",
                            "arts-and-entertainment",
                            "finance",
                            "food-and-drink",
                            "games",
                            "health",
                            "hobbies-and-leisure",
                            "home-and-garden",
                            "internet-and-telecom",
                            "jobs-and-education",
                            "law-and-government",
                            "news",
                            "people-and-society",
                            "pets-and-animals",
                            "real-estate",
                            "reference",
                            "science",
                            "shopping",
                            "social-networks",
                            "sports",
                            "travel-and-transportation",
                            "autos-and-vehicles"
                        ],
                        "type": "string",
                        "description": "Category to filter the AhrefsTop trending websites ranking.",
                        "default": "all"
                    },
                    "country_top_websites": {
                        "title": "🌎 Country (Top Websites Search Only)",
                        "enum": [
                            "worldwide",
                            "af",
                            "al",
                            "dz",
                            "as",
                            "ad",
                            "ao",
                            "ai",
                            "ag",
                            "ar",
                            "am",
                            "au",
                            "at",
                            "az",
                            "bs",
                            "bh",
                            "bd",
                            "by",
                            "be",
                            "bz",
                            "bj",
                            "bt",
                            "bo",
                            "ba",
                            "bw",
                            "br",
                            "bn",
                            "bg",
                            "bf",
                            "bi",
                            "kh",
                            "cm",
                            "ca",
                            "cv",
                            "cf",
                            "td",
                            "cl",
                            "co",
                            "cg",
                            "cd",
                            "ck",
                            "cr",
                            "ci",
                            "hr",
                            "cy",
                            "cz",
                            "dk",
                            "dj",
                            "dm",
                            "do",
                            "ec",
                            "eg",
                            "sv",
                            "ee",
                            "et",
                            "fj",
                            "fi",
                            "fr",
                            "ga",
                            "gm",
                            "ge",
                            "de",
                            "gh",
                            "gi",
                            "gr",
                            "gl",
                            "gp",
                            "gt",
                            "gg",
                            "gy",
                            "ht",
                            "hn",
                            "hk",
                            "hu",
                            "is",
                            "in",
                            "id",
                            "iq",
                            "ie",
                            "il",
                            "it",
                            "jm",
                            "jp",
                            "je",
                            "jo",
                            "kz",
                            "ke",
                            "ki",
                            "kr",
                            "kw",
                            "kg",
                            "la",
                            "lv",
                            "lb",
                            "ls",
                            "ly",
                            "li",
                            "lt",
                            "lu",
                            "mk",
                            "mg",
                            "mw",
                            "my",
                            "mv",
                            "ml",
                            "mt",
                            "mu",
                            "mx",
                            "fm",
                            "md",
                            "mn",
                            "me",
                            "ms",
                            "ma",
                            "mz",
                            "mm",
                            "na",
                            "nr",
                            "np",
                            "nl",
                            "nz",
                            "ni",
                            "ne",
                            "ng",
                            "nu",
                            "no",
                            "om",
                            "pk",
                            "ps",
                            "pa",
                            "pg",
                            "py",
                            "pe",
                            "ph",
                            "pn",
                            "pl",
                            "pt",
                            "pr",
                            "qa",
                            "ro",
                            "ru",
                            "rw",
                            "sh",
                            "vc",
                            "ws",
                            "sm",
                            "st",
                            "sa",
                            "sn",
                            "rs",
                            "sc",
                            "sl",
                            "sg",
                            "sk",
                            "si",
                            "sb",
                            "so",
                            "za",
                            "es",
                            "lk",
                            "sr",
                            "se",
                            "ch",
                            "tw",
                            "tj",
                            "tz",
                            "th",
                            "tl",
                            "tg",
                            "tk",
                            "to",
                            "tt",
                            "tn",
                            "tr",
                            "tm",
                            "ug",
                            "ua",
                            "ae",
                            "gb",
                            "us",
                            "uy",
                            "uz",
                            "vu",
                            "ve",
                            "vn",
                            "vg",
                            "vi",
                            "zm",
                            "zw"
                        ],
                        "type": "string",
                        "description": "Country to filter the AhrefsTop trending websites ranking.",
                        "default": "worldwide"
                    },
                    "proxyConfiguration": {
                        "title": "🌐 Proxy Configuration",
                        "type": "object",
                        "description": "The scraper starts on a DIRECT connection and only escalates to a datacenter, then residential proxy if Ahrefs blocks it. Pick a country here to localise residential fallback.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
