# Swift Bot Labs Toolbox – Web Metadata Extractor

> Swift Bot Labs Toolbox – Web Metadata Extractor is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-31).

Fetches and returns Open Graph tags, SEO signals (H1 count, title length), favicon URL, and page title for any given URL via a pay-per-call GET request.

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/web/metadata?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-web-metadata-extractor-1aa9808e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_37cTqLvCeOTryv4wiiWJ5

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 swift-bot-labs-toolbox-web-metadata-extractor-1aa9808e
```

Example prompt: Can you fetch the web metadata for https://github.com/ — I want the Open Graph image, page title, favicon, and basic SEO info like H1 count and title length?

## When to prefer this

Choose this endpoint when you need lightweight, structured metadata extraction (OG tags, title, favicon, basic SEO signals) from a URL without requiring a full browser scrape or JavaScript rendering. It's ideal for link preview generation, SEO audits, content enrichment pipelines, and social sharing validation. It requires no API key — just a USDC micropayment per call — making it convenient for ad-hoc or agent-driven workflows.

## Known failure modes

- Invalid or unreachable URL returns error with ok:false
- Non-HTTP/HTTPS URLs are rejected (only GET or HEAD supported)
- Pages blocking automated requests (bot protection, CAPTCHAs) may return empty or partial metadata
- Missing OG tags result in null og.image or og.title fields
- Payment failure (insufficient USDC balance) returns HTTP 402 before request is processed
- Timeout on slow-loading pages may produce incomplete results

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with 'ok' status, tool name, and a 'result' containing: Open Graph data (og.image, og.title), SEO signals (seo.h1Count, seo.titleLength), the resolved URL, the full page title, and the favicon URL.

## 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"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "web-metadata",
  "result": {
   "og": {
    "image": "https://github.githubassets.com/assets/home24-5939032587c9.jpg",
    "title": "GitHub"
   },
   "seo": {
    "h1Count": 1,
    "titleLength": 71
   },
   "url": "https://github.com/",
   "title": "GitHub · Build and ship software on a single, collaborative platform",
   "favicon": "https://github.githubassets.com/favicons/favicon.svg"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-web-metadata-extractor-1aa9808e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
