{"uid":"cap_dAnrvWxIGL7p2V07JtPk9","slug":"schemasure-v2-structured-extraction-api-4324edf8","name":"SchemaSure V2 Structured Extraction API","description":"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.","url":"https://schemasure.com/v2/extract","method":"POST","headers":{},"bodySchema":{"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)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aOEvbHJnTLNoyvY7OPSUY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts strictly typed, JSON-Schema-valid structured data from unstructured text or HTML, guaranteeing the output satisfies a caller-supplied JSON Schema","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:32:47.348Z","isFirstParty":false}