Keyword density: top keywords and phrases of a text or page
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
Keyword density of a text or a web page: the most frequent words and two-word phrases (English stop words removed), each with its count and share of all words, plus total and unique word counts. Give text, or a URL whose readable text is used (HTML, up to 1 MB). Use for SEO copy checks, comparing a page against a target keyword, or summarising what a page is about; for readability use text_stats.
Guide: Keyword research API, keyword ideas
Inputs
| Name | Type | Description |
|---|---|---|
text | string | The text (up to 50,000 characters); or give url instead |
url | string | A page URL to analyse instead of text |
top | integer | How many keywords and phrases to return, 1-50 (default 15) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/text/keyword-density?text=Agents%20pay%20per%20call.%20Agents%20pay%20with%20USDC.%20Pay%20per%20call%20tools%20for%20agents."
Node.js
const r = await fetch("https://glyphtools.com/text/keyword-density?text=Agents%20pay%20per%20call.%20Agents%20pay%20with%20USDC.%20Pay%20per%20call%20tools%20for%20agents.", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/text/keyword-density?text=Agents%20pay%20per%20call.%20Agents%20pay%20with%20USDC.%20Pay%20per%20call%20tools%20for%20agents.", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/text/keyword-density?text=Agents%20pay%20per%20call.%20Agents%20pay%20with%20USDC.%20Pay%20per%20call%20tools%20for%20agents.&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"source": "text",
"totalWords": 14,
"uniqueWords": 8,
"keywords": [
{
"word": "agents",
"count": 3,
"densityPct": 21.43
},
{
"word": "pay",
"count": 3,
"densityPct": 21.43
},
{
"word": "call",
"count": 2,
"densityPct": 14.29
}
],
"phrases": [
{
"phrase": "agents pay",
"count": 2,
"densityPct": 14.29
}
]
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is text_keyword_density, and the first 10 successful calls are free:
https://glyphtools.com/mcp