# Open Graph and meta tag extractor

Pull the title, description, canonical link, Open Graph, Twitter card, favicons and JSON-LD out of HTML.

- Endpoint: `POST https://setget.net/v1/tools/og-tags-extract` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `og-tags-extract`
- Page: https://setget.net/tools/og-tags-extract

## Inputs

- `text` (required, string): The HTML of the page (the head section is enough).

## Example

```json
{"input":{"text":"<head><title>Demo</title><meta name=\"description\" content=\"A demo page.\"><link rel=\"canonical\" href=\"https://example.com/\"><meta property=\"og:title\" content=\"Demo page\"><meta property=\"og:image\" content=\"https://example.com/a.png\"><meta name=\"twitter:card\" content=\"summary\"><link rel=\"icon\" href=\"/favicon.ico\"><script type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Demo\"}</script></head>"}}
```

Result:

```json
{"title":"Demo","description":"A demo page.","canonical":"https://example.com/","og":{"og:title":"Demo page","og:image":"https://example.com/a.png"},"twitter":{"twitter:card":"summary"},"favicons":[{"rel":"icon","href":"/favicon.ico","sizes":null,"type":null}],"json_ld":[{"@context":"https://schema.org","@type":"WebSite","name":"Demo"}],"missing":["og:description","og:url","og:type"]}
```

**What does "missing" list?** Tags that link previews in chat apps and social networks rely on: title, description, canonical, og:title, og:description, og:image, og:url, og:type and twitter:card.

**What if a tag appears twice?** The first value is used, as most preview generators do.

**What happens to broken JSON-LD?** The block is listed as {"error": ...} so you can see that it exists but does not parse.
