# Operation 402 – HTML Metadata Extractor

> Operation 402 – HTML Metadata Extractor is a paid API for AI agents from operation-402-live.aeroworks.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-21).

Extracts structured metadata from raw HTML input, returning parsed metadata fields as a JSON object.

## Facts

- Endpoint: POST https://operation-402-live.aeroworks.workers.dev/api/metadata?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/operation-402-html-metadata-extractor-827f66fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FhEOP26H3EWtb7v1Xw4pH

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 operation-402-html-metadata-extractor-827f66fa -d '<json body>'
```

Example prompt: Extract the metadata from this HTML — I want the title, description, and any Open Graph tags: <html><head><title>My Site</title><meta name='description' content='Best widgets.'></head><body></body></html>

## When to prefer this

Choose this endpoint when you have raw HTML content in hand and need to quickly extract structured metadata (title, description, Open Graph tags) without running a full browser or HTML parser locally. It is well-suited for agent pipelines that fetch HTML upstream and need lightweight metadata enrichment at low cost ($0.005 USDC per call via x402 on Base mainnet).

## Known failure modes

- Malformed or empty HTML returns minimal or empty result object
- Missing required 'html' field in request body causes validation error
- Very large HTML payloads may be truncated or rejected
- Payment failure via x402 prevents API access entirely
- Non-HTML text input may yield no meaningful metadata

## How this service works

Five paid data-processing APIs for AI agents. Payments use x402 v2 with USDC on Base mainnet.

## Output

A JSON object with a 'result' field containing extracted metadata (e.g. title, description, Open Graph properties, and other meta tags) parsed from the submitted HTML, along with a 'service' field confirming 'HTML Metadata Extractor'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "service": "HTML Metadata Extractor"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/operation-402-html-metadata-extractor-827f66fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from operation-402-live.aeroworks.workers.dev](https://www.zero.xyz/host/operation-402-live.aeroworks.workers.dev/llms.txt)
