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). |
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), and AI citation counts ai_responses_chatgpt, ai_responses_google_ai_overviews, ai_responses_google_ai_mode, ai_responses_gemini, ai_responses_perplexity, ai_responses_copilot, ai_responses_grok (require Brand Radar access on the Ahrefs plan). Ahrefs API unit cost per row: sum_traffic, sum_traffic_prev, value, value_prev, top_keyword_volume and each ai_responses_* field cost 10 units, referring_domains 5, the rest 1. Defaults to keywords, sum_traffic, value, top_keyword, top_keyword_best_position, ur, referring_domains. |