This page is also inEN
iTeam
API guide · Marketing and ads With your company’s credentials

Ahrefs API: backlinks, keywords and SEO data with AI agents

The Ahrefs API gives access to the platform's data: backlinks, referring domains, organic keywords, domain metrics and keyword research. Agencies and SEO teams use it to build reports and their own tools. Access is by API key, available on specific plans and billed in units of consumption.

Nina
API guide

What the Ahrefs API offers

Site explorer

Domain metrics, top pages and estimated organic traffic.

Backlinks

Links and referring domains, new and lost.

Keywords

Volume, difficulty and keyword ideas.

Organic positions

Keywords a site ranks for.

Rank tracking

Data from the tracking projects in your account.

How to access the Ahrefs API

  • With your company’s credentialsAn API key generated in the Ahrefs account, sent in the authorization header; access depends on the plan.
  • Queries consume units: set a ceiling.
  • The data consists of estimates.
  • Follow the terms of use when passing data on to clients.

Official documentation: docs.ahrefs.com

What an iTeam agent does with the Ahrefs API

Backlink alerts

The agent tells you when the site gains or loses links from relevant domains.

Competitor analysis

The agent shows the pages that bring the competitor the most traffic and what your site is missing.

Link prospecting

The agent lists sites that link to competitors but not to you, for the team to assess.

Agency client reports

The agent builds each client's monthly report with the figures for the period.

From the credential to the agent at work, with approval

01

Enable the API

Confirm that your plan includes the API and generate the key.

02

Vault and unit ceiling

Store it in the iTeam vault and set a consumption ceiling per agent.

03

Test queries

Run one-off queries before scheduling reports.

Questions

Questions about the Ahrefs API

Is the Ahrefs API free?

Not in general: API access is on specific plans and consumes units. Check Ahrefs' current terms.

Do I need to write code to use the Ahrefs API with iTeam?

Not necessarily. iTeam's HTTP tool reads the API documentation and learns the endpoints, and the deployment team sets up credentials, permissions and tests with you.

Does the Ahrefs API show new and lost backlinks?

Yes, there is data on backlinks and referring domains with a history of new and lost ones, depending on the plan.

Next step

Put an AI team to work this week.

Start free with a pre-built team, or talk to us and our squad puts AI in production with your people.

300+integrations
4languages
Agents working right now