target | string | Yes | - | The domain, subdomain or subfolder whose pages to rank by inbound links (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). |
report | string or SelectableOption | No | backlinks | ’backlinks’ (default): pages ranked by external backlinks and referring domains. ‘internal_links’: pages ranked by internal links. |
history | string or SelectableOption | No | all_time | Backlinks report only: ‘live’ counts only live links, ‘all_time’ also includes lost ones. Ignored when since_date is set. |
since_date | string | No | - | Backlinks report only: include links lost since this date (YYYY-MM-DD). Overrides history. |
metrics | array of string or SelectableOption | No | - | Fields to return (url_to is always included). Both reports: title_target, url_rating_target, links_to_target, dofollow_to_target, nofollow_to_target, redirects_to_target, first_seen_link, last_seen, last_visited_target, http_code_target, target_redirect, languages_target, powered_by_target. Backlinks report only: refdomains_target (5 units), top_domain_rating_source, new_links_to_target, lost_links_to_target, is_spam. Internal links report only: canonical_to_target. Defaults to title_target, url_rating_target, links_to_target, dofollow_to_target, refdomains_target (backlinks) or canonical_to_target (internal links), http_code_target. |
filters | array of FilterItem | No | - | Filters on the report’s fields, e.g. links_to_target GREATER_THAN 10 or url_to CONTAINS ‘/blog/’. |
orders | array of OrderItem | No | - | Sort by one field (http_code_target, languages_target, last_visited_target, powered_by_target, target_redirect and title_target are not sortable). |
limit | integer | No | 100 | Maximum number of pages to return. Defaults to 100. Your Ahrefs plan caps rows per request (Lite 100, Standard 250, Advanced 500). |