target | string | Yes | - | The domain, subdomain, subfolder or URL to list paid search landing pages for (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). |
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, ads_count, ads_count_prev, ads_count_diff, sum_traffic, sum_traffic_prev, traffic_diff, value (USD), value_prev, value_diff, top_keyword, top_keyword_volume, top_keyword_best_position, top_keyword_country, ur, referring_domains, status (needs date_compared). 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, ads_count, sum_traffic, value, top_keyword, top_keyword_best_position, ur. |
filters | array of FilterItem | No | - | Filters on the available metrics, e.g. ads_count GREATER_THAN 1 or url CONTAINS ‘/landing/’. 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). |