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's backlink profile on a scale from 0 to 100.
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) ahrefsRanknumber Ahrefs Rank - global ranking based on backlink profile strength
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 backlinksarray List of backlinks pointing to the target
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 statsobject Backlink statistics summary
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 referringDomainsarray List of domains linking to the target
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 keywordsarray List of organic keywords the target ranks for
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 pagesarray List of top pages by organic traffic
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 overviewobject Keyword metrics overview
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 brokenBacklinksarray List of broken backlinks
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