OpenGraph, Twitter Cards & JSON-LD Microdata Extractor
extract_structured_metadataExtract OpenGraph, Twitter Card, canonical URLs, and Schema.org JSON-LD metadata from HTML to index social cards, author identity, breadcrumbs, and rich snippets for AI search agents.
Instructions
Extracts OpenGraph tags, Twitter Card metadata, canonical URLs, and Schema.org JSON-LD microdata scripts from HTML. Use when indexing social share cards, author identity, breadcrumbs, and rich snippet schemas for AI search agents; for scanning page hyperlinks and outbound references, use extract_page_hyperlinks instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'html_content' ('metadata_targets' defaults to 'all_protocols'), supports '?demo=true' or L402 (10 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html_content | Yes | Source HTML string containing head tags, OpenGraph meta properties, or JSON-LD scripts. | |
| include_favicons | No | Whether to extract favicon links and Apple Touch icon references. | |
| metadata_targets | No | Target metadata protocol filter: all protocols, OpenGraph and Twitter, or Schema.org JSON-LD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| open_graph | Yes | Structured OpenGraph properties including og:title, og:image, and og:description. | |
| twitter_card | Yes | Twitter Card metadata including twitter:card, twitter:creator, and twitter:image. | |
| canonical_url | Yes | Canonical canonical link target or empty string if unspecified. | |
| json_ld_schemas | Yes | Parsed Schema.org JSON-LD structured data objects. |