target | string | Yes | - | The domain, subdomain, subfolder or URL to list referring domains 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). |
history | string or SelectableOption | No | all_time | ’live’ counts only currently live backlinks; ‘all_time’ also includes lost ones. Ignored when since_date is set. |
since_date | string | No | - | Include backlinks lost since this date (YYYY-MM-DD) in addition to live ones. Overrides history. |
metrics | array of string or SelectableOption | No | - | Columns to return (domain is always included). Available: domain_rating, links_to_target, dofollow_links, new_links, lost_links, first_seen, last_seen, is_spam, is_root_domain, ip_source, traffic_domain, positions_source_domain, dofollow_refdomains, dofollow_linked_domains. Ahrefs API unit cost per row: traffic_domain costs 10 units, dofollow_refdomains 5, the rest 1. Defaults to domain_rating, links_to_target, dofollow_links, first_seen, last_seen, is_spam. |
filters | array of FilterItem | No | - | Filters on the available columns, e.g. domain_rating GREATER_THAN 50 or is_spam EQUALS false. Filter fields count towards the unit cost per row. |
orders | array of OrderItem | No | - | Sort by one or more columns. |
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). |