Keyword density
GET /api/v1/keyword-density
Extract the most frequent words and phrases on a page, with counts and density. Choose the phrase length (1–5 word n-grams) to see single keywords or longer key phrases.
Query parameters
| Name | Type | Description |
|---|---|---|
url required | string | The page to analyse. |
n optional | integer | Words per phrase (n-gram length), 1–5. Default: 1. |
limit optional | integer | Max phrases to return. Default: 25. |
Request
Response
200 · application/json
- {
- "url": "https://example.com",
- "totalWords": 412,
- "n": 2,
- "items": [
- { "keyword": "seo audit", "frequency": 9, "density": 2.18 },
- { "keyword": "on page", "frequency": 6, "density": 1.46 }
- ]
- }
Response fields
| Field | Type | Description |
|---|---|---|
totalWords | integer | Total words in the visible page text. |
items[].keyword | string | The word or phrase. |
items[].frequency | integer | Times it appears. |
items[].density | number | Percentage of total words. |
See Errors for status codes.