URL Metadata API for Open Graph
Extract Open Graph, Twitter Card, canonical, robots and image metadata from any public URL. Test the free API and copy examples in eight languages.
URL Metadata API Quick Start
Get metadata for any URL
Extract Open Graph, Twitter Cards, and meta tags
bash
curl "https://www.linkglimpse.com/api/metadata?url=https://example.com"Process multiple URLs
Process up to 100 URLs at once
bash
curl -X POST "https://www.linkglimpse.com/api/bulk" \
-H "Content-Type: application/json" \
-d '{"urls": ["https://example.com", "https://google.com"]}'GET /api/metadata — Inspect One URL
Extract metadata from any URL
?url=https://example.comPOST /api/bulk — Inspect Multiple URLs
Process multiple URLs at once
{urls: ['url1', 'url2']}Code Examples
JavaScript (Fetch API)
1const response = await fetch('https://www.linkglimpse.com/api/metadata?url=https://example.com');
2const data = await response.json();
3console.log(data);💡 Tip: Click on any language above to see the code example in your preferred programming language. More languages coming soon!
Open Graph API Response Format
JSON Response
{
"title": "Page Title",
"description": "Page description",
"image": "https://example.com/image.jpg",
"url": "https://example.com",
"finalUrl": "https://example.com",
"redirectChain": [{ "url": "https://example.com", "status": 200 }],
"diagnostics": { "score": 92, "checks": [], "platforms": [] }
}Test the URL Metadata API
Free URL Metadata API
No API key required for reasonable interactive checks, prototypes, and release tooling.
Fast Server-Side Metadata Fetching
Built on Next.js with server-side processing for optimal performance.
Metadata API Error Handling
400 Bad Request
Missing required URL parameter
{"error": "URL parameter is required"}422 or 504 Inspection Error
The target could not be safely fetched, parsed, or reached before timeout
{"error": "Failed to fetch URL metadata"}