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.
Building link preview components, social sharing features, content aggregation with rich metadata, and any feature that needs to display information about a URL.
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.ogImageog:title, og:description, og:image, og:url, og:type, og:site_name, twitter:card, twitter:title, twitter:image.
Both are extracted. twitter:title, twitter:description, twitter:image are all included in the metadata object.
For server-rendered OG tags, yes. For client-side injected OG tags, pass renderJs: true.

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