Docs · Reference
Keyword Density
GET /v1/url/keyword-density1 credit / requestcache 60 minThe words and phrases (1-3 word n-grams) a page repeats most, with counts and density as a percentage of all words. Stopwords are excluded.
Query parameters
urlstring · required | Public http(s) URL to analyse. |
topinteger | How many terms to return per n-gram size. Default: 20 |
ngramsarray | N-gram sizes (1, 2 and/or 3). |
respect_robotsboolean | Refuse URLs disallowed by the site's robots.txt. Default: true |
max_ageinteger | Accept a cached answer up to this many seconds old, billed at 50%. |
Response data fields
total_words / unique_words· Word counts after tokenization.keywords· Object keyed by n-gram size ("1", "2", "3"), each a list of { term, count, density } sorted by count.
Example
curl "https://api.gridlode.com/v1/url/keyword-density?url=https%3A%2F%2Fexample.com%2F&top=5" \
-H "Authorization: Bearer $GRIDLODE_KEY"Try it without code on the Keyword Density API page.