{"slug":"extract-json-mintfacts-workers-dev-extract-d08905","title":"Use this when you need to turn unstructured text (emails, invoices, receipts, jo","host":"extract-json.mintfacts.workers.dev","method":"POST","resource":"https://extract-json.mintfacts.workers.dev/extract","category":"code","description":"Use this when you need to turn unstructured text (emails, invoices, receipts, job posts, listings, bios, support tickets, chat logs) into JSON matching a schema. Send the text plus a JSON Schema or a list of field names; get back data that validates against it. Missing values come back as null, neve","price_listed":0.002,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"schema":{"properties":{"currency":{"type":"string"},"customer":{"type":"string"},"due_date":{"description":"YYYY-MM-DD","type":"string"},"invoice_number":{"type":"string"},"line_items":{"items":{"properties":{"description":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"number"}},"type":"object"},"type":"array"},"total":{"type":"number"},"vendor":{"type":"string"}},"required":["invoice_number","total"],"type":"object"},"text":"INVOICE #INV-2291\nBright Pixel Studio LLC, 44 Market St, Portland OR\nBill to: Harbor Coffee Co.\nDate: Nov 3, 2026  Due: Dec 3, 2026\nLogo redesign 1 x $1,200.00\nBusiness cards (500) 2 x $85.50\nTOTAL DUE: $1,371.00 USD"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"fields":{"description":"Shortcut instead of a schema: field names, optionally typed as name:type where type is string, number, integer, boolean, date, string[], number[] or object[] (e.g. [\"name\", \"email\", \"total:number\", \"skills:string[]\"]).","items":{"type":"string"},"maxItems":40,"type":"array"},"instructions":{"description":"Optional extra guidance, e.g. 'dates as YYYY-MM-DD', 'amounts in USD'.","maxLength":500,"type":"string"},"schema":{"description":"A JSON Schema (type: object, with properties) describing the JSON you want back. Supports type, properties, required, items, enum, description. Provide this OR fields.","type":"object"},"text":{"description":"The unstructured text to extract from (max 8000 characters).","maxLength":8000,"minLength":1,"type":"string"}},"required":["text"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"data":{"description":"The extracted JSON. Validates against your schema; values not found in the text are null.","type":"object"},"missing":{"description":"Paths of requested fields that were not found in the text (returned as null).","items":{"type":"string"},"type":"array"},"model":{"type":"string"},"note":{"type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["data","model","warnings"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Use this when you need to turn unstructured text (emails, invoices, receipts, job posts, listings, bios, support tickets, chat logs) into JSON matching a schema. Send the text plus a JSON Schema or a list of field names; get back data that validates against it. Missing values come back as null, never invented. Charged only on success.","last_updated":"2026-11-22T23:07:09.601Z","schemes":["exact"]}