Skip to content
Gridlode
LiveWeb pages and crawling1 credit / request

Keyword Density API

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.

GEThttps://api.gridlode.com/v1/url/keyword-density

Try it live

Try . Free, no account needed.

Parameters

NameTypeDescription
urlrequiredstringPublic http(s) URL to analyse.
topintegerHow many terms to return per n-gram size.
Default: 20
ngramsarray of integerN-gram sizes (1, 2 and/or 3).
respect_robotsbooleanRefuse URLs disallowed by the site's robots.txt.
Default: true
max_ageintegerAccept a cached answer up to this many seconds old, billed at 50%. Default 0 (always fresh).

Response 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.

Code

curl "https://api.gridlode.com/v1/url/keyword-density?url=https%3A%2F%2Fexample.com%2F&top=5" \
  -H "Authorization: Bearer $GRIDLODE_KEY"
1 credit per request
One credit is $0.001 on the smallest pack, from $0.0003 on enterprise plans.
Half price for cached data
Cached for up to 1 h. Pass max_age to use it.
Failed requests are free
Blocks, timeouts and target errors never cost credits.

Market reference: TabAPI Keyword Density: 1 credit ($1.00/1k).

Questions

How is density calculated?

Occurrences × words in the phrase ÷ total words × 100. Stopwords at the start or end of a phrase are skipped.

How much does the Keyword Density API cost?

1 credit per request. One credit costs $0.001 on the smallest pack and as little as $0.0003 on enterprise plans. Cached answers cost half and failed calls are free.

Web pages and crawling
All 13 in Web pages and crawling · 13 live
Live

URL to Markdown

The main content of a web page as clean Markdown (boilerplate, navigation and ads removed) with title, description, author, publish date and language

1 credit / requestTry freeDocs
Live

Website Crawler (Markdown for RAG)

Crawl a website from a start URL (and optionally its XML sitemap) and get every page back as clean Markdown with title, description, language, word…

1 credit / pageDocs
Live

Screenshot

A screenshot of any public web page, rendered in real Chrome with JavaScript

2 credits / requestTry freeDocs
Live

Page HTML

The raw HTML of any public web page with final URL, status code, redirect chain and key headers

1 credit / requestTry freeDocs
Live

Broken Link Checker

Crawl a website and check every internal and external link for 404s, server errors, timeouts and redirect chains

1 credit / pageTry freeDocs