URL Metadata API - Extract Open Graph, Title & Favicon
Fetches a URL and extracts title, description, Open Graph tags, Twitter Card tags, favicon, canonical URL, language, author, keywords, and theme color. Useful for link previews and social sharing.
Code examples
curl -X POST https://api.botoi.com/v1/url-metadata \
-H "Content-Type: application/json" \
-d '{"url":"https://github.com"}'When to use this API
Generate rich link previews in a chat app
When a user pastes a URL into a chat message, call this endpoint to fetch the title, description, and OG image. Render a preview card below the message, similar to how Slack or Discord display link unfurls.
Validate OG tags before publishing content
Before sharing a blog post on social media, extract its OG tags to confirm the title, description, and image are correct. Catch missing or truncated metadata before it goes live on Twitter, LinkedIn, or Facebook.
Build a bookmark manager with automatic metadata
When a user saves a URL to their bookmark collection, auto-populate the title, description, and thumbnail from the extracted metadata. Save the user from manually entering details for each bookmark.
Frequently asked questions
Does this endpoint follow redirects?
What is the difference between og and twitter fields?
Can I extract metadata from single-page apps?
Is there a timeout for slow URLs?
What does the canonical field contain?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.