Back to tools

AI Agent Tool

Ahrefs logo

Ahrefs

SEO platform with backlink analysis, keyword research, site audit, and rank tracking.

AnalyticsCommunity

ahrefs.com

•

One-click Login

•

Ready to use

About Ahrefs

Ahrefs is a comprehensive SEO toolset used by marketing professionals and agencies to analyze backlinks, research keywords, audit websites, and track rankings. It competes directly with Semrush as a full-suite SEO platform rather than just a backlink checker. There is no traditional free trial, but Ahrefs Webmaster Tools provides limited access for verified domain owners. Plans are structured around escalating data limits rather than feature gating, with all tiers accessing the core toolset.

AI Agent Use Cases

- Site Explorer: backlink profile, organic traffic, and referring domain analysis

- Keywords Explorer: keyword difficulty, volume, and SERP analysis across 10+ search engines

- Site Audit: crawl-based technical SEO health reports

- Rank Tracker: keyword position monitoring over time

- Content Explorer: discover top-performing content by topic or domain

- Ahrefs Webmaster Tools: free limited access for verified site owners

Available Actions

These are the specific actions that AI agents can perform with this tool

Inputs

target

URL or domain you want to get backlinks for.

mode

Mode of the request. Determines the scope of the backlinks retrieval, such as 'domain'.

limit

Maximum number of results to return.

order_by

Criteria to sort the results by, e.g., 'ahrefs_rank:desc'.

output

Format for the API response, such as 'json'.

Inputs

target

Domain or URL for which you want to retrieve referring domains.

mode

Specify whether the target is a domain or exact URL.

limit

Maximum number of referring domains to return.

order_by

The column by which to order the results; can be combined with ASC (ascending) or DESC (descending).

output

Format of the API response, either JSON or XML.

Inputs

from

Specifies the source data table for the API query

target

The URL or domain for which to retrieve backlinks

mode

The level of detail for the target, e.g., full domain or as subdomains

limit

Maximum number of results to retrieve

order_by

Column by which the results should be ordered, with optional sort order

output

Format of the API response output

Inputs

target

The target domain or URL for which you want to check the backlinks.

mode

Specifies the mode of the query, such as 'domain', 'url', 'subdomains', etc.

limit

The maximum number of results to return.

order_by

Define the order of results, e.g., 'date:desc,ahrefs_rank:desc'.

output

The format of the response, either 'json' or 'xml'.

Inputs

from

The API endpoint name, must be 'ahrefs_rank' to access the rankings.

target

The URL or domain you want to gather the Ahrefs rank for.

mode

Specifies the mode of the target, such as 'domain'.

limit

The number of results to return. Defaults to 10 if not specified.

order_by

Ordering criteria for the results, e.g., 'ahrefs_rank:desc'.

output

The format of the response, either 'xml' or 'json'.

Inputs

from

The dataset from which to retrieve data. For this endpoint, it should be 'anchors'.

target

The target domain or URL for which the anchor text data is retrieved.

mode

The mode of analysis for the given domain or URL. Can be 'domain', 'subdomains', or 'exact'.

limit

The number of results to return.

output

The format of the output data. Can be 'json' or 'xml'. Defaults to 'json'.

Inputs

keyword

The keyword to search in the SERPs.

country

The country code for which the SERP data should be fetched.

device

The device type like mobile or desktop to specify for the search.

date

The specific date for which the SERP data is needed.

Inputs

project_id

Unique identifier for the project to be audited.

crawl_type

Specify whether to perform a full or partial crawl of the website.

page_limit

Set a limit on the number of pages to be crawled in the audit.

Inputs

target

The exact domain or URL to analyze. Must be a valid domain name.

mode

The mode that determines the level of the URL to analyze (e.g., entire domain, subdomain, specific URL).