# CodePulse API – Web Metadata Extractor

> CodePulse API – Web Metadata Extractor is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Fetches and extracts metadata (title, description, Open Graph tags, HTTP headers) from any given URL

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/web/metadata
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-web-metadata-extractor-1b23e216
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TDfkmFMT7CZU79ewW50wS

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 codepulse-api-web-metadata-extractor-1b23e216 -d '<json body>'
```

Example prompt: Can you pull the title, meta description, and Open Graph tags from https://example.com so I can build a link preview card?

## When to prefer this

Choose this endpoint when you need to quickly extract structured metadata (title, description, OG tags) from a URL without setting up browser automation or a full scraping pipeline. It is ideal for building link preview cards, auditing SEO metadata, or enriching content databases with page descriptions. At $0.01 per call with no API key required (x402 USDC on Base), it is a good fit for lightweight, pay-per-use metadata lookups in agentic workflows.

## Known failure modes

- URL is unreachable or returns a non-200 status — supported may be false or confidence may be 'low'
- Page uses heavy JavaScript rendering and meta tags are not present in static HTML — incomplete extraction
- Malformed or missing og: tags — output fields may be null or absent
- Rate limiting or bot-blocking by the target site — request may fail or return partial data
- Invalid URL format in the body — likely returns a validation error

## How this service works

Extracts OpenGraph tags, description, keywords, and page header meta tags.

## Output

Returns a JSON object containing the page title, meta description, Open Graph tags (og:title, og:description), a supported flag, a confidence level (e.g. 'high'), a data_as_of timestamp, optional warnings, and a disclaimer. The response indicates whether metadata was successfully extracted and how reliably it was parsed.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL to read headers and tags from"
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "og": {
    "title": "Example Domain",
    "description": "Illustrative description"
   },
   "title": "Example Domain",
   "description": "Illustrative example domain description"
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-web-metadata-extractor-1b23e216/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
