API Documentation
Simple, fast, and free API for extracting social media metadata from any URL. No authentication required.
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"]}'
Enhance with AI
AI-powered optimization of titles and descriptions
bash
curl -X POST "https://www.linkglimpse.com/api/enhance" \
-H "Content-Type: application/json" \
-d '{"metadata": {"title": "My Page", "description": "Description", "url": "https://example.com"}}'
GET /api/metadata
Extract metadata from any URL
?url=https://example.com
POST /api/bulk
Process multiple URLs at once
{urls: ['url1', 'url2']}
POST /api/enhance
AI-powered optimization
{metadata: {...}}
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!
Response Format
JSON Response
{
"title": "Page Title",
"description": "Page description",
"image": "https://example.com/image.jpg",
"url": "https://example.com",
"siteName": "Site Name",
"author": "Author Name"
}
Test the API
Free & Open
No authentication required. No rate limits. Completely free for everyone.
Fast & Reliable
Built on Next.js with server-side processing for optimal performance.
Error Handling
400 Bad Request
Missing required URL parameter
{"error": "URL parameter is required"}
500 Server Error
Failed to fetch or process the URL
{"error": "Failed to fetch URL metadata"}