{"uid":"cap_mdV6b5sJym5zEm4qZthTk","slug":"losbeto-text-to-json-extractor-d1686599","name":"Losbeto Text-to-JSON Extractor","description":"Turn messy text into strict JSON: send text plus the fields you want and get back exactly those keys, null for anything the text does not state — never invented. Invoices, emails, contracts, scraped pages, chat logs....","url":"https://api.losbeto.xyz/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","properties":{"method":{"type":"string","description":"POST"},"bodyParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Messy source text (max 6000 chars)."},"fields":{"type":"string","description":"Alternative to schema: comma-separated field names."},"schema":{"type":"object","description":"{field: description} — the keys you want back."}}}}},"output":{"type":"object","properties":{"example":{"type":"object","description":"Turn messy text into strict JSON: send text plus the fields you want and get back exactly those keys, null for anything the text does not state — never invented. Invoices, emails, contracts, scraped pages, chat logs. One retry repairs malformed model output; if valid JSON still cannot be produced the payment is returned as call credit. Replaces your own parse-and-retry error branch..."}}}}},"responseSchema":{"type":"json"},"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_ts8dSdQOUvLWfM2XhkOlh","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 structured JSON from unstructured text using caller-defined fields or a schema, returning exactly the requested keys with null for absent values — never hallucinating.","exampleAgentPrompt":"Pull out the vendor name, invoice number, total amount, and due date from this invoice text and give them back as JSON — use null for anything that isn't explicitly stated: 'ACME Corp, Invoice #4821, Net 30, Total: $3,450.00, issued Jan 15 2025.'","exampleUseCases":[{"title":"Invoice data extraction for accounting","prompt":"Extract the vendor name, invoice number, line items, subtotal, tax, and total from this invoice text and return it as JSON — use null if any field isn't mentioned: 'Globex Industries, Invoice #7732, 3x Widget A @ $120, 1x Widget B @ $85, Subtotal $445, Tax $35.60, Total $480.60, Due Feb 28 2025.'"},{"title":"Email metadata parsing for CRM ingestion","prompt":"Parse this email and pull out the sender name, sender email, subject, date sent, and any mentioned meeting date as structured JSON — if a field isn't in the email set it to null: 'From: jane.doe@contoso.com, Subject: Follow-up on Q1 proposal, Sent: Mon Jan 20 2025, Hey team, can we meet on Jan 27?'"},{"title":"Contract clause extraction for legal review","prompt":"Extract the party names, effective date, termination clause, governing law, and payment terms from this contract snippet as JSON with null for anything not stated: 'This Agreement is entered into as of March 1 2025 between Apex LLC and Bravo Inc. Payment is due within 60 days. Governed by the laws of Delaware.'"}],"resultDescription":"A JSON object containing exactly the keys requested in the fields or schema parameter. Any field whose value is not explicitly stated in the source text is returned as null — no values are invented or inferred beyond what the text states.","failureModes":["Source text exceeds 6000 character limit — request rejected","Neither fields nor schema provided — may return empty or error object","Text is too ambiguous for reliable extraction — fields returned as null","Model produces malformed JSON — one automatic retry is attempted; if still invalid the payment is returned as call credit","Non-extractive use (e.g. free-form generation) — endpoint not designed for this use case"],"whenToPreferThis":"Choose this endpoint when you need deterministic, schema-bound extraction from unstructured text with a strict no-hallucination guarantee. It is ideal for document processing pipelines (invoices, contracts, emails, receipts) where invented values would be harmful. Prefer it over a general LLM call when you want null-safe structured output without writing your own parse-and-retry logic. Not suitable for free-form text generation or summarization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:46:51.236Z","isFirstParty":false,"canonicalSlug":"losbeto-text-to-json-extractor-d1686599"}