← Back to MetaPeek

Extract Facebook Open Graph Metadata from Any URL

When you share a link on Facebook, it reads Open Graph (OG) tags to generate the preview card. MetaPeek lets you extract these exact tags from any URL with a single API call -- so you can see how links will appear on Facebook before sharing them, build link preview features, or audit your own site's social metadata.

What Facebook OG Tags Does MetaPeek Extract?

og:title

The title shown in the Facebook share card

og:description

The description text below the title

og:image

The preview image (1200x630px recommended)

og:url

The canonical URL Facebook will use

og:type

Content type (website, article, product, etc.)

og:site_name

The website/brand name

Quick Example

curl "https://metapeek.grabshot.dev/v1/extract?url=https://github.com" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response includes all Open Graph tags:

{
  "url": "https://github.com",
  "title": "GitHub: Let's build from here",
  "openGraph": {
    "og:title": "GitHub: Let's build from here",
    "og:description": "GitHub is where over 100 million developers...",
    "og:image": "https://github.githubassets.com/assets/campaign-social.png",
    "og:url": "https://github.com",
    "og:type": "website",
    "og:site_name": "GitHub"
  },
  "meta": { ... },
  "favicons": [ ... ]
}

Common Use Cases

🔗 Link Preview in Chat Apps

Building a Slack bot, Discord bot, or messaging app? Use MetaPeek to generate rich link previews showing the title, description, and image -- just like Facebook does.

📊 SEO & Social Media Auditing

Check how your pages appear when shared on Facebook, Twitter, and LinkedIn. Catch missing or incorrect OG tags before your content goes live.

📰 Content Aggregation

Building a news reader or content curation tool? Extract metadata from article URLs to display rich cards with images and descriptions.

🔍 Competitive Intelligence

Monitor how competitors present their pages on social media. Track changes to their OG tags over time.

Why MetaPeek vs. DIY Scraping?

Start Extracting Facebook Metadata

Free tier includes 50 API calls per month. No credit card required.

Get Free API Key →