Check a keyword rank
Keyword Rank Checker API · 500 points per successful call
Product overview and demoAll Ahrefs API endpointsError codes
GET
Reports the best position a domain holds for a keyword in a chosen country — the position, the exact page holding it and its title — alongside the organic top of the SERP it was measured in. position: null means the domain is not in the measured part of the results.
bearerAuthheader
AuthorizationBearer <token>Your API key, sent as a bearer token. In the console on this page you can leave it empty: signed in, calls run on your own plan; otherwise they run on a shared demo key after a quick human check.
keyword*stringThe keyword to analyze.
Length
1 <= length <= 200domain*stringThe domain whose ranking to check, without scheme or path.
Match
^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$/iLength
4 <= length <= 253country?stringTwo-letter code of the country whose search results to read.
Match
^[A-Za-z]{2}$Default
"us"Successful response
application/json- response
meta*data*curl -X GET 'https://api.endpointry.com/v1/ahrefs/keyword-rank?keyword=keyword+research&domain=ahrefs.com&country=us'Example Response
{
"meta": {
"request_id": "req_7729f93d3facf68ff83e5c50",
"as_of": "2026-07-30T16:44:48.000Z",
"cache": "MISS"
},
"data": {
"keyword": "keyword research",
"country": "us",
"domain": "ahrefs.com",
"position": 2,
"url": "https://ahrefs.com/keyword-generator",
"title": "Free Keyword Generator Tool: Find 100+ Keyword Ideas",
"serp": [
{
"position": 1,
"title": "Free Keyword Tool: Find the Right Keywords for SEO & AI",
"url": "https://www.semrush.com/analytics/keywordmagic/",
"domain_rating": 92,
"url_rating": 34,
"backlinks": 11653,
"referring_domains": 3776,
"traffic": 291387,
"traffic_value": 669737,
"keywords": 3532,
"top_keyword": "keyword research",
"top_keyword_volume": 600000,
"word_count": 1712
},
{
"position": 2,
"title": "Free Keyword Generator Tool: Find 100+ Keyword Ideas",
"url": "https://ahrefs.com/keyword-generator",
"domain_rating": 91,
"url_rating": 24,
"backlinks": 16259,
"referring_domains": 5497,
"traffic": 139455,
"traffic_value": 346036,
"keywords": 1536,
"top_keyword": "keyword research",
"top_keyword_volume": 600000,
"word_count": 1171
}
]
}
}