Domain Analysis
Domain Keywords
Get every keyword a domain ranks for with positions, search volume, CPC, and landing URLs.
POST
$0.04/call/v1/seo/domain/keywordsUsage
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 |
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" |
Response
{
"ok": true,
"data": [
{ "keyword": "stripe", "position": 1, "searchVolume": 450000, "cpc": 8.5, "url": "https://stripe.com" },
{ "keyword": "payment gateway", "position": 3, "searchVolume": 74000, "cpc": 12.3, "url": "https://stripe.com/payments" }
]
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.domain | string | The domain that was analyzed |
data.totalKeywords | number | Total number of ranking keywords found |
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[].searchVolume | number | Estimated monthly search volume |
data.keywords[].cpc | number | Average cost-per-click in USD |
data.keywords[].url | string | URL of the ranking page on this domain |
data.keywords[].traffic | number | Estimated monthly organic traffic from this keyword |
Under the Hood
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.