# Ahrefs All-in-One SEO Scraper - DR, Backlinks, Keywords (`pro100chok/ahrefs-seo-tools`) Actor

Extract all SEO data from Ahrefs in one Actor: Domain Rating, backlinks, keyword research (20 engines incl. ChatGPT/Gemini/Perplexity), SERP analysis, traffic estimates, AI visibility, keyword rank checker, top 1000 websites ranking, competitors & more. No subscription needed. Bulk URL support.

- **URL**: https://apify.com/pro100chok/ahrefs-seo-tools.md
- **Developed by:** [Raven](https://apify.com/pro100chok) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 5,782 total users, 301 monthly users, 100.0% runs succeeded, 24 bookmarks
- **User rating**: 3.55 out of 5 stars

## Pricing

from $4.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Ahrefs All-in-One SEO Scraper — DR, Backlinks, Keywords, SERP & AI Visibility

Extract **all Ahrefs SEO data** via API without a browser, without an Ahrefs subscription, and without limits — keyword research, backlinks, domain authority, SERP analysis, traffic estimates, AI visibility, top websites ranking, competitors, and more. One Actor, 16 tools, full Ahrefs coverage.

> ⚠️ **Paid Apify plans only.** Every Ahrefs request requires solving a paid captcha, so this Actor does not run on the free Apify plan — a free-plan run stops immediately with a message and is not charged for results. [Upgrade your Apify plan](https://apify.com/pricing) to use it.

![Ahrefs scraper: Domain Rating, backlinks, keyword volume, KD, CPC, SERP metrics and AI visibility as structured JSON](https://raw.githubusercontent.com/PRO100CHOK/apify-readme-assets/main/ahrefs-seo-tools/hero.png)

<table>
<tr>
<td colspan="4" style="padding:10px 14px;background:#2663D9;border:none;border-radius:4px 4px 0 0">
<span style="color:#FFFFFF;font-size:14px;font-weight:700;letter-spacing:0.5px">Raven &middot; SEO & web-intelligence suite</span>
<span style="color:#D5E3FF;font-size:13px">&nbsp;&nbsp;&bull;&nbsp;&nbsp;Ahrefs, Semrush, Similarweb, contact data</span>
</td>
</tr>
<tr>
<td style="background:#D9E6FF;padding:10px 12px;border:1px solid #E4E4E7;border-right:none;border-top:none;vertical-align:top;width:25%">
<span style="white-space:nowrap"><img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-pC8gsptNv2RwJm0QE-W9y7YrikQ2-Gemini_Generated_Image_sweylvsweylvswey.png" width="20" height="20" style="vertical-align:middle;border-radius:4px"> &nbsp;<a href="https://apify.com/pro100chok/ahrefs-seo-tools" style="color:#245DCC;text-decoration:none;font-weight:700;font-size:13px">Ahrefs&nbsp;SEO&nbsp;Tools</a></span><br>
<span style="color:#245DCC;font-size:11px;font-weight:600">&#10148; You are here</span>
</td>
<td style="background:#EEF4FF;padding:10px 12px;border:1px solid #E4E4E7;border-right:none;border-top:none;vertical-align:top;width:25%">
<span style="white-space:nowrap"><img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-9FWL3X6mVI2izVfeJ-4DKlEMxqE4-26ac0cec-e6fd-4020-abbb-d4d8885f3bf1.png" width="20" height="20" style="vertical-align:middle;border-radius:4px"> &nbsp;<a href="https://apify.com/pro100chok/semrush-scraper" style="color:#18181B;text-decoration:none;font-weight:700;font-size:13px">Semrush&nbsp;Scraper</a></span><br>
<span style="color:#71717A;font-size:11px">Traffic, authority, backlinks</span>
</td>
<td style="background:#EEF4FF;padding:10px 12px;border:1px solid #E4E4E7;border-right:none;border-top:none;vertical-align:top;width:25%">
<span style="white-space:nowrap"><img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-aqPbs3KeH9aD8b22w-7uDzdHiNaF-9358b53b-cd06-42f2-bc53-6c5ac7d9558c.png" width="20" height="20" style="vertical-align:middle;border-radius:4px"> &nbsp;<a href="https://apify.com/pro100chok/similarweb-scraper" style="color:#18181B;text-decoration:none;font-weight:700;font-size:13px">Similarweb&nbsp;Scraper</a></span><br>
<span style="color:#71717A;font-size:11px">Traffic, rankings, analytics</span>
</td>
<td style="background:#EEF4FF;padding:10px 12px;border:1px solid #E4E4E7;border-top:none;vertical-align:top;width:25%">
<span style="white-space:nowrap"><img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-1X9ZSt3urlN5pptAO-Nyu91cUNLw-9d50dd18-fb66-400e-85c7-413263018bd8.png" width="20" height="20" style="vertical-align:middle;border-radius:4px"> &nbsp;<a href="https://apify.com/pro100chok/extract-emails" style="color:#18181B;text-decoration:none;font-weight:700;font-size:13px">Website&nbsp;Contacts</a></span><br>
<span style="color:#71717A;font-size:11px">Emails, phones, socials</span>
</td>
</tr>
</table>

### Why use this Actor?

- **All Ahrefs free tools in one place** — 16 search types covering every free tool on ahrefs.com and ahrefstop.com
- **No browser needed** — direct API calls with TLS fingerprinting, 10x faster than browser-based scrapers
- **20 search engines for keyword research** — Google, Bing, YouTube, Amazon, Baidu, Yahoo, Yandex, **ChatGPT, Gemini, Perplexity, Copilot, Grok, Google AI Mode** and more. No competitor supports AI engines
- **Keyword Explorer metrics** — search volume, keyword difficulty (0-100), CPC, traffic potential extracted from SERP data
- **Keyword Rank Checker** — check exact ranking position for any domain + keyword + country. Unique feature, no other Actor has it
- **AI Visibility analysis** — per-model citation breakdown across ChatGPT, Gemini, Perplexity, Copilot, Google AI Overviews
- **Top 1000 websites** — full ahrefstop.com ranking with pagination, country and category filters, trending sites, website details with competitors and similarly ranked sites
- **Bulk processing** — pass multiple URLs, process up to 10 in parallel
- **Built-in captcha solving** — Cloudflare Turnstile handled automatically, no tokens needed from you
- **Residential US proxies** — reliable IP rotation included via Apify Proxy
- **Auto-retry on errors** — up to 5 retries with proxy rotation on TLS/connection failures

### What data can you extract?

| Search Type | Data Returned |
|---|---|
| **Website Authority** | Domain Rating (DR), backlinks count, referring domains, dofollow % |
| **Backlinks Overview** | DR, total backlinks, referring domains, dofollow %, signed token for detailed list |
| **Backlinks List** | Top backlinks: source URL, target URL, anchor text, DR of linking page, title |
| **Broken Links** | Inbound and outbound broken links with HTTP codes, anchor, source/target URL, redirect chains, plus total and dofollow counts |
| **Keyword Ideas** | Up to 7,600+ keyword suggestions per query across 20 search engines with difficulty and volume labels, plus total available idea counts |
| **Keyword Difficulty** | KD score (0-100), backlinks needed to rank, full SERP analysis with per-result metrics, plus SERP features (AI Overview, People Also Ask) |
| **Keyword Metrics** | Search volume, KD, estimated CPC ($), traffic potential, top SERP results with DR/UR/traffic/keywords |
| **Keyword Rank Checker** | Exact ranking position, URL, title, DR, UR, Ahrefs Rank, traffic, keywords for a domain + keyword + country. Full SERP top-10 |
| **SERP Overview** | Top-10 Google results with DR, UR, Ahrefs Rank, backlinks, traffic, keywords, word count, HTTP code and sitelinks for each result, plus AI Overview text with its cited sources and People Also Ask questions |
| **Traffic Overview** | Monthly traffic estimate, traffic value ($), traffic history, top pages, top keywords, traffic by country |
| **AI Visibility** | Total AI citations, breakdown by model (ChatGPT/Gemini/Perplexity/Copilot/Google AI), top cited domains, pages, topics |
| **AI Mode Tracker** | Brand mentions in Google AI Mode: total mentions, change this cycle, topic and domain counts, top topics, top cited domains and pages, monthly timelines |
| **AI Overviews Tracker** | Brand mentions in Google AI Overviews: total mentions, change this cycle, topic and domain counts, top topics, top cited domains and pages, monthly timelines |
| **XML Sitemap** | Sitemap from a real crawl: up to 1,000 URLs with last-modified dates, plus crawled/excluded totals |
| **Top Websites** | Top 1000 ranked sites with traffic, delta, category. Filter by 190+ countries and 25+ categories. Pagination support |
| **Website Details** | Search traffic, traffic value, keywords count, top countries, top keywords, competitors, similarly ranked sites, DR, linking websites |

### Input

| Field | Type | Description |
|---|---|---|
| **Search Type** | enum | Which tool to use (see table above) |
| **URLs or Domains** | array | One or more target domains — `youtube.com`, `ahrefs.com` (bulk: up to 10 parallel) |
| **Keyword** | string | Keyword for research or brand for AI visibility |
| **Country** | string | ISO country code — `us`, `gb`, `de`, `fr`, etc. |
| **Search Engine** | enum | For keyword ideas: Google, Bing, YouTube, Amazon, ChatGPT, Gemini, Perplexity, Copilot, Grok, and 11 more |
| **URL Mode** | enum | `subdomains` (default), `exact`, `prefix`, `domain` |
| **Top Websites Mode** | enum | `ranking` or `trending` |
| **Top Websites Country** | string | Country filter — `worldwide`, `united-states`, `united-kingdom`, etc. |
| **Top Websites Category** | enum | `all`, `shopping`, `news`, `finance`, `health`, and 20+ more |
| **Top Websites Limit** | integer | 1-1000 (100 per page, auto-pagination) |

#### Input example

```json
{
    "searchType": "keyword_metrics",
    "keyword": "seo tools",
    "country": "us"
}
```

### Output

Results are saved to the default dataset. Each item includes a `searchType` field for easy filtering.

#### Output example — Keyword Metrics

```json
{
    "searchType": "keyword_metrics",
    "keyword": "seo tools",
    "country": "us",
    "difficulty": 79,
    "shortage": 329,
    "searchVolume": 33000,
    "trafficPotential": 57735,
    "estimatedCpcUsd": 3.16,
    "serpResults": [
        {
            "position": 2,
            "title": "The 11 best SEO tools",
            "url": "https://zapier.com/blog/best-seo-tools/",
            "domainRating": 91,
            "urlRating": 9,
            "backlinks": 3508,
            "referringDomains": 411,
            "traffic": 57735,
            "trafficValue": 18248929,
            "keywords": 1565,
            "topKeyword": "seo tools",
            "topVolume": 33000,
            "wordCount": 7125
        }
    ]
}
```

#### Output example — Website Authority

```json
{
    "searchType": "website_authority",
    "domain": "youtube.com",
    "domainRating": 99.0,
    "backlinks": 741107285,
    "refdomains": 1116138,
    "dofollowBacklinks": 90,
    "dofollowRefdomains": 97
}
```

#### Output example — Top Websites

```json
{
    "searchType": "top_websites",
    "rank": 1,
    "rankChange": null,
    "website": "wikipedia.org",
    "category": "Reference",
    "searchTraffic": 4300000000,
    "trafficDelta": -336700000
}
```

#### Output example — Website Details (Competitors)

```json
{
    "searchType": "website_details",
    "domain": "github.com",
    "searchTraffic": 39300000,
    "trafficValueUsd": 14800000,
    "domainRating": 96,
    "competitors": [
        { "website": "sourceforge.net", "traffic": 2200000, "pages": 72600 },
        { "website": "docker.com", "traffic": 3200000, "pages": 14300 },
        { "website": "huggingface.co", "traffic": 1100000, "pages": 16500 }
    ],
    "similarlyRanked": [
        { "website": "telegram.org", "traffic": 39600000, "rank": 122 },
        { "website": "github.com", "traffic": 39300000, "rank": 123 }
    ],
    "topCountries": [
        { "country": "United States", "traffic": 9400000, "share": "23.8%" },
        { "country": "India", "traffic": 6400000, "share": "16.2%" }
    ]
}
```

#### Output example — AI Visibility

```json
{
    "searchType": "ai_visibility",
    "brand": "ahrefs.com",
    "totalAiCitations": 2103,
    "citationsByModel": [
        { "model": "Chatgpt", "count": 12 },
        { "model": "Gemini", "count": 7 },
        { "model": "Perplexity", "count": 13 },
        { "model": "Copilot", "count": 1362 },
        { "model": "GoogleAIOverviews", "count": 245 },
        { "model": "GoogleAIMode", "count": 464 }
    ],
    "topCitedDomains": [
        { "domain": "ahrefs.com", "mentions": 1357 },
        { "domain": "backlinko.com", "mentions": 184 }
    ],
    "topCitedPages": [
        { "url": "ahrefs.com/blog/seo-pricing/", "mentions": 122 }
    ],
    "topTopics": [
        { "topic": "ahrefs", "aiResponses": 25 },
        { "topic": "keyword research", "aiResponses": 14 }
    ]
}
```

#### Output example — Keyword Rank Checker

```json
{
    "searchType": "keyword_rank",
    "keyword": "seo tools",
    "domain": "ahrefs.com",
    "country": "us",
    "position": 9,
    "url": "https://ahrefs.com/free-seo-tools",
    "title": "Free SEO Tools - Made by Ahrefs",
    "domainRating": 91,
    "urlRating": 27,
    "backlinks": 4880,
    "referringDomains": 1107,
    "traffic": 72668,
    "trafficValue": 25530721,
    "keywords": 1436,
    "lastUpdate": "2026-03-30T02:07:26Z",
    "serpResults": [{"position": 1, "title": "...", "url": "...", "domainRating": 91}]
}
```

#### Output example — Traffic Overview

```json
{
    "searchType": "traffic_overview",
    "domain": "ahrefs.com",
    "mode": "subdomains",
    "trafficMonthlyAvg": 4274823,
    "costMonthlyAvg": 625363650,
    "trafficHistory": [
        { "date": "2025-10-01", "organic": 5820145 },
        { "date": "2026-03-01", "organic": 4505125 }
    ],
    "topPages": [
        { "url": "https://ahrefs.com/blog/google-advanced-search-operators/", "traffic": 266617, "share": 11.35 }
    ],
    "topCountries": [
        { "country": "us", "share": 54.29 },
        { "country": "in", "share": 11.70 }
    ],
    "topKeywords": [
        { "keyword": "search operators", "position": 2, "traffic": 546000 }
    ]
}
```

#### Output example — Backlinks List

```json
{
    "searchType": "backlinks_list",
    "domain": "ahrefs.com",
    "backlinks": [
        {
            "urlFrom": "https://copyblogger.com/content-marketing/",
            "urlTo": "https://ahrefs.com/",
            "anchor": "Ahrefs",
            "domainRating": 84,
            "title": "The Complete Content Marketing Guide For 2025 - Copyblogger"
        }
    ]
}
```

#### Output example — Broken Links

```json
{
    "searchType": "broken_links",
    "domain": "ahrefs.com",
    "inboundLinks": [
        {
            "urlFrom": "https://ipgeolocation.io/what-is-my-ip",
            "urlTo": "https://ahrefs.com/robot/)",
            "anchor": "http://ahrefs.com/robot/)",
            "httpCode": 404,
            "domainRating": 66,
            "title": "What is my IP Address?"
        }
    ],
    "outboundLinks": [
        { "urlFrom": "https://ahrefs.com/", "title": "Ahrefs Homepage" }
    ]
}
```

#### Output example — Keyword Ideas

```json
{
    "searchType": "keyword_ideas",
    "sourceKeyword": "seo tools",
    "country": "us",
    "searchEngine": "Google",
    "keywords": [
        { "keyword": "free seo tools", "difficulty": "Hard", "volume": "MoreThanOneThousand" },
        { "keyword": "best seo tools", "difficulty": "Medium", "volume": "MoreThanOneThousand" }
    ],
    "questions": [
        { "keyword": "what are the best seo tools", "difficulty": "Medium", "volume": "MoreThanOneThousand" }
    ]
}
```

### Advantages over competitors

| Feature | This Actor | Others |
|---|---|---|
| Website Authority (DR, backlinks, refdomains) | Yes | Yes |
| Backlinks Overview + List | Yes | Partial |
| Traffic Overview | Yes | Partial |
| Keyword Ideas | **20 engines** | Google only |
| Keyword Difficulty (KD 0-100) | Yes | Partial |
| **Keyword Metrics (volume, CPC)** | **Yes** | Rare |
| **Keyword Rank Checker** | **Yes** | No |
| SERP Overview | Yes | Partial |
| Broken Links | Yes | Partial |
| **AI Visibility (per-model breakdown)** | **Yes** | Basic or No |
| **Top Websites (1000, pagination)** | **Yes** | Top 100 or No |
| **Website Details + Competitors** | **Yes** | No |
| **Similarly Ranked Sites** | **Yes** | Rare |
| Bulk URL processing | Yes (10 parallel) | Yes |
| Built-in captcha solving | Yes | Yes |

### How it works

1. For **ahrefs.com API tools** (keyword research, backlinks, SERP, traffic, AI visibility): the Actor solves Cloudflare Turnstile captcha automatically, then calls the internal Ahrefs v4 API with TLS fingerprinting (chrome impersonation) through residential US proxies
2. For **ahrefstop.com tools** (top websites, website details, competitors): the Actor fetches and parses server-rendered HTML pages directly — no captcha needed, much faster

All captcha solving costs are included in the per-result pricing. You don't need any API keys or tokens.

### Limitations

- **Paid Apify plans only** — runs started from the free Apify plan stop immediately (captcha solving is paid for every request).
- Keyword Ideas returns difficulty and volume as labels (`Hard`/`Medium`/`Easy`, `MoreThanTenThousand`/`MoreThanOneThousand`) — not exact numbers. Use **Keyword Metrics** search type for exact values
- SERP results show full metrics (DR, UR, traffic, keywords) only for the top 3 organic positions — the `positionWithMetrics` field tells you which ones. Lower positions return title and URL only
- For some domains Ahrefs returns `backlinks: 0` and `refdomains: 0` even though Domain Rating is present. The Actor retries such responses automatically; on the largest domains (google.com, youtube.com, facebook.com) the zeros are permanent on Ahrefs' side
- Every Ahrefs API request needs a fresh anti-bot token, which adds a few seconds per result
- XML Sitemap is capped at 1,000 URLs per site by Ahrefs (`capped` and `crawledTotal` show the real crawl size)
- ahrefstop.com shows max 1000 websites per ranking (10 pages x 100)

### Having issues? Help me fix them faster

If you experience any problems, please share your run data with me so I can debug and improve the Actor:

1. Go to [Apify Security Settings](https://console.apify.com/settings/security)
2. Find **"Share run data with developers"**
3. In the **"Manage list of Actors"** section, check this Actor (or **All Actors**)
4. Save

This data is used **only for debugging** and helps me resolve issues much faster. Thank you!

### Support

Questions, bug reports, feature requests: **africanec@gmail.com**

### More scrapers by Raven

**SEO & lead generation**

- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-9FWL3X6mVI2izVfeJ-4DKlEMxqE4-26ac0cec-e6fd-4020-abbb-d4d8885f3bf1.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Semrush Scraper](https://apify.com/pro100chok/semrush-scraper)** — Domain overview, traffic, authority, backlinks
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-aqPbs3KeH9aD8b22w-7uDzdHiNaF-9358b53b-cd06-42f2-bc53-6c5ac7d9558c.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Similarweb Scraper](https://apify.com/pro100chok/similarweb-scraper)** — Website traffic, rankings, audience analytics
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-1X9ZSt3urlN5pptAO-Nyu91cUNLw-9d50dd18-fb66-400e-85c7-413263018bd8.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Website Contact Scraper](https://apify.com/pro100chok/extract-emails)** — Bulk emails, phones and socials from any site
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-w0yugQzf3ETbRbAC2-ehi6JwVR72-ae55cffc-cd6e-481f-bb22-f89a349f7287.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Google Maps Scraper](https://apify.com/pro100chok/google-maps-scraper)** — Places, emails, reviews, photos, local leads

**Social media & ads**

- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-7fyOP12UzHR5Zlnc5-j1W3HZr7l6-cba15940-85de-4f61-b150-a2401b420876.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Instagram Scraper](https://apify.com/pro100chok/instagram-scraper-all-in-one)** — Profiles, posts, followers, comments
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-JqqB6QS6amqcpfgE3-BLZ8dE1o0T-5ca2b9db-4363-49b9-839f-c0fc336567a0.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[TikTok Profile Scraper](https://apify.com/pro100chok/tiktok-profile-pro)** — Profile analytics + contacts
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-FzXXmis0AF2EYyyii-53r5wDrRmH-5ed275b8-951f-4995-a100-189ea3a131d0.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[TikTok Shop Scraper](https://apify.com/pro100chok/tiktok-shop-scraper-usage)** — Products, shops, sales analytics
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-ZgqqqOMdHEIwgTqnj-lmCG4i7xP0-76e561e2-9f4d-44a2-aa6d-922b86e2833f.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[YouTube Scraper](https://apify.com/pro100chok/youtube-scraper-all-in-one)** — Videos, transcripts, comments, channels
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-Uj3ZMPy7TF7mva0cS-8PeAb55WaO-f7a3aba8-97a5-40be-b4c0-aa0d29819722.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Reddit Scraper](https://apify.com/pro100chok/reddit-scraper-all-in-one)** — Posts, comments, users, subreddits
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-ghOKnIbTDC0SWZw8d-u6S7UJLN3o-Gemini_Generated_Image_67uo2167uo2167uo.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Threads Scraper](https://apify.com/pro100chok/threads-scraper-usage)** — Posts, profiles and replies, no login
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-whxpPO8sOs8OF6dd0-3xUlLeWRav-92d40d46-7a32-4031-bf05-04b3338d5b30.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Pinterest Scraper](https://apify.com/pro100chok/pinterest-scraper-all-in-one)** — Pins, profiles and boards
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-Z01iuGOkBqJUvTaUn-xpWgbgKXLn-8ae33b0d-b338-4184-a1cd-2565a3f82a98.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Facebook Ads Library Scraper](https://apify.com/pro100chok/meta-ads-library-scraper)** — Meta & Instagram ad spy

**Reviews & company data**

- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-lFLILoeJarJWgpyfA-7BP7SUkgSm-50326886-1a52-4c64-bd8d-be2556872aa9.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Trustpilot Scraper](https://apify.com/pro100chok/trustpilot-all-in-one-scraper)** — Reviews, company data, TrustScore
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-Jwxb2NnpjBqbwi3JH-4dKwhMiZZZ-5d4c5e15-276d-4891-af28-db4e69ee7c77.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[G2 Scraper](https://apify.com/pro100chok/g2-scraper)** — Reviews, products, ratings, competitors
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-caoIAzJRQpPYIg12M-tRWDnGB6Xs-7d9d7a8f-dbff-412c-b8ee-789318d445f2.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[TripAdvisor Scraper](https://apify.com/pro100chok/tripadvisor-all-in-one)** — Hotels, restaurants, reviews

**E-commerce**

- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-kaoNl8Aod80TyV1eZ-HMK8j1Pfit-6e72a428-ec01-4d5e-b2fa-80fc6313a008.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Amazon Scraper](https://apify.com/pro100chok/amazon-scraper)** — Products, reviews, sellers, best sellers
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-mBQQG1GlbZlkcetR5-eMoPkpmd5b-71e03f8b-8565-41c8-8fc8-fe73a3dd6f12.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[AliExpress Scraper](https://apify.com/pro100chok/aliexpress-scraper)** — Products, variants, reviews, sellers
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-BVortsfndmSNtL0Mq-dikv6hX55m-4b204a93-b28c-4951-aa28-d72b1650900c.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Alibaba Scraper](https://apify.com/pro100chok/alibaba-scraper)** — Products, suppliers, prices, reviews

**Real estate & travel**

- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-Z8DnUeXHDZ8h3bwz5-GDpI3VmWWb-a7fb663b-39ca-4e6b-a8aa-579b94bee1b1.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Zillow Scraper](https://apify.com/pro100chok/zillow-scraper-all-in-one)** — Listings and agent leads
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-vness86lujcu7VTrh-auosYMY7dG-d2bc6ff1-0fba-4ff7-850b-ad33072e09f0.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Realtor.com Scraper](https://apify.com/pro100chok/realtor-com-scraper)** — Listings, details, agents, reviews
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-2bXBHs5BF7iBki2rV-8EhrRpAVWj-c84534b4-ba6f-4d40-8d93-801e9658109b.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Apartments.com Scraper](https://apify.com/pro100chok/apartments-scraper-usage)** — Rentals, prices, reviews
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-Z2kaPRD9dlPAfA95f-87i0TUrkQC-cb5e7474-9c72-45e9-ad20-1c1140238495.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Idealista Scraper](https://apify.com/pro100chok/idealista-scraper)** — Properties, prices, agency contacts
- <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/2nh2cdeW87EFLjZmA-actor-ndx8v7vE2UZLdaPh3-NC4fnRCqgk-da7cb5e3-a110-4774-9f5a-0672d4a60ccf.png" width="16" height="16" style="vertical-align:middle;border-radius:3px"> **[Booking.com Scraper](https://apify.com/pro100chok/booking-all-in-one-scraper)** — Hotels, prices, reviews, contacts

### 🏷️ Tags

Ahrefs Scraper, Ahrefs API, Ahrefs Data Extractor, SEO Tools Scraper, Keyword Research Tool, Backlink Checker, Domain Rating Checker, Ahrefs Rank Tracker, SERP Analysis, Website Traffic Estimator, AI Visibility Tracker, Top Websites Ranking, Keyword Difficulty Checker, Keyword Metrics Extractor, CPC Data, Search Volume Extractor, Ahrefs Free Tools, SEO Data Extraction, Competitor Analysis SEO, Website Authority Checker, Broken Links Finder, Keyword Ideas Generator, Organic Keywords, Referring Domains Counter, How to Scrape Ahrefs, Extract Ahrefs Data, Keyword Rank Checker, Web Scraping, Digital Marketing Analytics, SEO Research Automation

# Changelog

This Actor's version history is a separate document: https://apify.com/pro100chok/ahrefs-seo-tools/changelog.md

# Actor input Schema

## `searchType` (type: `string`):

Select what data to extract. Open the matching section below to configure parameters.

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

For Search Type: Website Authority, Backlinks Overview, Backlinks List, Broken Links, Traffic Overview, AI Visibility, AI Mode Tracker, AI Overviews Tracker, XML Sitemap, Website Details, or Keyword Rank Checker. Enter one or more domains/URLs to analyze. Supports bulk processing.

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

For Search Type: Keyword Ideas, Keyword Difficulty, Keyword Metrics, Keyword Rank Checker, SERP Overview, or AI Visibility. Enter a keyword or phrase to research.

## `topWebsitesLimit` (type: `integer`):

For Search Type: Top Websites. Maximum number of websites to return (max 1000).

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

How to analyze the URL. <b>Exact</b> = single page, <b>Subdomains</b> = include subdomains, <b>Prefix</b> = all pages with this prefix, <b>Domain</b> = entire domain.

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

ISO 2-letter country code for keyword research (e.g. us, gb, de, fr).

## `searchEngine` (type: `string`):

Search engine for <b>Keyword Ideas</b> only. Includes AI engines (ChatGPT, Gemini, Perplexity).

## `topWebsitesMode` (type: `string`):

Select ranking (by Ahrefs rank) or trending (fastest growing).

## `topWebsitesCountry` (type: `string`):

Filter by country (e.g. 'united-states', 'germany'). Use 'worldwide' for all.

## `topWebsitesCategory` (type: `string`):

Filter by website category.

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

Scrape each website's detail page for full data (traffic, keywords, competitors, backlinks). Slower but more data.

## `maxRetries` (type: `integer`):

Maximum retry attempts for connection errors.

## Actor input object example

```json
{
  "searchType": "website_authority",
  "urls": [
    "ahrefs.com"
  ],
  "keyword": "seo tools",
  "topWebsitesLimit": 100,
  "mode": "subdomains",
  "country": "us",
  "searchEngine": "Google",
  "topWebsitesMode": "ranking",
  "topWebsitesCountry": "worldwide",
  "topWebsitesCategory": "all",
  "includeDetails": false,
  "maxRetries": 5
}
```

# Actor output Schema

## `dataset` (type: `string`):

All extracted SEO data: authority, backlinks, keywords, traffic, SERP, AI visibility, top websites, competitors

# 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 = {
    "urls": [
        "ahrefs.com"
    ],
    "keyword": "seo tools",
    "country": "us"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pro100chok/ahrefs-seo-tools").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 = {
    "urls": ["ahrefs.com"],
    "keyword": "seo tools",
    "country": "us",
}

# Run the Actor and wait for it to finish
run = client.actor("pro100chok/ahrefs-seo-tools").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 '{
  "urls": [
    "ahrefs.com"
  ],
  "keyword": "seo tools",
  "country": "us"
}' |
apify call pro100chok/ahrefs-seo-tools --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pro100chok/ahrefs-seo-tools"
        }
    }
}
```

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/pC8gsptNv2RwJm0QE/builds/XpiDXlhxLvbWQRwhX/openapi.json
