📊Data Extraction

Extract Headings from Any Webpage

Headings are the skeleton of a webpage. They tell you what the content is about, how it's structured, and whether the SEO is a disaster. denkbot.dog returns the full HTML — extracting the h1-h6 tags is a two-line filter. We do the heavy lifting. You write the selector.

What you'd use this for

Content structure audits, extracting article outlines, validating heading hierarchies, building table of contents generators, and on-page SEO analysis.

How it works

example
const cheerio = require('cheerio')

const res = await fetch('https://api.denkbot.dog/scrape', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ url: 'https://example.com/article' }),
})
const { html } = await res.json()
const $ = cheerio.load(html)
const headings = $('h1,h2,h3').map((_, el) => ({
  tag: el.tagName,
  text: $(el).text().trim(),
})).get()

Questions & Answers

Does the API extract headings directly?+

Not as a separate field yet. You get the full HTML and can extract headings with any HTML parser.

What about headings injected by JavaScript?+

Pass renderJs: true to capture JS-injected headings.

Is structured heading extraction on the roadmap?+

Yes. A headings array in the response is planned.

Ready to start fetching?

€19/year. Unlimited requests. API key ready in 30 seconds.