target | string | Yes | - | The domain, subdomain, subfolder or URL to break down by country (e.g. example.com). |
mode | string or SelectableOption | No | subdomains | How to interpret the target: ‘subdomains’ (domain and all subdomains, default), ‘domain’ (the exact host only), ‘prefix’ (every URL starting with the target), or ‘exact’ (the exact URL only). |
date | string | No | - | Report date in YYYY-MM-DD format. Defaults to today (latest data). |
metrics | array of string or SelectableOption | No | - | Metrics to return per country (country is always included). Available: org_keywords, org_keywords_1_3, org_traffic, org_cost (USD), paid_keywords, paid_pages, paid_traffic, paid_cost (USD). Ahrefs API unit cost per row: org_traffic, org_cost, paid_traffic and paid_cost cost 10 units each, the rest 1. Defaults to all of them. |
limit | integer | No | - | Maximum number of countries to return, ordered by organic traffic. Leave empty for all countries with data. |