# SchemaSure V2 Structured Extraction API

> SchemaSure V2 Structured Extraction API is a paid API for AI agents from schemasure.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Extracts strictly typed, JSON-Schema-valid structured data from unstructured text or HTML, guaranteeing the output satisfies a caller-supplied JSON Schema

## Facts

- Endpoint: POST https://schemasure.com/v2/extract
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/schemasure-v2-structured-extraction-api-4324edf8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dAnrvWxIGL7p2V07JtPk9

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 schemasure-v2-structured-extraction-api-4324edf8 -d '<json body>'
```

Example prompt: Extract the product name, price, and availability from this HTML snippet and return it as strict JSON matching this schema: {"type":"object","properties":{"name":{"type":"string"},"price":{"type":"number"},"available":{"type":"boolean"}},"required":["name","price","available"]} — use auto input detection and allow up to 3 repair iterations.

## When to prefer this

Choose this endpoint when you need a hard guarantee that the returned JSON satisfies a specific schema — not just a best-effort parse. It is especially valuable for agentic pipelines where downstream code expects typed fields and cannot tolerate schema violations. The no-charge-on-failure model makes it safe to use in cost-sensitive workflows. Prefer it over general LLM extraction when schema strictness, repair logic, and deterministic output are required.

## Known failure modes

- Input cannot be parsed into the target schema even after maxRepairs iterations — call is not settled and no charge is made
- Schema provided is invalid or not compatible with JSON Schema draft 2020-12 — extraction will fail
- Input is empty or below minLength of 1 character — rejected at validation
- Requested fields are entirely absent from the input content — output may be incomplete or extraction fails
- HTML input is too complex or obfuscated for the parser to extract meaningful content

## How this service works

Extract strict, JSON-Schema-valid typed JSON from unstructured text or HTML. Failed extraction calls are not settled. Primary x402 V2 API for production agents.

## Output

A JSON object whose shape is guaranteed to satisfy the caller-supplied JSON Schema (draft 2020-12). If extraction fails validation after repair iterations, the call is not settled. Returns typed, structured data ready for downstream use without additional parsing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "minLength": 1,
   "description": "Raw unstructured content to extract from (plain text or HTML)."
  },
  "schema": {
   "type": "object",
   "description": "JSON Schema (draft 2020-12) that the returned `data` is guaranteed to satisfy."
  },
  "options": {
   "type": "object",
   "properties": {
    "strict": {
     "type": "boolean",
     "default": true,
     "description": "Drop fields not present in the schema."
    },
    "maxRepairs": {
     "type": "integer",
     "maximum": 5,
     "minimum": 0,
     "description": "Max validate->re-prompt repair iterations."
    },
    "deterministic": {
     "type": "boolean",
     "default": true,
     "description": "Enable deterministic pre-extraction hints."
    }
   },
   "additionalProperties": false
  },
  "inputType": {
   "enum": [
    "text",
    "html",
    "auto"
   ],
   "type": "string",
   "default": "auto",
   "description": "How to interpret `input`: plain text, HTML, or auto-detect (default)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/schemasure-v2-structured-extraction-api-4324edf8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from schemasure.com](https://www.zero.xyz/host/schemasure.com/llms.txt)
