Web ยท sync
og-card
Open Graph + Twitter card metadata from any URL. The Microlink alternative.
OG preview card
About
og-card is the cheap, fast, no-browser meta extractor every link-preview UI needs. Fetch the URL, parse with cheerio, return:
โข `title`, `description`, `language`, `siteName`, `type` (OG type, e.g. article / video) โข `image`, `imageAlt`, `imageWidth`, `imageHeight` โ image URL absolutized against the page URL โข `url_canonical` โ the rel=canonical or og:url โข `twitter` โ card type, site, creator, title, description, image โข `favicon` โ best-guess from link[rel=icon] / shortcut icon / apple-touch-icon, absolutized
No headless browser, so it's fast (~200-500 ms) but misses metadata that's injected client-side. SPAs that hydrate their `<head>` after page load need scrape-render instead.
Competes with: Microlink ($), Iframely ($), OpenGraph.io. Same response shape (close enough that callers can swap us in), marketplace pricing.
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
}
}
}These are descriptive previews. Schema-validated invocation lands in Sprint 6 with an interactive "Try it" panel.
Reviews (0)
No reviews yet โ be the first to share your experience.