YepAPI

Command Palette

Search for a command to run...

POST/v1/seo/onpage/content

Content Parsing API

Extract and analyze page content — word count, readability, keyword density, headings, and plain text. Content auditing from $0.03/call.

Parse any URL and extract the main body content with boilerplate removal. Returns clean text, word count, reading level, content structure, and keyword density — ideal for content quality analysis at scale.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/seo/onpage/content
Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "url": "https://example.com/blog/post",
    "wordCount": 1850,
    "readingLevel": "8th grade",
    "paragraphs": 24,
    "lists": 3,
    "tables": 1,
    "topKeywords": [
      {
        "keyword": "seo tools",
        "count": 12,
        "density": 0.65
      },
      {
        "keyword": "backlinks",
        "count": 8,
        "density": 0.43
      }
    ]
  }
}

Features

Boilerplate-free main content extraction

The endpoint strips navigation, ads, and footers to isolate the main article body, so your analysis runs on real content rather than chrome.

Word count and reading level analysis

Each parse returns a wordCount and a readingLevel (e.g. "8th grade"), letting you check whether a page hits the depth and readability your audience needs.

Keyword density and prominence scores

The topKeywords array returns each term with its count and density percentage, so you can audit keyword usage and spot over- or under-optimization.

Content structure breakdown (paragraphs, lists, tables)

Counts for paragraphs, lists, and tables quantify how a page is structured, useful for comparing your formatting against top-ranking content.

Use cases

Content Quality Analysis

Analyze competitor content depth and structure to ensure your pages meet or exceed the bar for top-ranking pages.

Content Inventory

Crawl your entire site and extract content metrics to identify thin pages, duplicate content, and optimization opportunities.

Quick start

Copy this snippet and start making calls.

const res = await fetch('https://api.yepapi.com/v1/seo/onpage/content', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "url": "https://example.com"
  }),
});
const data = await res.json();
console.log(data);

The content parsing API for developers — clean text, readability, keyword density & structure

The Content Parsing API extracts the main body of any URL with boilerplate removed, then returns word count, reading level, keyword density, and structural counts. It is the difference between scraping a messy page and getting clean, analyzable content metrics.

It is the content-depth complement to the On-Page Instant endpoint's structural audit. Together — under one YepAPI key, alongside Lighthouse — they cover a page's content quality, technical SEO, and performance.

What is a content parsing API?

A content parsing API fetches a page, removes boilerplate like nav and ads, and returns the main content along with quality metrics. From a URL you get wordCount, a readingLevel grade, structural counts of paragraphs, lists, and tables, and a topKeywords array with each term's count and density. That turns a messy HTML page into measurable content data. Unlike a raw scraper, it isolates the article first, so density and word counts reflect the real copy. YepAPI serves it at /v1/seo/onpage/content: post a URL and receive the parsed content metrics as JSON.

Build your own content QA tool

Build an editorial scorer that compares a draft's wordCount and readingLevel against the average of top-ranking pages and tells writers when a piece is too thin or too dense. Use the topKeywords density figures to flag keyword stuffing or to confirm a target term appears at a healthy rate. The paragraphs/lists/tables counts power a structure check that nudges writers toward the formatting that wins featured snippets. Pair with the Content Search API to gather competing pages, then parse each to benchmark depth.

Content parsing API pricing — $0.03/call

Parsing a page is a flat $0.03 per call — one URL in, one content profile out, no row-based add-on. Analyzing a hundred competing articles to benchmark a topic costs about $3. Enterprise SEO suites bundle similar content analysis behind $0.15-per-call tiers and annual plans; here it is three cents a page with no commitment, cheap enough to parse every page you publish.

Benchmark content depth against competitors

Pull the top-ranking URLs for a target keyword and run each through the parser to compute the average wordCount, reading level, and structural mix that Google currently rewards. If the leaders average 2,400 words with several lists and a table, your thin 800-word draft has a clear gap to close. The topKeywords density across competitors reveals which terms the winning pages emphasize, giving you a concrete, data-backed content brief.

Try the content parsing API free

Sign up for $5 of free credit, no card required — enough to parse well over a hundred pages. Test it on a known article, confirm the boilerplate removal and density figures match the visible copy, and wire the clean text into your QA pipeline before you spend.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Parse any URL and extract the main body content with boilerplate removal. Returns clean text, word count, reading level, content structure, and keyword density — ideal for content quality analysis at scale.

Each API call costs $0.03. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/seo/onpage/content. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More seo apis endpoints