Ahrefs API
Backlinks, Domain authority, Keyword research and 5 more capabilities. 20 documented operations.
API capabilities
8 tasks covered in the catalog.
Documented operations
Provider routes and credentials are separate from All Them APIs.
BacklinksGET /v3/site-explorer/all-backlinks
- Inputs
- target, select "url_from"; where, order_by, limit, timeout, aggregation, history, mode, portfolio_id, protocol
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
source URL
Backlinks, fullBacklinksGET /v3/site-explorer/all-backlinks
- Inputs
- target, select "url_from,ahrefs_rank_source,ahrefs_rank_target,alt,anchor,broken_redirect_new_target,broken_redirect_reason,broken_redirect_source,class_c,discovered_status,domain_rating_source,domain_rating_target,drop_reason,encoding,first_seen,first_seen_link,http_code,http_crawl,ip_source,is_alternate,is_canonical,is_content,is_dofollow,is_form,is_frame,is_image,is_lost,is_new,is_nofollow,is_redirect,is_redirect_lost,is_root_source,is_root_target,is_rss,is_spam,is_sponsored,is_text,is_ugc,js
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
source URLAhrefs rank sourceAhrefs rank targetaltanchor textbroken redirect new targetbroken redirect reasonbroken redirect sourceclass cdiscovered statussource domain ratingdomain rating targetdrop reasonencodingfirst seenfirst seen linkHTTP codeHTTP crawlIP sourceis alternateis canonicalis contentis dofollowis form
Backlinks statsDomain authorityGET /v3/site-explorer/backlinks-stats
- Inputs
- target, date; mode, portfolio_id, protocol
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
live backlinksall-time backlinkslive referring domainsall-time referring domains
Batch analysisDomain authorityPOST /v3/batch-analysis/batch-analysis
- Inputs
- targets[].url, targets[].mode, targets[].protocol, select "domain_rating", Content-Type header "application/json"; order_by, volume_mode, country, top_countries
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
domain rating
Batch analysis, fullDomain authorityPOST /v3/batch-analysis/batch-analysis
- Inputs
- targets[].url, targets[].mode, targets[].protocol, select "domain_rating,ahrefs_rank,backlinks,backlinks_dofollow,backlinks_internal,backlinks_nofollow,backlinks_redirect,index,ip,linked_domains,linked_domains_dofollow,mode,org_cost,org_keywords,org_keywords_1_3,org_keywords_4_10,org_keywords_11_20,org_keywords_21_50,org_keywords_51_plus,org_traffic,outgoing_links,outgoing_links_dofollow,paid_ads,paid_cost,paid_keywords,paid_traffic,protocol,refdomains,refdomains_dofollow,refdomains_nofollow,ref
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
domain ratingAhrefs rankbacklinksdofollow backlinksinternal backlinksnofollow backlinksredirect backlinkstarget indexIP addresslinked domainsdofollow linked domainsmodeorganic traffic valueorganic keywordsorganic keywords in positions 1 to 3organic keywords in positions 4 to 10organic keywords in positions 11 to 20organic keywords in positions 21 to 50organic keywords in position 51 or lowerorganic trafficoutgoing linksdofollow outgoing linkspaid adspaid traffic cost
Domain ratingDomain authorityGET /v3/site-explorer/domain-rating
- Inputs
- target, date
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
domain ratingAhrefs rank
OverviewKeyword researchGET /v3/keywords-explorer/overview
- Inputs
- country, select "keyword"; where, order_by, limit, timeout, keyword_list_id, keywords, target_position, target, mode, volume_monthly_date_from, volume_monthly_date_to
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
keyword
Overview, fullKeyword researchGET /v3/keywords-explorer/overview
- Inputs
- country, select "keyword,clicks,cpc,cps,difficulty,first_seen,global_volume,intents,parent_topic,parent_volume,searches_pct_clicks_organic_and_paid,searches_pct_clicks_organic_only,searches_pct_clicks_paid_only,serp_features,serp_last_update,traffic_potential,volume,volume_desktop_pct,volume_mobile_pct,volume_monthly"; where, order_by, limit, timeout, keyword_list_id, keywords, target_position, target, mode, volume_monthly_date_from, volume_monthly_date_to
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
keywordclickscost per clickclicks per searchkeyword difficultyfirst seenglobal search volumesearch intentsparent topicparent volumesearches percentage clicks organic and paidsearches percentage clicks organic onlysearches percentage clicks paid onlySERP featuresSERP updated attraffic potentialsearch volumedesktop volume percentagemobile volume percentagemonthly search volume
Organic keywordsRanked keywordsGET /v3/site-explorer/organic-keywords
- Inputs
- target, date, select "keyword"; where, order_by, limit, timeout, volume_mode, traffic_mode, date_compared, country, mode, portfolio_id, protocol
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
keyword
Organic keywords, fullRanked keywordsGET /v3/site-explorer/organic-keywords
- Inputs
- target, date, select "keyword,all_positions,all_positions_prev,best_position,best_position_diff,best_position_has_thumbnail,best_position_has_thumbnail_prev,best_position_has_video,best_position_has_video_prev,best_position_kind,best_position_kind_merged,best_position_kind_prev,best_position_prev,best_position_set,best_position_set_prev,best_position_url,best_position_url_prev,cpc,cpc_merged,cpc_prev,entities,is_best_position_set_top_3,is_best_position_set_top_3_prev,is_best_position_set_top_4_1
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
keywordall positionsall positions on comparison datebest positionbest position changebest position has thumbnailbest position has thumbnail on comparison datebest position has videobest position has video on comparison datebest position kindbest position kind mergedbest position kind on comparison datebest position on comparison datebest position setbest position set on comparison datebest position URLbest position URL on comparison datecost per clickcost per click mergedcost per click on comparison dateentitiesis best position set top 3is best position set top 3 on comparison dateis best position set top 4 10
Matching termsRelated keywordsGET /v3/keywords-explorer/matching-terms
- Inputs
- country, select "keyword"; where, order_by, limit, timeout, keyword_list_id, keywords, terms, match_mode
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
keyword
Matching terms, fullRelated keywordsGET /v3/keywords-explorer/matching-terms
- Inputs
- country, select "keyword,cpc,cps,difficulty,first_seen,global_volume,intents,parent_topic,serp_features,serp_last_update,traffic_potential,volume,volume_desktop_pct,volume_mobile_pct,volume_monthly"; where, order_by, limit, timeout, keyword_list_id, keywords, terms, match_mode
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
keywordcost per clickclicks per searchkeyword difficultyfirst seenglobal search volumesearch intentsparent topicSERP featuresSERP updated attraffic potentialsearch volumedesktop volume percentagemobile volume percentagemonthly search volume
Related termsRelated keywordsGET /v3/keywords-explorer/related-terms
- Inputs
- country, select "keyword"; where, order_by, limit, timeout, keyword_list_id, keywords, terms, view_for
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
keyword
Related terms, fullRelated keywordsGET /v3/keywords-explorer/related-terms
- Inputs
- country, select "keyword,cpc,cps,difficulty,first_seen,global_volume,intents,parent_topic,serp_features,serp_last_update,traffic_potential,volume,volume_desktop_pct,volume_mobile_pct,volume_monthly"; where, order_by, limit, timeout, keyword_list_id, keywords, terms, view_for
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
keywordcost per clickclicks per searchkeyword difficultyfirst seenglobal search volumesearch intentsparent topicSERP featuresSERP updated attraffic potentialsearch volumedesktop volume percentagemobile volume percentagemonthly search volume
SERP OverviewSERPGET /v3/serp-overview/serp-overview
- Inputs
- keyword, country, select "url"; date, top_positions, type
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
ranking URL
SERP Overview, fullSERPGET /v3/serp-overview/serp-overview
- Inputs
- keyword, country, select "url,ahrefs_rank,backlinks,domain_rating,keywords,page_type,position,refdomains,title,top_keyword,top_keyword_volume,traffic,type,update_date,url_rating,value"; date, top_positions, type
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
ranking URLAhrefs rankbacklinksdomain ratingranking keywordspage typepositionreferring domainsranking titletop keywordtop keyword search volumeorganic trafficresult typeupdated atURL ratingtraffic value
Page explorer (your Site Audit project in Ahrefs, with verified ownership)Site auditsGET /v3/site-audit/page-explorer
- Inputs
- project_id; select, where, order_by, date, date_compared, issue_id, filter_mode, offset, limit, timeout
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
AI content levelAI content statusallowed search botsallowed training botsalternatebacklinksblocked search botsblocked training botscanonicalcanonical codecanonical countscanonical group hashcanonical is canonicalcanonical no crawl reasoncanonical schemecompliantcompressioncontent available without JScontent encodingcontent lengthcontent number of wordcontent typeCSS no crawl reasoncURL code
Project Health Scores (your Site Audit project in Ahrefs)Site auditsGET /v3/site-audit/projects
- Inputs
- nothing required; project_id, date, project_name, project_url
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
health scorecrawl dateproject IDproject namecrawl statustarget modetarget protocoltarget URLtotal URLsURLs with errorsURLs with noticesURLs with warnings
Project Issues (your Site Audit project in Ahrefs)Site auditsGET /v3/site-audit/issues
- Inputs
- project_id; date, date_compared
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
issue IDissue namecategoryimportanceapplies to indexable pages onlyURLs affectedURLs affected changeURLs addednew URLsremoved URLsmissing URLs
Web searchPOST /api/search
- Inputs
- query, Content-Type header "application/json"; type, limit, language, location, content_type, safe_search, search_mode, include_domains, exclude_domains, start_published_date, end_published_date, start_crawl_date, end_crawl_date
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
page titleURLdescriptionpage datedomaincontent typehighlightsoriginal querysearch typequery languagequery countrysuccessrequest IDresponse timerequest costcost detailsbalance beforebalance after
Plans & pricing references
Listed fees retain the source billing period and currency. Check the provider for allowances, overages and current terms.
| Plan | Billing | Listed fee | Coverage |
|---|---|---|---|
| Advanced | monthly | $449.00 | SERP, Backlinks, Domain authority and 4 more |
| Advanced | yearly | $4,490.00 | SERP, Backlinks, Domain authority and 4 more |
| Balanced | one-time | See pricing | Web search |
| Enterprise | contact | See pricing | Web search, Domain authority, SERP and 5 more |
| Free | free | $0.00 | Web search |
| Lite | monthly | $129.00 | SERP, Backlinks, Keyword research and 4 more |
| Lite | yearly | $1,290.00 | SERP, Backlinks, Keyword research and 4 more |
| Standard | monthly | $249.00 | SERP, Backlinks, Domain authority and 4 more |
| Standard | yearly | $2,490.00 | SERP, Backlinks, Domain authority and 4 more |
Matching plan fees are grouped across operations. Included credits, metered rates and allowances can differ by operation; consult the official pricing reference.
Coding agent prompt
Prepare the adapter with the provider's documentation and your own account.
Build a server-side integration for Ahrefs.
Read the official provider documentation before choosing authentication, request fields or a plan:
https://docs.ahrefs.com/en/api/reference/batch-analysis/post-batch-analysis
https://docs.ahrefs.com/en/api/reference/keywords-explorer/get-matching-terms
https://docs.ahrefs.com/en/api/reference/keywords-explorer/get-overview
Catalog operations to verify against the current documentation:
- Backlinks: GET /v3/site-explorer/all-backlinks; inputs: target, select "url_from"; where, order_by, limit, timeout, aggregation, history, mode, portfolio_id, protocol
- Backlinks, full: GET /v3/site-explorer/all-backlinks; inputs: target, select "url_from,ahrefs_rank_source,ahrefs_rank_target,alt,anchor,broken_redirect_new_target,broken_redirect_reason,broken_redirect_source,class_c,discovered_status,domain_rating_source,domain_rating_target,drop_reason,encoding,first_seen,first_seen_link,http_code,http_crawl,ip_source,is_alternate,is_canonical,is_content,is_dofollow,is_form,is_frame,is_image,is_lost,is_new,is_nofollow,is_redirect,is_redirect_lost,is_root_source,is_root_target,is_rss,is_spam,is_sponsored,is_text,is_ugc,js
- Backlinks stats: GET /v3/site-explorer/backlinks-stats; inputs: target, date; mode, portfolio_id, protocol
- Batch analysis: POST /v3/batch-analysis/batch-analysis; inputs: targets[].url, targets[].mode, targets[].protocol, select "domain_rating", Content-Type header "application/json"; order_by, volume_mode, country, top_countries
Read credentials from a server-only environment variable such as PROVIDER_AHREFS_API_KEY; confirm the actual authentication scheme in the provider docs. Never expose credentials in browser code, URLs or logs.
Add bounded timeouts, explicit 401/403/429 handling, input validation and fixture-based tests. Preserve missing values and provider identifiers. Do not run paid or personal-data queries without approval. This is the provider's interface, not an All Them APIs execution endpoint.
If an endpoint, field, account permission or rate limit cannot be confirmed, list the missing requirement instead of inventing a working request. Return the adapter, tests and exact verification steps.Sources & integration checks
- Public source check
- Official source fetched · Nov 25, 2026
- Catalog source date
- Nov 17, 2026
- Authentication reference
- See each operation and confirm the provider's current access requirements.
- Before using in production
- Verify coverage, accepted-result billing, rate limits, data freshness and permitted use for your workload.
Catalog data: Datacircle, CC BY 4.0. Provider sources and check dates are recorded separately. Catalog prices and operations are references, not an Agent Bench result.