POST
$0.02 default
/v2/extractDescription
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.
Pricing
$0.02 default
Request schema
{
"additionalProperties": false,
"properties": {
"input": {
"description": "Raw unstructured content to extract from (plain text or HTML).",
"minLength": 1,
"type": "string"
},
"inputType": {
"default": "auto",
"description": "How to interpret `input`: plain text, HTML, or auto-detect (default).",
"enum": [
"text",
"html",
"auto"
],
"type": "string"
},
"options": {
"additionalProperties": false,
"properties": {
"deterministic": {
"default": true,
"description": "Enable deterministic pre-extraction hints.",
"type": "boolean"
},
"maxRepairs": {
"description": "Max validate->re-prompt repair iterations.",
"maximum": 5,
"minimum": 0,
"type": "integer"
},
"strict": {
"default": true,
"description": "Drop fields not present in the schema.",
"type": "boolean"
}
},
"type": "object"
},
"schema": {
"description": "JSON Schema (draft 2020-12) that the returned `data` is guaranteed to satisfy.",
"type": "object"
}
},
"required": [
"input",
"schema"
],
"type": "object"
}Example response
{
"data": {
"currency": "USD",
"dueDate": "2026-08-01",
"invoiceNumber": "A-1042",
"total": 1299
},
"meta": {
"latencyMs": 640,
"repairs": 0,
"validated": true
}
}