{"uid":"cap_vzK8WJDhypQlLNFxcIC1g","slug":"24k-labs-structured-extraction-api-5fe4902f","name":"24K Labs Structured Extraction API","description":"Extract fields from unstructured text into JSON matching a requested shape/field list.","url":"https://api.24klabs.ai/api/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_RQ7BNMF9ZUiwa7BIOCrKM","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 the requested shape or field list.","exampleAgentPrompt":"Pull out the sender name, email address, order number, and total amount from this email text and give me the result as JSON: 'Hi, I'm Jane Doe, jane@example.com — my order #ORD-4892 for $134.50 arrived damaged.'","exampleUseCases":[{"title":"Invoice data extraction for accounting","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 #1042 from Acme Supplies, due 2024-08-15, for 3x widgets at $20 each plus $10 shipping, total $70.'"},{"title":"Resume parsing for applicant tracking","prompt":"Parse this resume snippet into structured JSON with fields for full name, email, phone, current job title, and years of experience: 'John Smith | john.smith@email.com | 555-0199 | Senior Engineer at TechCorp, 8 years of experience in backend development.'"},{"title":"Support ticket triage structuring","prompt":"Extract the customer name, issue category, product mentioned, and urgency level from this support message and return them as JSON fields: 'Hi, I'm Maria — my ProPlan subscription stopped working after the update yesterday and I need this fixed ASAP for a client demo.'"}],"resultDescription":"A JSON object containing keys matching the requested field list or schema shape, with values extracted from the provided unstructured text. Fields that could not be found may be null or absent. The response is ready to use programmatically without further parsing.","failureModes":["Text contains no relevant content for the requested fields — returns null or empty values for missing fields","Ambiguous text leads to incorrect field mapping or hallucinated values","Malformed or overly complex schema shape may result in incomplete extraction","Very long input text may be truncated or cause timeouts","Payment failure or insufficient USDC balance results in 402 error preventing execution"],"whenToPreferThis":"Choose this endpoint when you need to pull specific named fields from free-form or semi-structured text and receive a clean JSON object back — especially useful in agentic pipelines that need to bridge human-written content (emails, documents, messages) with downstream structured systems. Prefer this over regex or manual parsing when the text format is variable or unpredictable. It is well-suited for lightweight, per-record extraction tasks where you define the output shape at call time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:48.159Z","isFirstParty":false}