Open Graph Preview API — Preview Social Media Share Cards
Preview how a URL will look when shared on social media. Extract OG tags, Twitter Cards, and generate social share preview. Free API.
What is OG Preview?
Open Graph preview fetches a URL and extracts all social media meta tags including Open Graph (og:title, og:description, og:image, og:url, og:type), Twitter Cards (twitter:card, twitter:title, twitter:description, twitter:image), and renders a preview of how the link will appear when shared on Facebook, Twitter/X, LinkedIn, and Slack.
How to Use It
Call GET /api/v1/og-preview?url=https://example.com. Returns { og: object, twitter: object, preview: { title: string, description: string, image: string | null, domain: string } }.
Try it live
Test this endpoint in the interactive console
Open Console →
Frequently Asked Questions
What is og:image vs twitter:image?
og:image is used by Facebook, LinkedIn, and most platforms. twitter:image is specifically for Twitter's card display.