keywords | array of string or string | Yes | - | Seed keywords to generate ideas from. Accepts a list or a newline/comma-separated string. |
country | string or SelectableOption | No | us | Two-letter country code for search volume and SERP data (e.g. us, gb, de). Defaults to us. |
idea_source | string or SelectableOption | No | matching_terms | Which Keywords Explorer ideas report to use: ‘matching_terms’ (keywords containing the seed words), ‘related_terms’ (keywords the top-ranking pages also rank for or talk about), or ‘search_suggestions’ (autocomplete suggestions). |
questions_only | boolean | No | False | Return only keyword ideas phrased as questions. Applies to matching_terms only. |
match_mode | string or SelectableOption | No | terms | ’terms’ matches the seed words in any order, ‘phrase’ matches them in the exact order. Applies to matching_terms only. |
related_terms_type | string or SelectableOption | No | all | ’also_rank_for’ (keywords the top pages also rank for), ‘also_talk_about’ (keywords frequently mentioned in the top pages), or ‘all’. Applies to related_terms only. |
view_for | string or SelectableOption | No | top_10 | Derive related terms from the top 10 or top 100 ranking pages. Applies to related_terms only. |
metrics | array of string or SelectableOption | No | - | Metrics to return (keyword is always included). Available: volume, volume_monthly, global_volume, difficulty, cpc (USD), cps, traffic_potential, intents, parent_topic, serp_features, serp_last_update, first_seen, volume_desktop_pct, volume_mobile_pct. Ahrefs API unit cost per row: volume, volume_monthly, global_volume, difficulty, traffic_potential and intents cost 10 units each, the rest 1. Defaults to volume, difficulty, cpc, parent_topic. |
filters | array of FilterItem | No | - | Filters on the available metrics, e.g. volume GREATER_THAN 500 or keyword CONTAINS ‘best’ (volume_monthly and intents cannot be filtered on). Filter fields count towards the unit cost per row. |
orders | array of OrderItem | No | - | Sort by one or more metrics (volume_monthly is not sortable). |
limit | integer | No | 100 | Maximum number of ideas to return. Defaults to 100. Your Ahrefs plan caps rows per request (Lite 100, Standard 250, Advanced 500). |