# Page Metadata Extractor (x402)

> Page Metadata Extractor (x402) is a paid API for AI agents from x402-url-evidence.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Fetches and returns structured metadata from a public HTTP(S) webpage, including title, description, Open Graph tags, JSON-LD, canonical URL, and link count, paid via USDC on Base.

## Facts

- Endpoint: GET https://x402-url-evidence.vercel.app/api/page-metadata
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/page-metadata-extractor-x402-699a09a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aARhisLSJoFVy3cQqrvSx

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 page-metadata-extractor-x402-699a09a0
```

Example prompt: Can you fetch the page metadata for https://openai.com — I want the title, description, Open Graph image, and canonical URL?

## When to prefer this

Choose this endpoint when you need lightweight, deterministic page metadata (title, description, OG tags, JSON-LD, canonical URL) from a public webpage without running a full browser or scraping the full HTML. It is ideal for link preview generation, SEO audits, structured data inspection, and redirect resolution. Prefer it over full-page scrapers when you only need head-level metadata and want a fast, cheap, reproducible result settled with micro-payments in USDC.

## Known failure modes

- Non-public or credential-gated URLs return empty or partial metadata
- Pages behind CAPTCHAs or bot-detection may return unexpected content
- Very large pages may be truncated (truncated: true in response)
- Invalid or malformed URLs cause request failure
- Pages returning non-200 status codes still return metadata but with the actual status code reflected

## How this service works

Paid deterministic utility APIs settled in native USDC on Base.

## Output

Returns a JSON object containing the page title, meta description, HTTP status code, final URL (after redirects), canonical URL, link count, Open Graph fields (image, title, description), JSON-LD block count and parseability, source byte size, and a truncation flag.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Credential-free public HTTP(S) page to inspect"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "title": "Example Domain",
  "jsonLd": {
   "types": [],
   "blocks": 0,
   "parseableBlocks": 0
  },
  "status": 200,
  "finalUrl": "https://example.com/",
  "linkCount": 1,
  "openGraph": {
   "image": null,
   "title": null,
   "description": null
  },
  "truncated": false,
  "description": null,
  "sourceBytes": 1256,
  "canonicalUrl": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/page-metadata-extractor-x402-699a09a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-url-evidence.vercel.app](https://www.zero.xyz/host/x402-url-evidence.vercel.app/llms.txt)
