Domain Keywords
Get every keyword a domain ranks for with positions, search volume, CPC, and landing URLs.
Pricing, live playground and use cases: Domain Keywords API on YepAPI
/v1/seo/domain/keywordsPricing
$0.03 per call + $0.03 per 100 keywords, rounded up to the next whole cent.
| Keywords returned | Cost per call |
|---|---|
| 1 keyword | $0.04 |
| 10 keywords | $0.04 |
| 50 keywords | $0.05 |
| 100 keywords | $0.06 |
| 250 keywords | $0.11 |
| 500 keywords | $0.18 |
| 1,000 keywords | $0.33 |
Billed on the number of results actually returned, not the number requested. Failed calls are never charged.
Usage
const res = await fetch('https://api.yepapi.com/v1/seo/domain/keywords', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ domain: 'stripe.com', limit: 100 }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/seo/domain/keywords \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "stripe.com", "limit": 100}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
domain | string | Yes | Domain to analyze (without protocol, e.g., "stripe.com") | — |
limit | number | No | Maximum number of keywords to return | 100 |
offset | number | No | Rows to skip, for paging past limit. data.total tells you how many keywords exist. | 0 |
location_code | number | No | Target country code (e.g., 2840 for US). See Location Codes. | 2840 |
language | string | No | ISO language code (e.g., en, es) | "en" |
Filtering & Sorting
Narrow and order results with filters, match, and sort. Filter on the same
friendly field names returned in the response — volume, cpc, difficulty,
competition, competitionLevel, intent, keyword, plus words and
length (keyword length).
{
"filters": [
{ "field": "volume", "op": ">=", "value": 500 },
{ "field": "difficulty", "op": "<", "value": 40 },
{ "field": "intent", "op": "in", "value": ["informational", "commercial"] }
],
"match": "all",
"sort": ["volume:desc"]
}This endpoint also filters and sorts on the ranking itself — position, and
url (the ranking URL's path, matched with like and % as the wildcard).
That is how you scope results to a subfolder or one page:
{
"domain": "stripe.com",
"filters": [
{ "field": "url", "op": "like", "value": "/docs/%" },
{ "field": "position", "op": "<=", "value": 10 }
],
"sort": ["position:asc"]
}Use { "field": "url", "op": "=", "value": "/pricing" } for a single page.
See Keyword Filters for the full list of fields,
operators (>, >=, <, <=, =, !=, in, nin, like, not_like),
and limits (max 8 filters, 3 sort rules).
Response
{
"ok": true,
"data": {
"domain": "stripe.com",
"total": 115843,
"keywords": [
{
"keyword": "1 click checkout",
"position": 1,
"url": "https://stripe.com/resources/more/one-click-Checkout-101",
"volume": 170,
"cpc": 0.0,
"traffic": 51.68,
"trafficPercent": 0.0
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.domain | string | The domain that was analyzed |
data.total | number | How many keywords match in total, regardless of limit and offset |
data.keywords | object[] | Array of keyword ranking results |
data.keywords[].keyword | string | The keyword the domain ranks for |
data.keywords[].position | number | Current organic position in search results |
data.keywords[].url | string | URL of the ranking page on this domain |
data.keywords[].volume | number | Estimated monthly search volume |
data.keywords[].cpc | number | Average cost-per-click in USD |
data.keywords[].traffic | number | Estimated monthly organic traffic from this keyword |
data.keywords[].trafficPercent | number | Share of the domain's organic traffic from this keyword |
Under the hood, this queries our SEO data engine for all organic keyword rankings of the specified domain. We normalize positions, volumes, and URLs into a clean response format.