Keyword Difficulty API

Ahrefs keyword difficulty as JSON — the 0–100 score, the backlinks you’d need, and the SERP you’d be up against.

GEThttps://api.endpointry.com/v1/ahrefs/keyword-difficulty
500 points / call
Example result

keyword research

Country
us
Difficulty
92
Backlinks needed
932

SERP · showing 1 of 1

  • 1

    Free Keyword Tool: Find the Right Keywords for SEO & AI

    https://www.semrush.com/analytics/keywordmagic/

    Domain rating 92URL rating 34Backlinks 11,653

Checking live calls…

What you get

Scores how hard it is to rank in the top 10 for a keyword, 0–100, with an estimate of the referring domains a page would need, and the organic results currently holding the top of the SERP.

  • Difficulty — How hard it is to rank in the top 10 for this keyword, 0 (easy) to 100 (hardest)
  • Backlinks needed — Estimated number of websites that would need to link to a page for it to rank in the top 10
  • SERP — The organic results currently holding the top of the SERP
  • Position — Position in the results page
  • Domain rating — Domain Rating of the result’s website — backlink-profile strength, 0–100
  • URL rating — URL Rating of the page itself, 0–100
  • Backlinks — Pages linking to this result
  • Referring domains — Unique websites linking to this result
Full reference: every parameter, field and error

Use cases

What teams build with it

  • Keyword vetting inside content and SEO tools, scored before writing starts
  • Prioritizing keyword lists by effort, not just volume
  • Programmatic content roadmaps: filter thousands of candidates by difficulty
  • Agency reporting with a defensible, industry-standard metric

FAQ

Frequently asked questions

What does the difficulty score mean?

It estimates how hard it is to rank in the top 10, from 0 (easy) to 100 (hardest), and comes with backlinks_needed — the number of referring domains a page would likely need.

Can I check difficulty per country?

Yes. Pass a two-letter country code and the score is computed against that market’s SERP; it defaults to us.

What happens for a keyword with no data?

A clean 404 NOT_FOUND. That answer is deterministic, so you can cache it and skip retries.

How fresh is the score?

meta.as_of carries the exact time the underlying SERP snapshot was taken, so you always know what the score was computed from.

Try it on the free plan

One key covers the whole catalog, this endpoint included, starting on the free plan with no card.