📊Data Extraction

Scrape Open Graph Tags from Any URL

Open Graph tags are how the web communicates "hey, if you share this link, show this title and image." They're in the HTML head, they're inconsistent, and parsing them yourself is tedious. denkbot.dog extracts them all automatically. The dog reads the `<head>` so you don't have to.

What you'd use this for

Building link preview components, social sharing features, content aggregation with rich metadata, and any feature that needs to display information about a URL.

How it works

example
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 { metadata } = await res.json()
// metadata.ogTitle, metadata.ogDescription, metadata.ogImage

Questions & Answers

Which OG properties are extracted?+

og:title, og:description, og:image, og:url, og:type, og:site_name, twitter:card, twitter:title, twitter:image.

What if the page uses Twitter Card instead of OG?+

Both are extracted. twitter:title, twitter:description, twitter:image are all included in the metadata object.

Does it work with dynamic OG tags?+

For server-rendered OG tags, yes. For client-side injected OG tags, pass renderJs: true.

Ready to start fetching?

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