# FastX402 OpenGraph Extractor

> FastX402 OpenGraph Extractor is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-20).

Parses an HTML document and extracts OpenGraph and Twitter Card metadata tags from it

## Facts

- Endpoint: GET https://fastx402.tools/opengraph-extract?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-opengraph-extractor-3d2f16a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jrIjNfw5Ee8sr8BlZGXIk

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 fastx402-opengraph-extractor-3d2f16a9
```

Example prompt: Parse this HTML and pull out all the OpenGraph and Twitter Card metadata — I need the og:title, og:description, og:image, and twitter:card values: <html>...</html>

## When to prefer this

Use this endpoint when you already have the raw HTML source of a page and need to extract structured social preview metadata (OpenGraph and Twitter Card) without making an additional HTTP request to fetch the URL. Prefer this over a full URL-fetching scraper when you want to minimize network calls or already have the HTML in memory.

## Known failure modes

- Missing or malformed HTML input causes parsing failure
- HTML with no OpenGraph or Twitter Card tags returns empty og/twitter objects
- Extremely large HTML documents may time out or be truncated
- Non-UTF-8 encoded HTML may cause character parsing issues

## How this service works

146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object with two top-level keys: 'og' containing OpenGraph fields (type, image, title, description) and 'twitter' containing Twitter Card fields (card), extracted directly from the HTML's meta tags.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "html"
     ],
     "properties": {
      "html": {
       "type": "string",
       "description": "HTML document to parse for OpenGraph and Twitter Card metadata"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "og": {
       "type": "object",
       "properties": {
        "type": {
         "type": "string"
        },
        "image": {
         "type": "string"
        },
        "title": {
         "type": "string"
        },
        "description": {
         "type": "string"
        }
       }
      },
      "twitter": {
       "type": "object",
       "properties": {
        "card": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "og": {
   "type": "website",
   "image": "https://example.com/image.jpg",
   "title": "Example Site",
   "description": "A sample page"
  },
  "twitter": {
   "card": "summary_large_image"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-opengraph-extractor-3d2f16a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
