# agent402.tools HTML Meta Extractor

> agent402.tools HTML Meta Extractor is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Extracts title, meta description, OpenGraph/Twitter cards, canonical URL, and JSON-LD blocks from a raw HTML string you already have.

## Facts

- Endpoint: POST https://agent402.tools/api/html-meta
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-html-meta-extractor-3536975a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7fACJBmLeWZGJcOb2WBxB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-html-meta-extractor-3536975a -d '<json body>'
```

Example prompt: I already have the raw HTML of this page — can you pull out the title, meta description, OpenGraph tags, canonical URL, and any JSON-LD blocks from it?

## When to prefer this

Use this endpoint when you already have raw HTML in memory (e.g. from a prior render or fetch step) and need to extract SEO/metadata fields without making an additional HTTP request. Prefer this over /api/meta when you want to avoid a second network round-trip to re-fetch a URL.

## Known failure modes

- HTML string exceeds 5MB limit — returns error
- Malformed or empty HTML with no extractable metadata — returns empty fields
- Missing required 'html' field in request body — returns validation error
- Very large or deeply nested JSON-LD may be partially parsed

## How this service works

Extract <title>, <meta description>, OpenGraph/Twitter cards, canonical URL, and JSON-LD blocks from an HTML string. Distinct from /api/meta which fetches a URL - feed this the HTML you already have (from /api/render, /api/extract.body, or your own fetch).

## Output

Returns extracted metadata fields from the HTML including the page title, meta description, OpenGraph and Twitter card properties as key-value pairs, the canonical URL if present, and any JSON-LD structured data blocks found in the document.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "description": "Raw HTML string to inspect (max 5MB)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "og": {
   "title": "Hi OG"
  },
  "title": "Hi",
  "jsonLd": [],
  "twitter": {},
  "canonical": null,
  "description": "x"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-html-meta-extractor-3536975a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
