API Key*
••••••••
Target Domain*
example.com
Date
YYYY-MM-DD (defaults to today)
Domain Rating (ahrefs_domain_rating)
Get the Domain Rating (DR) and Ahrefs Rank for a target domain. Domain Rating shows the strength of a website
Input
Parameter Type Required Description targetstring Yes The target domain to analyze (e.g., example.com) datestring No Date for historical data in YYYY-MM-DD format (defaults to today) apiKeystring Yes Ahrefs API Key
Output
Parameter Type Description domainRatingnumber Domain Rating score (0-100)
API Key*
••••••••
Target Domain/URL*
example.com or https://example.com/page
Date
YYYY-MM-DD (defaults to today)
Backlinks (ahrefs_backlinks)
Get a list of backlinks pointing to a target domain or URL. Returns details about each backlink including source URL, anchor text, and domain rating.
Input
Parameter Type Required Description targetstring Yes The target domain or URL to analyze modestring No Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains), exact (exact URL match) datestring No Date for historical data in YYYY-MM-DD format (defaults to today) limitnumber No Maximum number of results to return (default: 100) offsetnumber No Number of results to skip for pagination apiKeystring Yes Ahrefs API Key
Output
Parameter Type Description urlFromstring The URL of the page containing the backlink urlTostring The URL being linked to anchorstring The anchor text of the link domainRatingSourcenumber Domain Rating of the linking domain isDofollowboolean Whether the link is dofollow firstSeenstring When the backlink was first discovered
API Key*
••••••••
Target Domain/URL*
example.com
Date
YYYY-MM-DD (defaults to today)
Backlinks Stats (ahrefs_backlinks_stats)
Get backlink statistics for a target domain or URL. Returns totals for different backlink types including dofollow, nofollow, text, image, and redirect links.
Input
Parameter Type Required Description targetstring Yes The target domain or URL to analyze modestring No Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains), exact (exact URL match) datestring No Date for historical data in YYYY-MM-DD format (defaults to today) apiKeystring Yes Ahrefs API Key
Output
Parameter Type Description totalnumber Total number of live backlinks dofollownumber Number of dofollow backlinks nofollownumber Number of nofollow backlinks textnumber Number of text backlinks imagenumber Number of image backlinks
API Key*
••••••••
Target Domain/URL*
example.com
Date
YYYY-MM-DD (defaults to today)
Referring Domains (ahrefs_referring_domains)
Get a list of domains that link to a target domain or URL. Returns unique referring domains with their domain rating, backlink counts, and discovery dates.
Input
Parameter Type Required Description targetstring Yes The target domain or URL to analyze modestring No Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains), exact (exact URL match) datestring No Date for historical data in YYYY-MM-DD format (defaults to today) limitnumber No Maximum number of results to return (default: 100) offsetnumber No Number of results to skip for pagination apiKeystring Yes Ahrefs API Key
Output
Parameter Type Description domainstring The referring domain domainRatingnumber Domain Rating of the referring domain backlinksnumber Total number of backlinks from this domain dofollowBacklinksnumber Number of dofollow backlinks from this domain firstSeenstring When the domain was first seen linking
API Key*
••••••••
Target Domain/URL*
example.com
Date
YYYY-MM-DD (defaults to today)
Organic Keywords (ahrefs_organic_keywords)
Get organic keywords that a target domain or URL ranks for in Google search results. Returns keyword details including search volume, ranking position, and estimated traffic.
Input
Parameter Type Required Description targetstring Yes The target domain or URL to analyze countrystring No Country code for search results (e.g., us, gb, de). Default: us modestring No Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains), exact (exact URL match) datestring No Date for historical data in YYYY-MM-DD format (defaults to today) limitnumber No Maximum number of results to return (default: 100) offsetnumber No Number of results to skip for pagination apiKeystring Yes Ahrefs API Key
Output
Parameter Type Description keywordstring The keyword volumenumber Monthly search volume positionnumber Current ranking position urlstring The URL that ranks for this keyword trafficnumber Estimated monthly organic traffic
API Key*
••••••••
Target Domain*
example.com
Date
YYYY-MM-DD (defaults to today)
Top Pages (ahrefs_top_pages)
Get the top pages of a target domain sorted by organic traffic. Returns page URLs with their traffic, keyword counts, and estimated traffic value.
Input
Parameter Type Required Description targetstring Yes The target domain to analyze countrystring No Country code for traffic data (e.g., us, gb, de). Default: us modestring No Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains) datestring No Date for historical data in YYYY-MM-DD format (defaults to today) limitnumber No Maximum number of results to return (default: 100) offsetnumber No Number of results to skip for pagination selectstring No Comma-separated list of fields to return (e.g., url,traffic,keywords,top_keyword,value). Default: url,traffic,keywords,top_keyword,value apiKeystring Yes Ahrefs API Key
Output
Parameter Type Description urlstring The page URL trafficnumber Estimated monthly organic traffic keywordsnumber Number of keywords the page ranks for topKeywordstring The top keyword driving traffic to this page
API Key*
••••••••
Keyword*
Enter keyword to analyze
Keyword Overview (ahrefs_keyword_overview)
Get detailed metrics for a keyword including search volume, keyword difficulty, CPC, clicks, and traffic potential.
Input
Parameter Type Required Description keywordstring Yes The keyword to analyze countrystring No Country code for keyword data (e.g., us, gb, de). Default: us apiKeystring Yes Ahrefs API Key
Output
Parameter Type Description keywordstring The analyzed keyword searchVolumenumber Monthly search volume keywordDifficultynumber Keyword difficulty score (0-100) cpcnumber Cost per click in USD clicksnumber Estimated clicks per month clicksPercentagenumber Percentage of searches that result in clicks parentTopicstring The parent topic for this keyword
API Key*
••••••••
Target Domain/URL*
example.com
Date
YYYY-MM-DD (defaults to today)
Broken Backlinks (ahrefs_broken_backlinks)
Get a list of broken backlinks pointing to a target domain or URL. Useful for identifying link reclamation opportunities.
Input
Parameter Type Required Description targetstring Yes The target domain or URL to analyze modestring No Analysis mode: domain (entire domain), prefix (URL prefix), subdomains (include all subdomains), exact (exact URL match) datestring No Date for historical data in YYYY-MM-DD format (defaults to today) limitnumber No Maximum number of results to return (default: 100) offsetnumber No Number of results to skip for pagination apiKeystring Yes Ahrefs API Key
Output
Parameter Type Description urlFromstring The URL of the page containing the broken link urlTostring The broken URL being linked to httpCodenumber HTTP status code (e.g., 404, 410) anchorstring The anchor text of the link
Integrate Ahrefs SEO tools into your workflow. Analyze domain ratings, backlinks, organic keywords, top pages, and more. Requires an Ahrefs Enterprise plan with API access.
Category: tools
Type: ahrefs