URL Metadata API logo
ToolsMAINTAINED10 tokens / call

URL Metadata API

Title, description, Open Graph, Twitter Card, canonical and favicon for any public URL

Fetch any public web page and extract its metadata: title, description, canonical URL, favicon, Open Graph tags, and Twitter Card tags β€” everything needed to render rich link previews.

Every call needs an X-Api-Key header. A free key includes 500 tokens a month, no card required. 10 tokens per call, so the free plan covers about 50 calls a month.

No credit card requiredAccess to 125+ APIsCancel anytime
response.json
{
  "url": "https://github.com",
  "status": 200,
  "title": "GitHub Β· Change is constant. GitHub keeps you ahead.",
  "description": "Join the world's most widely adopted, AI-powered developer platform.",
  "favicon": "https://github.com/favicon.ico",
  "open_graph": {
    "title": "GitHub"
  },
  "twitter": {
    "card": "summary_large_image"
  }
}
Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 125+ APIs
Your DataAndAPIs subscription unlocks every API on the platform β€” anime, finance, sports, and more.

Use cases for URL Metadata API

  • Render rich link previews in a chat, forum, CMS or bookmarking product when a user pastes a URL.

  • Collect the social-share image and description of pages for a content library or newsletter builder.

  • Check what a page advertises to crawlers and social networks in an SEO audit tool.

  • Resolve the canonical URL of a link before deduplicating saved pages.

URL Metadata API endpoints

Every endpoint with its parameters and a real example response.

GETGet Metadata

https://api-url-metadata.dataandapis.com/v1/metadata

Query parameters

ParameterExample
urlhttps://github.comRequired

Example request

curl "https://api-url-metadata.dataandapis.com/v1/metadata?url=https%3A%2F%2Fgithub.com" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "url": "https://github.com",
  "final_url": "https://github.com/",
  "status": 200,
  "content_type": "text/html; charset=utf-8",
  "title": "GitHub Β· Change is constant. GitHub keeps you ahead.",
  "description": "Join the world's most widely adopted, AI-powered developer platform.",
  "canonical": "https://github.com/",
  "favicon": "https://github.com/favicon.ico",
  "meta": {
    "description": "Join the world's most widely adopted, AI-powered developer platform."
  },
  "open_graph": {
    "title": "GitHub",
    "image": "https://github.githubassets.com/assets/home-campaign.jpg"
  },
  "twitter": {
    "card": "summary_large_image"
  }
}

Where the data comes from

Source
Live fetch and parse of the target page's HTML. No stored dataset.
Freshness
Fetched live on every call.

One install. Every endpoint.

No proprietary SDKs needed. Any HTTP client works. Pick your language and paste.

3languages
1endpoints
RESTarchitecture
1key for all APIs
  • Fully typed responses β€” auto-completion in your IDE
  • Tracks the API in lockstep β€” new endpoints land same day
  • One key works across 125+ APIs on the platform
import axios from 'axios';

const { data } = await axios.get(
  'https://api-url-metadata.dataandapis.com/v1/metadata',
  { headers: { 'X-Api-Key': process.env.API_KEY } }
);

URL Metadata API Β· X-Api-Key

Explore the endpoints

Browse request parameters and inspect live example responses.

Available Endpoints

Request Parameters

API URL

Headers

X-Api-Key

Query Parameters

url(Required)
import axios from 'axios';

const url = 'https://api-url-metadata.dataandapis.com/v1/metadata';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});

One subscription. Every API.

Tokens unlock this API and 125+ others on DataAndAPIs. Switch APIs any time β€” we promote.

FREE

$0/mo

500 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Community support
Start free
Most Popular

STARTER

$6.99/mo

25,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Email support
Subscribe

PRO

$24.99/mo

100,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority email support
Subscribe

ULTRA

$99.99/mo

1,000,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority support
Subscribe

Need higher volume, dedicated infra, or a custom contract? Talk to sales β†’

Questions about URL Metadata API

Ship URL Metadata API this afternoon.

500 free tokens. No card. Plus 125+ other APIs on the same key.