“API: organic_keywords”
Lists the keywords a domain, path or specific URL ranks for in Google’s index for a given market.
- Cost: 1 API credit per successful call.
- Module: Competitors (Competitor analysis)
- REST endpoint:
POST https://api.ranki.co/v1/organic-keywords
What it’s for
organic_keywords lets you reverse-engineer the organic traffic of any competitor or your own project. It shows exactly which terms are driving visits to the website, the specific URL ranking for each term, its monthly volume, its current position in Google and the estimated traffic it brings in.
You can also narrow the query to the full domain (domain), a subfolder (path) or an exact URL (url).
API parameters
- Operation:
organic_keywords - Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
domain | string | Yes | – | Target domain, path or URL (e.g. "allbirds.com" or "allbirds.com/collections"). |
location | string | Yes | – | Country or market name (e.g. "United States"). |
page | integer | No | 1 | Page number (returns 50 results per page). |
keyword_type | string | No | "organic" | Result type: "organic" or "paid". |
order_by | string | No | "etv-desc" | Sort order: "etv-desc" (highest estimated traffic first), "vol-desc" (highest volume), "pos-asc" (best positions first). |
domain_filter | string | No | "domain" | Scope: domain, path or url. |
keyword_filter_text / keyword_filter_contains | string | No | – / regex | UI keyword filter (before pagination). |
ok_min_pos / ok_max_pos | integer | No | – | Position range. |
kw_min_vol / kw_max_vol | integer | No | – | Volume range. |
kd_min_difficulty / kd_max_difficulty | integer | No | – | KD range. |
url_filter / url_filter_type | string | No | – / like | URL filter (ignored if domain_filter=url). |
serp_features / serp_features_contains | array / string | No | – / like | SERP features include/exclude. |
Endpoint
POST https://api.ranki.co/v1/organic-keywords
Authorization: Bearer rk_TU_CLAVE_AQUI
Content-Type: application/json
{
"domain": "allbirds.com",
"location": "United States",
"page": 1,
"keyword_type": "organic",
"order_by": "etv-desc",
"domain_filter": "domain"
}
Example with curl
curl -s -X POST
-H "Authorization: Bearer rk_TU_CLAVE_AQUI"
-H "Content-Type: application/json"
-d '{
"domain": "allbirds.com",
"location": "United States",
"page": 1,
"keyword_type": "organic",
"order_by": "etv-desc",
"domain_filter": "domain"
}'
"https://api.ranki.co/v1/organic-keywords"
Sample response
{
"credits_consumed": 1,
"credits_remaining": 245,
"data": {
"domain": "allbirds.com",
"location": "United States",
"total_count": 48500,
"items": [
{
"keyword": "wool runners",
"position": 1,
"search_volume": 12100,
"url": "https://www.allbirds.com/collections/mens",
"cpc": 0.95,
"traffic_percentage": 2.4,
"estimated_traffic": 2800
},
{
"keyword": "womens sneakers",
"position": 3,
"search_volume": 8100,
"url": "https://www.allbirds.com/collections/womens-sneakers",
"cpc": 1.10,
"traffic_percentage": 1.8,
"estimated_traffic": 1450
}
]
}
}
Response fields
| Field | Type | Description |
|---|---|---|
credits_consumed | integer | Credits deducted (1 credit). |
credits_remaining | integer | Remaining API credit balance. |
data.items | array | List of ranking keywords. |
items[].keyword | string | Term it ranks for. |
items[].position | integer | Google position for that keyword. |
items[].search_volume | integer | Average monthly searches. |
items[].url | string | Specific URL from the domain that appears in the result. |
items[].cpc | number | Estimated cost per click in ads. |
items[].estimated_traffic | integer | Estimated monthly visits this keyword brings to the page. |