Free tier — 100 requests/month

Extract metadata from any URL.
One API call.

Get titles, descriptions, Open Graph tags, Twitter Cards, favicons, and JSON-LD structured data. Build link previews in minutes, not days.

Try it now

Demo Example result — enter your API key to extract any URL
github.com

GitHub: Let's build from here

GitHub is where over 100 million developers shape the future of software, together.

Extracted in 245ms Powered by MetaScrape

Embed link previews anywhere

Customize the widget, preview it live, then copy two lines of HTML.

Customize

Theme
Width
HTML
<div class="metascrape-card"
     data-url="https://example.com"
     data-key="msk_your_key"
     data-theme="dark">
</div>
<script src="https://metascrape.shanecode.org/embed.js" async></script>
data-theme "light" or "dark" data-width any CSS width

Official SDKs

Install our official client libraries. Zero dependencies. Full API coverage.

JS
Node.js / JavaScript
npm
npm install @shanecode/metascrape
import { MetaScrape } from '@shanecode/metascrape';

const ms = new MetaScrape('msk_your_key');
const meta = await ms.extract('https://github.com');
console.log(meta.title, meta.og.image);
Py
Python
PyPI
pip install metascrape
from metascrape import MetaScrape

ms = MetaScrape("msk_your_key")
meta = ms.extract("https://github.com")
print(meta["title"], meta["og"]["image"])

Integrate in minutes

curl
curl "https://api.shanecode.org/v1/extract\
  ?url=https://github.com" \
  -H "X-API-Key: msk_your_key_here"
JavaScript
const res = await fetch(
  'https://api.shanecode.org/v1/extract?url=https://github.com',
  { headers: { 'X-API-Key': 'msk_your_key' } }
);
const { data } = await res.json();
Python
import requests

r = requests.get(
    "https://api.shanecode.org/v1/extract",
    params={"url": "https://github.com"},
    headers={"X-API-Key": "msk_your_key"}
)
data = r.json()["data"]
npm
import MetaScrape from '@shanecode/metascrape';

const ms = new MetaScrape('msk_your_key');
const data = await ms.extract('https://github.com');
console.log(data.title, data.og.image);

Simple pricing

Start free. Upgrade when you need more.

Free

$0

100 requests/month

  • All metadata fields
  • 1hr response caching
  • Community support
Get Started Free
Popular

Hobby

$9/mo

1,000 requests/month

  • Everything in Free
  • Priority support
Get Started

Growth

$29/mo

10,000 requests/month

  • Everything in Hobby
  • Webhook notifications
Get Started

Business

$79/mo

100,000 requests/month

  • Everything in Growth
  • Dedicated support
Get Started

API Reference

GET /v1/extract

Extract metadata from a URL.

Parameters
url string, required The URL to extract metadata from
Headers
X-API-Key string, required Your API key (starts with msk_)
Response
{
  "data": {
    "url": "https://github.com",
    "domain": "github.com",
    "title": "GitHub: Let's build from here",
    "description": "GitHub is where over 100 million developers...",
    "canonical_url": "https://github.com",
    "favicon": "https://github.com/favicon.ico",
    "language": "en",
    "og": {
      "title": "GitHub: Let's build from here",
      "description": "GitHub is where over 100 million developers...",
      "image": "https://github.githubassets.com/assets/campaign-social.png",
      "type": "website",
      "site_name": "GitHub"
    },
    "twitter": {
      "card": "summary_large_image",
      "title": "GitHub: Let's build from here",
      "image": "https://github.githubassets.com/assets/campaign-social.png",
      "site": "@github"
    },
    "structured_data": [
      {
        "@context": "https://schema.org",
        "@type": "WebSite",
        "name": "GitHub",
        "url": "https://github.com"
      }
    ],
    "response_time_ms": 245
  },
  "cached": false
}

GET /v1/usage

Check your current month's usage and remaining quota.

{
  "plan": "hobby",
  "used": 142,
  "limit": 1000,
  "remaining": 858
}
Built with Go + Redis + Cloudflare Available on RapidAPI HTTPS & key-authenticated

Built by a developer, for developers

I needed a reliable way to extract link previews and OG metadata for a side project. Every existing API was either expensive, unreliable, or both. MetaScrape is my answer to that.

— Shane Burrell · [email protected]

Start extracting metadata

Free tier. No credit card. API key in 30 seconds.

Get Your API Key