Skip to content
Gridlode
Docs · Reference

Keyword Density

GET /v1/url/keyword-density1 credit / requestcache 60 min

The 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

url
string · required
Public http(s) URL to analyse.
top
integer
How many terms to return per n-gram size.
Default: 20
ngrams
array
N-gram sizes (1, 2 and/or 3).
respect_robots
boolean
Refuse URLs disallowed by the site's robots.txt.
Default: true
max_age
integer
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.