{"uid":"cap_EwKC9dWLHJmc_OORTSy_i","slug":"24k-labs-structured-text-extraction-5b300d94","name":"24K Labs Structured Text Extraction","description":"Extract fields from unstructured text into JSON matching a requested shape/field list.","url":"https://api.24klabs.ai/api/v1/extract-structured","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"fields":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{}}},"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_qph_8g2n6KKeCswsAy3Tw","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 specified fields from unstructured text and returns them as a structured JSON object matching a requested schema or field list.","exampleAgentPrompt":"Pull out the customer name, order date, total amount, and shipping address from this email body and give me the result as JSON: 'Hi, I placed an order on March 14th for $48.99. Please ship to John Smith, 42 Maple Ave, Springfield, IL 62701.'","exampleUseCases":[{"title":"Invoice data extraction pipeline","prompt":"Extract the vendor name, invoice number, due date, line items, and total amount from this invoice text and return it as structured JSON: 'Invoice #INV-2047 from Acme Supplies, due April 30, 2025. Items: 10x Widget A @ $5.00, 2x Widget B @ $20.00. Total: $90.00.'"},{"title":"Resume parser for hiring tool","prompt":"Parse this resume snippet into structured JSON with fields for full name, email, phone, years of experience, and top three skills: 'Jane Doe | jane@email.com | 555-123-4567 | 8 years in software engineering | Python, Go, Kubernetes.'"},{"title":"Support ticket field extraction","prompt":"From this customer support message, extract the product name, issue category, severity level, and contact email as a JSON object: 'My BlastPro X200 won't turn on after the last firmware update. This is critical — please contact me at bob@example.com.'"}],"resultDescription":"A JSON object whose keys correspond to the requested fields or schema shape, with values populated from the unstructured input text. Fields not found in the source text may be returned as null or omitted depending on the service behavior.","failureModes":["Requested fields not present in the input text — returns null values or empty fields","Ambiguous or conflicting values in text leading to incorrect extraction","Malformed input text causing parsing errors","Schema shape too complex or deeply nested for reliable extraction","Rate limiting or payment failure via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need to convert free-form, unstructured text into a predictable JSON structure with specific named fields — especially in pipelines where downstream code expects typed data. It is ideal for parsing emails, invoices, resumes, support tickets, or any natural language input where you already know the target schema. Prefer it over general LLM calls when you want a consistent, cost-predictable, single-purpose extraction with a defined per-call price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:36.041Z","isFirstParty":false}