MetaThief Icon
MetaThief

API Documentation

Overview
The MetaThief API allows you to fetch meta information from any website.

Base URL: /api/meta

Endpoints

Get Meta Information

GET /api/meta?url=https://example.com

Fetches all meta information from the specified URL.

Query Parameters:

  • url (required) - The URL to fetch meta information from
  • meta (optional) - Comma-separated list of specific meta tags to fetch

Examples:

Fetch all meta information:

/api/meta?url=https://example.com

Fetch specific meta tags:

/api/meta?url=https://example.com&meta=title,description,favicon

Supported Meta Tags:

  • language
  • charset
  • viewport
  • title
  • description
  • keywords
  • favicon
  • author
  • generator
  • theme
  • canonical
  • ogUrl
  • ogTitle
  • ogSiteName
  • ogDescription
  • ogImage
  • ogImageAlt
  • ogType
  • twitterSite
  • twitterCard
  • twitterTitle
  • twitterCreator
  • twitterDescription
  • twitterImage
  • robots
  • icons

Response Format:

{
  "title": "Example Website",
  "description": "Website description",
  "favicon": "https://example.com/favicon.ico",
  "icons": [
    "https://example.com/favicon.ico",
    "https://example.com/apple-touch-icon.png"
  ],
  // ... other meta tags
}

Error Response:

{
  "error": "Error message",
  "message": "Detailed error description"
}