Skip to content

ahrefs.com Traffic by Country API

Monthly organic search traffic of a website by country, with its worldwide rank and total monthly traffic.

GEThttps://api.maviapi.com/v1/sites/ahrefs/traffic_by_country5 credits per call

Parameters

NameRequiredExampleDescription
domainstring in queryOptionaltrendyol.comwebsite domain without scheme or www, e.g. trendyol.com

Response fields

domainstringe.g."trendyol.com"
monthstringe.g."November 2026"
worldwide_rankintegere.g.54
total_trafficintegere.g.70000000
countriesobject[]4 fields
country_codestringe.g."TR"
countrystringe.g."Turkey"
trafficintegere.g.67400000
sharenumbere.g.0.962
paginationobject3 fields
countintegere.g.5
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-12-02T09:00:27.213Z"
ageintegere.g.0

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
curl 'https://api.maviapi.com/v1/sites/ahrefs/traffic_by_country' \
  -H "Authorization: Bearer $MAVI_KEY"

ahrefs.com Traffic by Country API questions

What you get, what it costs and how to call it.

What does the ahrefs.com Traffic by Country API return?

Monthly organic search traffic of a website by country, with its worldwide rank and total monthly traffic. The response has domain, month, worldwide_rank, total_traffic, countries, pagination, fetched_at and age.

Which parameters does the ahrefs.com Traffic by Country API take?

Every parameter of GET /traffic_by_country is optional. You can pass domain.

How much does one ahrefs.com Traffic by Country API call cost?

One successful call costs 5 credits. A failed call costs nothing. On the Basic plan ($19 a month for 25,000 credits), 1,000 calls cost about $3.80. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.

How do I call the ahrefs.com Traffic by Country API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/ahrefs/traffic_by_country with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.

Is the ahrefs.com Traffic by Country API official?

No. It is an independent, hosted API from maviapi for the public data on ahrefs.com, and it is not made, endorsed or supported by ahrefs.com. Its parameters and response fields are documented on this page.