target | string | Yes | - | The domain, subdomain, subfolder or URL to list top organic pages for (e.g. example.com, example.com/blog/). |
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). |
country | string or SelectableOption | No | - | Two-letter country code (e.g. us, gb, de) to restrict results to one country. Leave empty for all countries. |
date | string | No | - | Report date in YYYY-MM-DD format. Defaults to today (latest data). |
date_compared | string | No | - | Optional earlier date in YYYY-MM-DD format to compare against; enables the *_prev and *_diff metrics. |
metrics | array of string or SelectableOption | No | - | Metrics to return (url is always included). Available: keywords, keywords_prev, keywords_diff, keywords_diff_percent, sum_traffic, sum_traffic_prev, traffic_diff, traffic_diff_percent, value (USD), value_prev, value_diff, value_diff_percent, top_keyword, top_keyword_volume, top_keyword_best_position, top_keyword_country, ur, referring_domains, page_type, status (needs date_compared). For AI citation counts per page use ahrefs_get_domain_overview with the page URLs as targets, mode ‘exact’ and include_ai_citations. Ahrefs API unit cost per row: sum_traffic, sum_traffic_prev, value, value_prev and top_keyword_volume cost 10 units, referring_domains 5, the rest 1. Defaults to keywords, sum_traffic, value, top_keyword, top_keyword_best_position, ur, referring_domains. |
filters | array of FilterItem | No | - | Filters on the available metrics, e.g. sum_traffic GREATER_THAN 100 or url CONTAINS ‘/blog/’. Filter fields count towards the unit cost per row. |
orders | array of OrderItem | No | - | Sort by one or more metrics. |
limit | integer | No | 100 | Maximum number of rows to return. Defaults to 100. Your Ahrefs plan caps rows per request (Lite 100, Standard 250, Advanced 500). |