Overview
- Category
- Text Tools
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/keyword-density-checker
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/keyword-density-checker/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
text· string · required- Paste the page copy or article text to analyze.
target_keyword· string · optional- Enter an optional word or phrase to highlight.
phrase_length· string · required-
Choose the frequency list that matches the calculation. Accepted values:
1, 2, 3. result_limit· number · required- Enter the top terms to show used in the calculation.
exclude_common_words· boolean · optional- Turn exclude common english words on or off.
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Paste the page copy or article text to analyze."
},
"target_keyword": {
"type": "string",
"description": "Enter an optional word or phrase to highlight."
},
"phrase_length": {
"type": "string",
"description": "Choose the frequency list that matches the calculation.",
"enum": [
"1",
"2",
"3"
]
},
"result_limit": {
"type": "number",
"description": "Enter the top terms to show used in the calculation.",
"minimum": 5,
"maximum": 100
},
"exclude_common_words": {
"type": "boolean",
"description": "Turn exclude common english words on or off."
}
},
"required": [
"text",
"phrase_length",
"result_limit"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
target_density· number- Target keyword density produced by the calculation.
target_count· number- Target occurrences produced by the calculation.
total_words· number- Total words produced by the calculation.
unique_words· number- Unique words produced by the calculation.
top_terms· array- Most frequent terms produced by the calculation.
{
"type": "object",
"properties": {
"target_density": {
"type": "number",
"description": "Target keyword density produced by the calculation."
},
"target_count": {
"type": "number",
"description": "Target occurrences produced by the calculation."
},
"total_words": {
"type": "number",
"description": "Total words produced by the calculation."
},
"unique_words": {
"type": "number",
"description": "Unique words produced by the calculation."
},
"top_terms": {
"type": "array",
"description": "Most frequent terms produced by the calculation."
}
},
"additionalProperties": false
}
Keyword Density Checker example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/keyword-density-checker/execute" \
-H "Content-Type: application/json" \
-d '{
"text": "Useful browser tools should be fast, clear, and private. UtilityPages builds clear tools for everyday tasks.",
"target_keyword": "browser tools",
"phrase_length": "1",
"result_limit": 15,
"exclude_common_words": true
}'
{
"ok": true,
"data": {
"slug": "keyword-density-checker",
"result": {
"values": {
"target_density": 6.6699999999999999289457264239899814128875732421875,
"target_count": 1,
"total_words": 16,
"unique_words": 14,
"top_terms": [
{
"term": "clear",
"count": 2,
"density_percent": 15.3800000000000007815970093361102044582366943359375
},
{
"term": "tools",
"count": 2,
"density_percent": 15.3800000000000007815970093361102044582366943359375
},
{
"term": "browser",
"count": 1,
"density_percent": 7.69000000000000039079850466805510222911834716796875
},
{
"term": "builds",
"count": 1,
"density_percent": 7.69000000000000039079850466805510222911834716796875
}
]
},
"display": {
"display": "6.67"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.