{"uid":"cap_JaP_YgzrOvBN5Ui1GjX_F","slug":"yog-x402-field-extraction-610e1d31","name":"Yog x402 – Field Extraction","description":"Yog x402 is a paid LLM-as-a-service API with three text capabilities plus a free-tier liveness ping, all paid via x402 USDC on Base. classify_text ($0.01) classifies text into one of your supplied labels — sentiment tagging, routing support tickets, labeling data for ML pipelines. json_repair ($0.02) fixes malformed/messy text into valid JSON — cleaning up LLM output or scraped JSON that's slightly malformed before further processing. extract_fields ($0.03) pulls named fields from source text and will not fabricate values — structured extraction from unstructured text (name/date/amount from invoices or emails).","url":"https://api.gosyog.lol/api/service/yog/extract_fields?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"string"},"description":"Field names to extract. Values not present in the source are null."},"source_text":{"type":"string","description":"Source text to extract from."}}},"responseSchema":{"type":"json","example":{"ok":true,"result":{"total":"$19.99","order_id":"4821"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YpmdIXND5ZmTlYYsjX5F_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","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 free-form source text and returns their values as structured JSON.","exampleAgentPrompt":"Extract the fields 'total' and 'order_id' from this text: 'Thank you for your order #4821. Your total was $19.99. It will ship in 3-5 business days.'","exampleUseCases":[{"title":"Parse receipt for expense tracking","prompt":"Pull out the 'merchant_name', 'date', 'total', and 'tax' fields from this receipt text: 'Whole Foods Market — 2024-06-12 — Subtax $3.45 — Total $38.12. Thank you for shopping with us.'"},{"title":"Extract patient info from clinical note","prompt":"From this clinical note, extract the fields 'patient_name', 'diagnosis', and 'prescribed_medication': 'Patient John Doe was seen today and diagnosed with hypertension. Prescribed Lisinopril 10mg daily.'"},{"title":"Pull shipping details from confirmation email","prompt":"I have an order confirmation email — can you extract 'tracking_number', 'carrier', and 'estimated_delivery' from it? Here's the text: 'Your order has shipped via UPS. Tracking: 1Z999AA10123456784. Expected delivery: June 18, 2024.'"}],"resultDescription":"A JSON object with an 'ok' boolean and a 'result' object whose keys are the requested field names and whose values are the extracted text values (or null if a field was not found in the source).","failureModes":["Field not present in source text returns null for that key rather than an error","Ambiguous or repeated field values may yield unexpected extractions","Malformed or very short source text may result in all null values","Missing required 'fields' or 'source_text' parameters will cause a request error","Payment failure or insufficient balance will block the call with a 402 response"],"whenToPreferThis":"Choose this endpoint when you have free-form text and a known set of field names you want to extract in one structured call, especially when you need a quick, paid-per-use solution without setting up your own NLP pipeline. It is particularly useful for receipts, emails, documents, and any unstructured text where you know the keys but not the positions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:32:23.945Z","isFirstParty":false,"canonicalSlug":"yog-x402-field-extraction-610e1d31"}