Skip to main content

Keyword Analysis

developer
GET/v1/domain/keyword-analysis

Performs on-page keyword analysis including keyword extraction, density calculation, phrase analysis, and alignment checks between title, headings, meta description, and content.

What It Does

Extracts and analyzes keywords from page elements: title tag, meta description, H1/H2 headings, and body content. Calculates density for single words, two-word phrases, and three-word phrases. Checks keyword alignment across page elements (does the title contain the top keyword? does the H1?). Evaluates content focus as focused, moderate, or scattered.

Why It's Useful

Keyword optimization is foundational to SEO. This analysis reveals whether your content is focused on target keywords, whether key page elements are aligned, and identifies over-optimization or keyword stuffing risks.

Use Cases

Content Writer

Content Optimization

Analyze a published page to verify keyword usage and density align with target terms.

Optimize content for target keywords without over-optimization.

SEO Strategist

Competitive Keyword Analysis

Analyze competitor pages to understand which keywords they target and how they optimize.

Inform content strategy based on competitor keyword targeting.

SEO Manager

Content Audit

Bulk-analyze pages across a site to identify keyword cannibalization and content gaps.

Resolve keyword conflicts and find new content opportunities.

Parameters

NameTypeRequiredDescription
domainstringRequiredThe domain to perform keyword analysis onExample: example.com

Response Fields

FieldTypeDescription
domainstringThe analyzed domain
targetKeywordsarrayInferred target keywords from title, H1, and meta description
titleKeywordsarrayKeywords found in the title tag
metaDescriptionKeywordsarrayKeywords found in the meta description
h1KeywordsarrayKeywords found in H1 headings
h2KeywordsarrayKeywords found in H2 headings
singleWordsarrayTop single keywords with count and density
twoWordPhrasesarrayTop two-word phrases with density
threeWordPhrasesarrayTop three-word phrases with density
keywordAlignmentobjectWhether top keywords appear in title, H1, URL, and meta
metaKeywordsobjectMeta keywords tag analysis with present flag, keywords array, and note
contentFocusobjectContent focus score and assessment (focused/moderate/scattered)
wordCountnumberTotal word count of page content
scorenumberKeyword optimization score (0-100)
gradestringLetter grade (A-F) based on score
recommendationsarrayKeyword optimization suggestions

Code Examples

cURL
curl "https://api.edgedns.dev/v1/domain/keyword-analysis" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d "domain=example.com"
JavaScript
const response = await fetch(
  'https://api.edgedns.dev/v1/domain/keyword-analysis?domain=example.com',
  {
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  }
);

const data = await response.json();
console.log(data);
Python
import requests

response = requests.get(
    'https://api.edgedns.dev/v1/domain/keyword-analysis',
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    params={
    'domain': 'example.com'
    }
)

data = response.json()
print(data)

Read the full Keyword Analysis guide

Why it matters, real-world use cases, parameters, response fields, and how to call it from Claude, ChatGPT, or Gemini via MCP.

Read the guide →

Related Endpoints

External References

Learn more about the standards and protocols behind this endpoint.

Try This Endpoint

Test the Keyword Analysis endpoint live in the playground.