All tools
A
by Ahrefs
Get a site's organic keywords
Returns the keywords a domain or URL ranks for organically, with position, search volume and traffic for each.
Updated Sep 29, 2026
get-organic-keywords.md
Get a site's organic keywords
Returns the keywords a domain or URL ranks for organically, with position, search volume and traffic for each.
Note: target, date and select are required; mode narrows the match to an exact URL, a prefix, the domain or its subdomains.
Set up
Use the first option your agent supports.
API (official)
- Base URL: https://api.ahrefs.com/v3
- Endpoint:
GET /site-explorer/organic-keywords - Auth: send the header
Authorization: Bearer $AHREFS_API_KEY - Docs: https://docs.ahrefs.com/en/api/docs/introduction
Note: Only workspace owners and admins can create keys, in Account settings, API keys.
Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.
Ways in
| Route | Source | Call | Required | Docs |
|---|---|---|---|---|
| Official | GET /site-explorer/organic-keywords | API key in $AHREFS_API_KEY | Docs |
