Skip to main content
Ahrefs is one of the most comprehensive SEO toolkits available — backlink indexes, keyword databases, content explorers, and site audits all accessible through a single API. These four jobs connect Ahrefs data to Mavera’s surfaces (Mave Agent, Personas, Focus Groups, Brand Voices, Generate) so your content strategy, competitive positioning, and SEO execution are driven by real search data rather than guesswork.
All examples use two environment variables: AHREFS_API_TOKEN and MAVERA_API_KEY. Ahrefs API v3 returns JSON and authenticates via Bearer token (Authorization: Bearer {token}) or OAuth 2.0. Every API call consumes at least 50 units — check your balance at Ahrefs → API Usage. Rate limit is 60 requests per minute; the API returns 429 Too Many Requests when exceeded.

API Reference Card

Prerequisites

1

Ahrefs API token with available units

Log in to Ahrefs and navigate to APIAPI Keys to generate a token. Verify that your plan includes API access — Starter plans have limited units, while Standard and above include higher allocations.
2

Mavera API key

Generate a key at app.mavera.io/settings/api-keys. The key starts with mvra_live_.
3

Install dependencies

4

Environment variables

Jobs


Rate Limits & Production Notes

Ahrefs enforces 60 requests/minute and a minimum of 50 units per request. All jobs above include time.sleep(1) / setTimeout(1000) delays. In production, implement a centralized rate limiter across all Ahrefs calls. On 429 Too Many Requests, retry after the Retry-After header value with exponential backoff (cap at 60s).
Ahrefs returns proper JSON — no custom parsing needed. However, large result sets may be paginated via offset and limit parameters. Always check the response for a has_more field and loop if building complete datasets.

What’s Next

All Integrations

50+ API integrations with full code

Ahrefs API Docs

Official Ahrefs API v3 reference

Mave Agent

Full reference for POST /api/v1/mave/chat

Focus Groups API

Full reference for POST /api/v1/focus-groups

Generate API

Full reference for POST /api/v1/generations

Brand Voices API

Full reference for POST /api/v1/brand-voices