Skip to main content
AH

Ahrefs

Lets an agent pull Ahrefs SEO data - backlinks and referring domains, organic keywords and top pages, keyword research, SERPs, rank tracking, and site audits.

What it can do

MethodWhat it does
ahrefs_limits_and_usageCheck API subscription limits and remaining units (free).
ahrefs_metricsGet Site Explorer metrics (traffic, value, keywords, backlinks) for a target.
ahrefs_metrics_historyGet historical Site Explorer metrics over a date range.
ahrefs_backlinks_statsGet aggregate backlinks stats (refdomains, dofollow, etc.) for a target.
ahrefs_all_backlinksList all backlinks pointing to a target.
ahrefs_broken_backlinksList broken backlinks (links to dead pages) for a target.
ahrefs_refdomainsList referring domains linking to a target.
ahrefs_anchorsList anchor texts used in backlinks to a target.
ahrefs_linked_domainsList external domains a target links out to.
ahrefs_organic_keywordsList organic keywords a target ranks for.
ahrefs_organic_competitorsList organic search competitors of a target.
ahrefs_top_pagesList a target's top pages by organic traffic.
ahrefs_paid_pagesList a target's paid (PPC) landing pages.
ahrefs_keywords_historyGet a target's historical organic keyword counts.
ahrefs_crawled_pagesList pages Ahrefs crawled for a target.
ahrefs_keywords_overviewGet keyword metrics (volume, difficulty, CPC, clicks) for keywords.
ahrefs_keyword_volume_historyGet monthly search-volume history for a single keyword.
ahrefs_keyword_volume_by_countryGet a keyword's search volume broken down by country.
ahrefs_keyword_matching_termsFind keyword ideas that match or contain a seed.
ahrefs_keyword_related_termsFind keywords related to a seed (also-rank-for ideas).
ahrefs_keyword_search_suggestionsGet autocomplete search suggestions for a seed.
ahrefs_serp_overviewGet the SERP (top results with metrics) for a keyword (free).
ahrefs_rank_tracker_overviewGet Rank Tracker positions for a project (free).
ahrefs_rank_tracker_competitorsGet Rank Tracker competitors overview for a project (free).
ahrefs_site_audit_projectsList Site Audit projects with their health scores (free).
ahrefs_site_audit_issuesList Site Audit issues for a project.
ahrefs_domain_ratingGet Domain Rating (DR) for a target on a date.
ahrefs_domain_rating_historyGet Domain Rating (DR) history over a date range.
ahrefs_url_rating_historyGet URL Rating (UR) history over a date range.
ahrefs_refdomains_historyGet referring-domains count history over a date range.
ahrefs_pages_historyGet indexed/ranking pages count history over a date range.
ahrefs_total_search_volume_historyGet total organic search-volume history over a date range.
ahrefs_outlinks_statsGet aggregate outgoing-links (external link) stats for a target.
ahrefs_metrics_by_countryGet organic/paid metrics broken down by country for a target.
ahrefs_pages_by_trafficGet distribution of a target's pages by organic traffic.
ahrefs_pages_by_backlinksList a target's pages ranked by number of backlinks.
ahrefs_pages_by_internal_linksList a target's pages ranked by number of internal links.
ahrefs_linked_anchors_externalList external anchor texts a target links out with.
ahrefs_linked_anchors_internalList internal anchor texts a target uses for internal links.
ahrefs_batch_analysisGet bulk metrics for up to 100 targets in one request.
ahrefs_create_projectCreate a new Rank Tracker project (write).
ahrefs_update_projectUpdate a Rank Tracker project's access setting (write).
ahrefs_add_project_keywordsAdd tracked keywords to a Rank Tracker project (write).
ahrefs_delete_project_keywordsRemove tracked keywords from a Rank Tracker project (write).
ahrefs_add_project_competitorsAdd competitors to a Rank Tracker project (write).
ahrefs_delete_project_competitorsRemove competitors from a Rank Tracker project (write).
ahrefs_add_keyword_list_keywordsAdd keywords to a Keywords Explorer list (write).
ahrefs_delete_keyword_list_keywordsRemove keywords from a Keywords Explorer list (write).

How to get credentials

  1. Open app.ahrefs.com/api/profile.
  2. Make sure your plan includes API access (API units are part of your subscription).
  3. Create an API key and copy the token.
  4. Paste it into FlyMyAI as AHREFS_API_KEY.

The token is sent as Authorization: Bearer <token>. Subscription, SERP, Rank Tracker, and Site Audit project endpoints are free; most other reads consume API units (minimum 50 per request), so use ahrefs_limits_and_usage to watch your balance.

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
AHREFS_API_KEYAPI profile → create key (app.ahrefs.com/api/profile)
We love our partners - FlyMy.AI builds with the best. Thanks, Ahrefs!