Skip to main content

Rank::Ahrefs::TrafficChecker - Ahrefs Website Traffic Checker Scraper

img

Scraper overview​

Rank::Ahrefs::TrafficCheckerRank::Ahrefs::TrafficChecker – this scraper retrieves traffic volume, unique visitors, and page views for a domain, traffic history for the last six months, traffic sources, as well as top pages and the top 5 countries with the most traffic.

Data is collected from the page https://ahrefs.com/traffic-checker.

To operate, it requires a connection to the Util::TurnstileUtil::Turnstile recaptcha solving service.

Collected data​

  • Traffic volume ($traffic)
  • Number of unique visitors ($unique_visitors) and page views ($page_views)
  • Traffic history for the last 6 months ($history: date and number of visits)
  • Traffic sources ($channels)
  • Top pages with the most traffic ($top_pages: link and title)
  • Top 5 countries with the most traffic ($countries)
note

The scraper no longer collects traffic cost ($cost) and keywords ($keywords): Ahrefs has stopped providing this data. The share of countries in traffic (share) is also no longer provided.

what data the Rank::Ahrefs::TrafficChecker scraper collects

Capabilities​

  • Automatic proxy handling
  • Choice of request type

Use cases​

  • Estimating website traffic and/or its dynamics
  • Identifying pages that account for the most traffic
  • Identifying countries with the most traffic
  • Analyzing traffic sources

Queries​

You must specify domains as queries, for example:

yep.com
a-parser.com

Output results examples​

A-Parser supports flexible results formatting thanks to the built-in Template Toolkit, which allows it to output results in any form, as well as in structured formats like CSV or JSON.

Outputting traffic volume, visitors, and views​

Result format:

$query: $traffic, $unique_visitors, $page_views\n

As a result, the traffic volume, unique visitors, and page views will be output for each domain.

Outputting traffic history​

Result format:

$query\n$history.format('$date: $visits\n')\n

Result example:

a-parser.com
2026-05-01: 21584.16415318871
2026-06-01: 14861.655186676724
2026-07-01: 16661.2274005702
2026-08-01: 17834.23395252694
2026-09-01: 32311.823078020858
2026-10-01: 11439.56136240091

Outputting top 5 countries to a CSV table​

The built-in utility $tools.CSVLine allows creating correct tabular documents ready for import into Excel or Google Sheets.

Result format:

[% FOREACH item IN countries;
tools.CSVline(query, item.country);
END %]

File name:

$datefile.format().csv

Initial text:

Domain,Country

Result example:

Domain,Country
a-parser.com,us
a-parser.com,ru
a-parser.com,ua
a-parser.com,de
a-parser.com,gb
Download example

How to import example to A-Parser

eNp9VE1v2zAM/SsG0QIt4AXrYRfv5LoN1iGLuzTZJQkKwaZTLbKkSnK2wMh/L2U7
dtIOu5nke+Tjh1yDY3ZrHw1adBaiZQ26+YYIcixYJRyEoJmxaHx4CTMmt1EUvxgs
bBTNDSsKniUvmG3RELQn1eD2GimN2qExPEcK8pzshePieV4ZaekDn7tyIeyYqPCk
7GG9DoGC9G3HypTMa1peBuN0dh8n3wLusAwepoG+GWWqks5wtF9XMggCp5Swo+Tp
l+ASr14rNPuwgXfA/TXh7qd3weUa+hJPbIdzRSUKUjW4x2RNWemFXeTMoY+OikbO
1fUoszuCsjznjivJRKvTD2rQvpD8tWlMKsJ6NSR0bFRJLod/XefcH3tcwkVjA6Wo
Gu7PlgNRwYTFECxJHTMSkr+PUJOGOWVS7fWQvwYlYyEmuEMxwJr8txUXOW01Loj0
0BH/DUk/5Dj07Z2Wok3/MaShz9JYt+mPgZWridochyF4yR3ZNvF7Ie9ncm4RdT+z
qYeVymBfxpkK++J0txqlv6o7VTIuw6Rd8EoOG4x1B4F3XZ1t6dyZKVnwTdpd7hFZ
yTk9llQmqtQCfZuyEoK2ZHE2XEtsu614o5/EB3LSlDh7Zs3dfn9qpWrD6Rq/eIEl
Dfa0apcyY0IsZpPTCAwXRsYeNV18uZLsU/uCvQWe6HCj6MKorcO6f979T6D+/yOP
6gMt8rd9bGm+TU8iH83L0pYgujm8AQRDiTA=
tip

In the Result format, the Template Toolkit is used to output the $countries array in a FOREACH loop.

In the results filename, you simply need to change the file extension to csv.

To make the "Prepend text" option available in the Task Editor, you need to activate "More options". In "Prepend text", write the column names separated by commas and make the second line empty.

Possible settings​

ParameterDefault valueDescription
Util::Turnstile presetdefaultSelection of Util::TurnstileUtil::Turnstile preset for bypassing captchas. You must first configure the Util::TurnstileUtil::Turnstile scraper - specify your access key and other parameters, then select the created preset here.
Turnstile pass proxy☐Passing proxy to the solving service. More details.
ModeSubdomainsChoice of request type
Do not search for sitekey☑Experimental option, disables searching for the captcha sitekey, which in turn speeds up the task start. In case of problems like an invalid sitekey, this option should be disabled.
Additional headersAbility to specify custom request headers