Check keyword density
check_keyword_densityComputes keyword density for a public page URL or a block of text (exactly one of url or text): total and unique words, sentences, reading time, and the most frequent one-, two- and three-word phrases with count and density. With target_keyword it also returns its count, density, a verdict (ideal between 0.5% and 2.5%) and whether it appears in the title, meta description, H1 and first 100 words (placement flags are null for pasted text). Pages are fetched server-side as Googlebot with a Chrome fallback, JavaScript is not executed, at most 1 MB of HTML is read and the extracted text is cached for 1 hour. Fails for pages behind bot protection, non-HTML URLs or JavaScript-only pages: pass the page text instead. Any public page can be checked, not only the user's websites. Limited to 20 checks per 15 minutes. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) page URL to fetch and analyze. Exactly one of url or text must be set: sending both or neither is rejected. | |
| text | No | Raw text to analyze (max 200000 characters). Exactly one of url or text must be set: sending both or neither is rejected. | |
| max_phrases | No | How many phrases to return per phrase length (1 to 50). | |
| target_keyword | No | Keyword or phrase to measure density and placement for. | |
| exclude_stop_words | No | Skip phrases that start or end with an English stop word (the, of, and...). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | null when text was analyzed. | |
| report | Yes |