Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Get site explorer country metrics
AHREFS_GET_SITE_EXPLORER_COUNTRY_METRICSRetrieves country-specific Site Explorer metrics for a target website or URL, including organic traffic and keyword metrics. The validated response contains a country and its metrics.
Get site explorer crawled pages
AHREFS_GET_SITE_EXPLORER_CRAWLED_PAGESRetrieve crawled pages and crawl metadata for a target URL.
Get site explorer linked anchors external
AHREFS_GET_SITE_EXPLORER_LINKED_ANCHORS_EXTERNALRetrieves anchor text data for external links going out from a target website using Ahrefs Site Explorer. Use it to analyze the anchors and external domains linked from the target.
Get url rating history
AHREFS_GET_URL_RATING_HISTORYRetrieves 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 competitors' URL performance. The URL Rating is a key Ahrefs metric that reflects the strength of a URL based on its backlink profile and other SEO factors. Use this endpoint to visualize URL Rating trends, identify significant changes in a URL's SEO performance, and correlate these changes with specific events or strategies. The data returned is particularly useful for long-term SEO analysis and competitive research.
Linked anchors explorer
AHREFS_LINKED_ANCHORS_EXPLORERRetrieves 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 anchor. It's particularly useful for analyzing a website's internal linking structure, identifying commonly used anchor texts, and optimizing internal link distribution. The endpoint is part of Ahrefs' Site Explorer tool and helps in understanding the website's hierarchy and content relationships. Each request and result incurs a cost of 1 row, which should be considered when making multiple or large-scale queries.
List best by external links
AHREFS_LIST_BEST_BY_EXTERNAL_LINKSRetrieves pages from a specified website using Ahrefs' Site Explorer best-by-external-links report. The report includes external backlink metrics and can also include page information such as internal link counts.
Pages by traffic overview
AHREFS_PAGES_BY_TRAFFIC_OVERVIEWRetrieves 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 are performing well in terms of attracting organic search visitors. It's useful for identifying top-performing content, understanding traffic distribution across a site, and prioritizing optimization efforts. The endpoint returns data such as page URLs, estimated traffic, and other relevant metrics. It's important to note that the traffic data is an estimation based on Ahrefs' algorithms and may not exactly match actual analytics data. This tool is particularly useful for SEO professionals, content strategists, and website owners looking to analyze and improve their site's organic search performance.
Post Domain Rating Free
AHREFS_POST_DOMAIN_RATING_FREERetrieve Domain Rating scores for up to 1,000 target URLs. Use of the returned data is subject to the license URL in the response and requires attribution as "Domain Rating by Ahrefs" with a link to https://ahrefs.com/.
Retrieve anchor data
AHREFS_RETRIEVE_ANCHOR_DATARetrieves 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. It helps SEO professionals analyze the quality and diversity of anchor texts, which can influence search engine rankings. Use this endpoint when you need to understand how other websites are linking to a specific page or domain, and to identify potential opportunities for link building or anchor text optimization. The tool does not provide information about the linking pages themselves, focusing solely on the anchor text data.
Retrieve best by internal links
AHREFS_RETRIEVE_BEST_BY_INTERNAL_LINKSRetrieves pages ranked by internal links for a specified website using Ahrefs' Site Explorer. The report can include page details such as internal link counts, URL Rating and external link counts.
Retrieve crawler ip ranges
AHREFS_RETRIEVE_CRAWLER_IP_RANGESRetrieves 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 this endpoint when you need to configure your server's firewall rules, analyze server logs, or verify the authenticity of crawler requests claiming to be from Ahrefs. The returned data includes the current set of IP ranges, which may change over time, so it's recommended to check this endpoint periodically for updates. Note that while this information helps in identifying Ahrefs' crawler, it should not be used as the sole method of authentication for the crawler.
Retrieve organic competitors
AHREFS_RETRIEVE_ORGANIC_COMPETITORSRetrieves organic search competitors for a target domain or URL, with keyword overlap and performance metrics. Results may also include paid-search metrics.
Retrieve organic keywords
AHREFS_RETRIEVE_ORGANIC_KEYWORDSRetrieves 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 ranks in organic search results. It's particularly useful for analyzing a website's organic search visibility, identifying ranking opportunities, and comparing keyword performance against competitors. The data returned includes key metrics such as keyword position, search volume, and estimated traffic, allowing users to make informed decisions about their SEO strategy. Note that the results are based on Ahrefs' database and may not reflect real-time search engine results.
Retrieve outlinks stats
AHREFS_RETRIEVE_OUTLINKS_STATSRetrieves outgoing-link statistics for a specified website or URL using Ahrefs Site Explorer. The response schema includes internal and external link counts for crawled pages.
Retrieve paid pages data
AHREFS_RETRIEVE_PAID_PAGES_DATARetrieves 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 they're targeting, ad copies, and potentially performance metrics. It's particularly useful for competitive analysis in digital marketing, allowing users to understand their competitors' paid search efforts. The tool should be used when analyzing a website's PPC strategy or researching potential keywords for paid campaigns. It does not provide information about organic search performance or other SEO metrics.
Retrieve public crawler ips
AHREFS_RETRIEVE_PUBLIC_CRAWLER_IPSRetrieves 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 from Ahrefs or manage their server's access rules. The returned list includes all active IP addresses utilized by AhrefsBot for crawling websites. This tool should be used when you need to confirm if a particular IP belongs to Ahrefs or when updating your website's firewall rules to allow Ahrefs' crawler. It's important to note that this list may change over time, so it's recommended to check it periodically for the most up-to-date information.
Retrieve related terms
AHREFS_RETRIEVE_RELATED_TERMSRetrieves related keyword ideas for a given keyword or keyword list in a specified country. Related terms may include metrics such as search volume and keyword difficulty.
Retrieve site explorer keywords history
AHREFS_RETRIEVE_SITE_EXPLORER_KEYWORDS_HISTORYRetrieves 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, search volume, and potential traffic. It's particularly useful for analyzing SEO trends, understanding the impact of optimization efforts, and identifying seasonal patterns in keyword performance. The tool should be used when you need a comprehensive view of a website's keyword history to inform SEO strategies and content planning. It does not provide real-time data and may have limitations on the historical range available.
Retrieve site explorer metrics
AHREFS_RETRIEVE_SITE_EXPLORER_METRICSRetrieves Site Explorer SEO metrics for a target domain or URL on a specified date, including backlink, referring-page and crawled-page counts. The analysis scope can be adjusted for the target.
Retrieve site explorer metrics history
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORYRetrieves historical Site Explorer traffic metrics for a target website or URL over a specified period, including estimated organic and paid traffic and cost. Results can be grouped by time interval for trend analysis.