API Endpoint
GET /metadata
Extract metadata from a webpage by providing its URL.The URL of the webpage to extract metadata from. Must be a valid HTTP or HTTPS URL.
Example Request
Response Structure
Indicates if the request was successful
The extracted metadata from the webpage
The page title extracted from the
<title> tagThe page description from meta tags or Open Graph description
The canonical URL if specified in the page
Open Graph metadata properties
Open Graph title (og:title)
Open Graph description (og:description)
Open Graph image URL (og:image)
Open Graph content type (og:type)
Open Graph canonical URL (og:url)
Open Graph site name (og:site_name)
Example Response
Error Responses
Invalid URL
Fetch Error
Deployment
Use Cases
- Link Previews: Generate rich previews for shared links in chat applications
- SEO Analysis: Audit metadata across multiple pages
- Content Aggregation: Collect and display metadata from external sources
- Social Media Tools: Extract Open Graph data for social sharing optimization
- Bookmark Managers: Automatically fetch metadata when saving URLs
Technical Details
- Built with Hono framework
- Runs on Cloudflare Workers
- HTML parsing with regex-based extraction
- Fetches and processes pages up to the configured size limit
- Returns structured JSON with comprehensive metadata