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 (keyword is always included). Available: best_position, best_position_prev, best_position_diff, best_position_url, best_position_kind, best_position_has_thumbnail, best_position_has_video, volume, volume_prev, keyword_difficulty, cpc (USD), sum_traffic, sum_traffic_prev, sum_paid_traffic, serp_features, serp_features_count, is_branded, is_commercial, is_informational, is_local, is_navigational, is_transactional, words, language, keyword_country, last_update, status (needs date_compared), all_positions, entities, serp_target_positions_count, volume_desktop_pct, volume_mobile_pct. Ahrefs API unit cost per row: volume, volume_prev, keyword_difficulty, sum_traffic, sum_traffic_prev and sum_paid_traffic cost 10 units each, all_positions 5, the rest 1. Defaults to best_position, best_position_url, volume, keyword_difficulty, cpc, sum_traffic, serp_features. |