Marketing
Ahrefs logo

Ahrefs API

ahrefs.com

Ahrefs - website authority, backlink checks, keyword difficulty, and SERP analysis.

Actions
5
Category
Marketing
Login
Not required
Output
JSON

Call the Ahrefs API

Submit a task, then poll the job until it settles. This example runs act_ahrefs_authority_checker_page.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_ahrefs_authority_checker_page",
    "params": {}
  }'

5 actions on ahrefs.com

Read

  • Authority Checker Page

    act_ahrefs_authority_checker_pageread1 credit / call

    Returns the Website Authority Checker page content and metadata.

  • Free SEO Tools Catalog

    act_ahrefs_free_seo_tools_catalogread1 credit / call

    Returns the available free SEO tools with names, categories, and descriptions.

  • Homepage

    act_ahrefs_homepage_ssrread1 credit / call

    Returns the homepage content, title, hero headline, and meta description.

  • Keyword Difficulty Page

    act_ahrefs_keyword_difficulty_pageread1 credit / call

    Returns the Keyword Difficulty Checker page content and metadata.

  • SERP Checker Page

    act_ahrefs_serp_checker_pageread1 credit / call

    Returns the SERP Checker page content and metadata.

Ahrefs API questions

Is there an API for Ahrefs?
Ahrefs does not offer a public data API for this, but Anakin Wire provides 5 maintained endpoints for ahrefs.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Ahrefs data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when ahrefs.com changes its markup, Anakin updates the action.
Do I need a Ahrefs account?
No. Every Ahrefs action listed here runs anonymously — no account and no credentials required.
What does the Ahrefs API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Marketing APIs

All Marketing sites