Connect Ahrefs to your AI agent
Ahrefs is an SEO and marketing platform offering site audits, keyword research, content analysis, and competitive insights to improve search rankings and drive organic traffic
We set up the connection using your own Ahrefs account, with keys you control, and keep it running. Your agent picks it up and starts doing the work.
What your agent can do in Ahrefs
Each one is a real action the agent can take on its own, the same things a person clicking around Ahrefs could do. Read-only by default; write actions are confirmed against your policy.
- Backlinks stats retrieval Retrieves comprehensive backlink statistics for a specified website or URL using Ahrefs' Site Explorer tool. This endpoint provides crucial data for SEO analysis, including the total number of backlinks, referring domai…
- Batch Url Analysis Performs a batch analysis on multiple URLs or domains using Ahrefs' powerful SEO metrics. This endpoint allows users to retrieve key SEO data for up to 100 targets simultaneously, streamlining the process of analyzing m…
- Domain rating for site explorer Retrieves the Domain Rating (DR) for a specified domain. Domain Rating is an Ahrefs metric that measures the strength and authority of a website's backlink profile on a logarithmic scale from 0 to 100. This endpoint sho…
- Domain rating history Retrieves the historical Domain Rating (DR) data for a specified domain over time. This endpoint is part of Ahrefs' Site Explorer tool and provides insights into how a domain's authority has changed. It's useful for tra…
- Explore keywords overview Retrieves a comprehensive overview of keyword data from Ahrefs' Keywords Explorer tool. This endpoint provides essential insights for SEO professionals and content strategists, offering a summary of key metrics such as…
- Explore keyword volume by country Retrieves the search volume data for specified keywords across different countries using Ahrefs' Keywords Explorer tool. This endpoint allows users to obtain accurate search volume information, helping in keyword resear…
- Explore linked domains of a site Retrieves a list of external domains that the specified target website or URL links to, using Ahrefs' Site Explorer functionality. This endpoint is crucial for analyzing a website's external linking structure, which can…
- Explore matching terms for keywords The keywords_explorer_matching_terms endpoint retrieves a list of keyword phrases that match or contain the specified keyword from Ahrefs' vast database. This tool is part of Ahrefs' Keyword Explorer functionality and i…
- Fetch all backlinks Retrieves a comprehensive list of backlinks for a specified website or URL using Ahrefs' Site Explorer tool. This endpoint provides detailed information about the backlink profile of the target, including the source URL…
- Fetch broken backlinks data Retrieves a list of broken backlinks for a specified website using Ahrefs' Site Explorer tool. This endpoint helps identify and analyze backlinks that are no longer functional, potentially affecting the website's SEO pe…
- Fetch competitors overview Retrieves a comprehensive overview of competitor data in relation to keyword rankings and organic search performance. This endpoint is part of Ahrefs' Rank Tracker feature and provides a comparative analysis of your web…
- Fetch rank tracker overview The GetRankTrackerOverview endpoint retrieves a comprehensive summary of keyword rankings and SEO performance data from Ahrefs' Rank Tracker tool. It provides a high-level overview of a website's ranking positions, SERP…
- Fetch site explorer referring domains Retrieves a list of domains that have backlinks pointing to a specified target website. This endpoint is essential for conducting comprehensive backlink analysis, allowing users to identify and evaluate the sources of i…
- Fetch total search volume history Retrieves the historical total search volume data for specified keywords using Ahrefs' Site Explorer tool. This endpoint allows users to track and analyze the search popularity trends of specific terms over time, which…
- Get serp overview Retrieves a comprehensive overview of Search Engine Results Pages (SERP) data for specified keywords or queries. This endpoint provides valuable insights into search performance, including historical data, search intent…
- Get site audit projects Retrieves a list of Site Audit projects associated with the authenticated Ahrefs account. This endpoint allows users to access and manage their Site Audit projects, which are essential for identifying technical and on-p…
- Get site explorer country metrics Retrieves country-specific Site Explorer metrics for a given website from Ahrefs. This endpoint provides valuable insights into a website's performance across different countries, including data on organic traffic, keyw…
- Get site explorer linked anchors external The site-explorer-linked-anchors-external endpoint retrieves data about external anchor texts linking to a specified target website. This tool is essential for analyzing the backlink profile of a domain, understanding t…
- Get url rating history Retrieves the historical URL Rating data for a specified URL over time. This endpoint provides insights into how a URL's SEO strength has changed, allowing users to track the impact of their SEO efforts or analyze compe…
- Linked anchors explorer Retrieves information about internal linked anchors for a specified website using the Ahrefs API. This endpoint provides data on anchor text used in internal links and the number of outgoing links associated with each a…
- List best by external links The 'get_best_by_external_links' endpoint retrieves a list of pages from a specified website, ranked by the number of external links pointing to them. This tool is essential for identifying the most authoritative and po…
- Pages by traffic overview Retrieves a list of pages from a specified website, ordered by their estimated organic search traffic. This endpoint is part of the Ahrefs Site Explorer tool and provides valuable insights into which pages on a website…
- Retrieve anchor data Retrieves anchor text data for a specified website or URL using Ahrefs' Site Explorer tool. This endpoint provides valuable insights into the anchor text distribution of backlinks pointing to the target URL or domain. I…
- Retrieve best by internal links Retrieves data on the best-performing internal links within a specified website using Ahrefs' Site Explorer feature. This endpoint analyzes the internal link structure of the target site and returns a list of the most e…
- Retrieve crawler ip ranges Retrieves the list of IP address ranges used by Ahrefs' web crawler (AhrefsBot). This endpoint provides essential information for website administrators to identify and potentially whitelist Ahrefs' crawler traffic. Use…
- Retrieve organic competitors The GetOrganicCompetitors endpoint in the Ahrefs API provides a comprehensive analysis of websites competing for organic search rankings with a specified target domain. It identifies and ranks competitors based on their…
- Retrieve organic keywords Retrieves organic keywords data for a specified website using Ahrefs' Site Explorer tool. This endpoint provides valuable insights into a website's SEO performance by returning a list of keywords for which the site rank…
- Retrieve outlinks stats Retrieves comprehensive statistics about outgoing links (outlinks) from a specified website using Ahrefs' Site Explorer tool. This endpoint provides valuable insights into a website's external linking practices, which i…
- Retrieve paid pages data Retrieves information about paid pages (PPC advertising) for a specified website using Ahrefs' Site Explorer tool. This endpoint provides valuable insights into a website's paid search strategy, including the keywords t…
- Retrieve public crawler ips Retrieves a list of IP addresses currently used by AhrefsBot, Ahrefs' web crawler. This endpoint provides essential information for webmasters and SEO professionals who want to verify the authenticity of requests coming…
- Retrieve related terms The keywords_explorer_related_terms endpoint retrieves a list of related terms for a given keyword using Ahrefs' extensive keyword database. This tool is essential for expanding keyword research, finding new content ide…
- Retrieve site explorer keywords history Retrieves historical keyword performance data for a specified website or domain using Ahrefs' Site Explorer. This endpoint provides insights into how keywords have performed over time, including changes in rankings, sea…
- Retrieve site explorer metrics The GetSiteExplorerMetrics endpoint retrieves comprehensive SEO metrics for a specified website using Ahrefs' Site Explorer tool. It provides crucial data such as backlink profile, referring pages, organic keyword ranki…
- Retrieve site explorer metrics history Retrieves historical SEO metrics data for a specified website over a given time period. This endpoint is part of the Ahrefs Site Explorer tool and provides valuable insights into a website's performance trends. It shoul…
- Retrieve site explorer pages history The get_site_explorer_pages_history endpoint retrieves historical data about specific pages or domains from Ahrefs' Site Explorer. It tracks changes in SEO performance over time, including backlinks, organic traffic, an…
- Retrieve site explorer referring domains history Retrieves the historical data of referring domains for a specified website or URL over time. This endpoint is part of Ahrefs' Site Explorer tool and provides valuable insights into the growth or decline of a website's b…
- Retrieve subscription limits and usage Retrieves detailed information about the current subscription limits and usage for an Ahrefs account. This endpoint provides essential data to monitor API consumption, track remaining credits or rows, and manage subscri…
- Retrieve top pages from site explorer Retrieves data about the top-performing pages of a specified website using Ahrefs' Site Explorer tool. This endpoint provides valuable insights into a site's most successful content based on various SEO metrics. It's pa…
- Retrieve volume history Retrieves the historical search volume data for a specified keyword using Ahrefs' Keywords Explorer tool. This endpoint provides valuable insights into how the popularity of a keyword has changed over time, allowing use…
- Search suggestions explorer Retrieves search suggestions for a given keyword or phrase using Ahrefs' Keywords Explorer tool. This endpoint provides autocomplete-style suggestions that can help uncover related keywords, long-tail variations, and po…
How we connect it
- 1
Connect your account
You create a key in Ahrefs, a key you create and control, and paste it in once. It lives in a secrets store on your server, not with us.
- 2
Set the guardrails
Read-only by default. You choose which write actions the agent may take, and anything outside that policy gets confirmed with you first.
- 3
We keep it running
Health checks on every connection, updates handled for you, and we watch the first week of activity to make sure the work lands.
FAQ
Ahrefs questions, answered.
Ready to put Ahrefs to work?
Tell us what your team runs on. We set up the connection, secure it, and your agent takes it from there.
All product names, logos, and brands are property of their respective owners; used for identification only. ZeroToClaw is not affiliated with or endorsed by Ahrefs.