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

NameTypeDescription
url requiredstringThe page to analyse.
n optionalintegerWords per phrase (n-gram length), 1–5. Default: 1.
limit optionalintegerMax phrases to return. Default: 25.

Request

Response

200 · application/json
  1. {
  2. "url": "https://example.com",
  3. "totalWords": 412,
  4. "n": 2,
  5. "items": [
  6. { "keyword": "seo audit", "frequency": 9, "density": 2.18 },
  7. { "keyword": "on page", "frequency": 6, "density": 1.46 }
  8. ]
  9. }

Response fields

FieldTypeDescription
totalWordsintegerTotal words in the visible page text.
items[].keywordstringThe word or phrase.
items[].frequencyintegerTimes it appears.
items[].densitynumberPercentage of total words.

See Errors for status codes.