Open Graph & Meta Tags

URL Metadata API

Extract Open Graph tags, title, description, favicon, and images from any URL with a single GET request. Build link previews in seconds.

What You Get Back

Title & Description

Page title and meta description

Open Graph

og:title, og:description, og:image, og:type

Favicon

Resolved favicon URL for the domain

Twitter Cards

twitter:card, twitter:title, twitter:image

Code Examples

cURL

curl "https://api-snap.com/api/meta?url=https://github.com" \
  -H "Authorization: Bearer snp_your_key"
# {"title":"GitHub","description":"...","og":{"title":"...","image":"..."},"favicon":"..."}

JavaScript

const res = await fetch(
  "https://api-snap.com/api/meta?url=https://example.com",
  { headers: { Authorization: "Bearer snp_your_key" } }
);
const { title, description, og, favicon } = await res.json();

Python

import requests

r = requests.get(
    "https://api-snap.com/api/meta",
    params={"url": "https://github.com"},
    headers={"Authorization": "Bearer snp_your_key"},
)
meta = r.json()
print(f"Title: {meta['title']}")
print(f"OG Image: {meta['og']['image']}")

Common Use Cases

Link previews

Build rich link preview cards like Slack, Twitter, and iMessage

SEO auditing

Check Open Graph and meta tags across pages in your SEO toolkit

Content aggregation

Extract titles and descriptions for RSS readers and news aggregators

Social sharing

Preview how URLs will appear when shared on social media

Start Extracting Metadata

Open Graph, favicons, and more. One GET request per URL.

Get Your Free API Key