A

Ahrefs API v3

REST discovered

Details
URL
https://api.ahrefs.com/v3
Docs
https://docs.ahrefs.com/en/api/docs/introduction
Authentication
Ahrefs API key bearer discovered Get token ↗
Authorization: Bearer <credential>

In Account settings / API keys, create an API key for Ahrefs API v3. Only workspace owners and admins can create and manage keys. Send it as Authorization: Bearer YOUR_API_KEY. The docs note keys expire after 1 year and can be limited per key in the same page.