DataForSEO OnPage API icon

DataForSEO OnPage API

DataForSEO

Get Keyword Density

AI-generated

Summary

Retrieve keyword frequency and density data from a DataForSEO OnPage crawl. Choose the target domain and keyword phrase length; optionally focus on a page and filter, sort, or limit the results.

Inputs

  • Target Domain (required) — Domain to crawl, entered without https:// or www.
  • Crawled Pages Limit (required) — Maximum number of pages for the crawl.
  • Number of Words for a Keyword (required) — Keyword phrase length, from 1 to 5 words.
  • Page URL — Optionally restrict keyword density results to a specific page.
  • First URL to Crawl — Absolute starting URL for the crawl; set this and Crawled Pages Limit to 1 to crawl a single page.
  • Filters — Optional JSON array of DataForSEO-supported result filters. Invalid JSON causes an operation error.
  • Sort — Optional sorting rules, each specifying a field and ascending or descending direction; up to three rules.
  • Limit — Maximum results to return, from 1 to 1000; defaults to 50.
  • Crawl settings — Optional crawl controls include depth, delay, priority URLs, sitemap and robots.txt handling, subdomain inclusion, browser settings, cookies, JavaScript, resources, spelling checks, keyword density calculation, thresholds, disabled checks, proxy pool switching, and timeout handling.

Output shape

A single DataForSEO response object for each input item.

The node submits a keyword-density task and polls for its result. Each output item contains the response in json and is paired with its input item; API task errors may be returned in the response object.

Links

Discussion