Ahrefs provides SEO tools and exposes workspace data through an API for custom integrations and automation.

API

What your agent can do

  • Retrieve backlink records for a selected domain or URL with requested fields and optional filters.

    Via API.

Tasks depend on the interface and permissions.

Connection methods

Choose a route that fits your agent.

API connection
API path
https://api.ahrefs.com/v3/site-explorer/all-backlinks

Authentication
Provide it in the Authorization header when making requests: Authorization: Bearer YOUR_API_KEY .

Documentation & experience

  • 1 connection path
View sources and checks
How documentation is checked