{"uid":"cap_keemwisup6-U4gYhmgTR_","slug":"losbeto-extract-structured-data-extraction-from-unstructured-text-130cd604","name":"Losbeto /extract — Structured Data Extraction from Unstructured Text","description":"OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana, Algorand and Polygon via x402.","url":"https://markets.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_OYFBCq7K4ekvbQT-hsryU","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":"Converts messy free-form text into strict JSON by extracting only the fields you specify, returning null for anything not stated in the source.","exampleAgentPrompt":"Parse this invoice text and give me back JSON with just the vendor name, invoice number, total amount, and due date — anything not mentioned should come back as null: 'Invoice #4821 from Acme Corp, dated March 3 2025, total due $1,240.00 by April 1 2025.'","exampleUseCases":[{"title":"Invoice data extraction pipeline","prompt":"I have this raw invoice text: 'Supplier: GlobalParts Ltd. PO#: 99234. Amount: $8,750. Due: 2025-06-15. Terms: Net 30.' Pull out supplier, PO number, amount, due date, and payment terms as JSON — return null for anything not mentioned."},{"title":"Contract clause extraction","prompt":"Here's a chunk of contract text — can you extract the party names, effective date, termination clause, and governing law into structured JSON? 'This Agreement is entered into by Horizon Inc. and Stellar LLC effective January 1, 2025... governed by the laws of Delaware... either party may terminate with 30 days written notice.'"},{"title":"Scraping unstructured job listings","prompt":"I scraped this job posting: 'Software Engineer at NovaTech — Remote, $130k-$160k, requires 5 years Python, apply by May 31.' Extract company, role, location, salary range, required skills, and application deadline as JSON."}],"resultDescription":"A JSON object containing exactly the keys requested, populated with values found in the source text or null where the text makes no mention. One automatic retry is performed if the model returns malformed JSON; if valid JSON still cannot be produced, the $0.01 USDC payment is returned as call credit.","failureModes":["Text exceeds 6000 character limit — request rejected","Model returns malformed JSON — one automatic retry is attempted","After retry, still invalid JSON — payment refunded as call credit","Requested field not present in source text — field returned as null (not an error)","USDC payment fails on Base/Solana/Algorand/Polygon — call not processed"],"whenToPreferThis":"Choose this endpoint when you need to reliably convert free-form text (invoices, emails, contracts, scraped pages, chat logs) into a strict JSON schema without building your own parse-and-retry error handling. It is especially useful for AI agents that need structured data from unstructured sources without API keys or subscriptions — paying per call in USDC via x402. Prefer it over rolling your own LLM prompt when you want guaranteed null-for-missing semantics and built-in retry logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T12:39:32.912Z","isFirstParty":false,"canonicalSlug":"losbeto-extract-structured-data-extraction-from-unstructured-text-130cd604"}