Open Graph
Fetch page metadata and return title, description, canonical URL, Open Graph, and Twitter card tags as clean JSON.
GET /api/open-graph
Try it
{
"input_url": "https://example.com",
"final_url": "https://www.example.com/",
"status": 200,
"title": "Example Domain",
"description": "Example description",
"canonical": "https://www.example.com/",
"open_graph": {
"title": "Example Domain",
"description": "Example description",
"type": "website"
},
"twitter": {
"card": "summary_large_image",
"title": "Example Domain"
},
"error": null,
"meta": {
"responseTimeMs": 96,
"cached": false,
"rateLimitedScope": "global"
}
}What it returns
- •input_url - the URL you submitted
- •final_url - the final URL after redirects
- •status - HTTP status of the final response
- •title - best available page title
- •description - best available page description
- •canonical - canonical URL if present
- •open_graph - parsed og:* meta tags
- •twitter - parsed twitter:* meta tags
- •error - error code when extraction fails
Use cases
- •Preview page metadata before storing links
- •Validate Open Graph tags in CI
- •Check canonical URLs during SEO audits
- •Extract Twitter card fields for social previews
- •Build metadata pipelines without custom scrapers
Quick API examples
curl
curl "https://tinyutils.dev/api/open-graph?url=https://example.com"
JavaScript (fetch)
const res = await fetch( "https://tinyutils.dev/api/open-graph?url=https://example.com" ); const data = await res.json(); console.log(data.title, data.canonical);