← Back to MetaPeek

Link Preview API for Your App

Slack shows link previews. Discord shows link previews. iMessage shows link previews. Your users expect the same. MetaPeek gives you a simple REST API to extract the title, description, image, and favicon from any URL -- so you can render beautiful link cards in your app.

How It Works

1

User pastes a URL in your app

Could be a blog post, tweet, YouTube video, product page -- anything.

2

Your backend calls MetaPeek

GET /v1/extract?url=https://example.com
Authorization: Bearer YOUR_API_KEY
3

Render a rich link card

Use the returned title, description, image URL, and favicon to display a card -- just like the big platforms do.

What You Get Back

{
  "url": "https://example.com/article",
  "title": "The Article Title",
  "description": "A compelling description...",
  "openGraph": {
    "og:title": "The Article Title",
    "og:description": "A compelling description...",
    "og:image": "https://example.com/image.jpg",
    "og:site_name": "Example"
  },
  "twitter": {
    "twitter:card": "summary_large_image",
    "twitter:title": "The Article Title"
  },
  "favicons": [
    { "href": "https://example.com/favicon.ico", "type": "image/x-icon" }
  ],
  "meta": {
    "author": "Jane Smith",
    "published_time": "2026-01-15T10:00:00Z"
  }
}

Code Examples

Node.js

const res = await fetch(
  `https://metapeek.grabshot.dev/v1/extract?url=${encodeURIComponent(url)}`,
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { title, openGraph, favicons } = await res.json();
// Render your link card with title, openGraph['og:image'], etc.

Python

import requests

r = requests.get(
    "https://metapeek.grabshot.dev/v1/extract",
    params={"url": url},
    headers={"Authorization": f"Bearer {API_KEY}"}
)
data = r.json()
preview_image = data["openGraph"].get("og:image")

Why MetaPeek?

Pricing

Free

$0

50 requests/month

Starter

$9/mo

5,000 requests/month

Pro

$29/mo

25,000 requests/month

Add Link Previews to Your App

Free to start. Upgrade when you need more volume.

Get Free API Key →