Skip to Content
Documentation

Ahrefs API

Ahrefs SEO metrics with stable schemas: keyword difficulty, SERP snapshots, keyword rank checks, website authority and broken links.

Product overview and use cases

Endpoints

Each page carries the full contract — parameters, response fields, errors — with request samples in six languages and a console that sends real requests.

Base URL and OpenAPI

Every endpoint lives under https://api.endpointry.com/v1/ahrefs and takes the same bearer key. The schemas on these pages are the ones the gateway enforces on every response, and they are published as an OpenAPI 3 document for client generators: /v1/ahrefs/openapi.json for this API, or /v1/openapi.json for the whole catalog.

Conventions

What holds for every endpoint is documented once: