{"uid":"cap_DlpK4X3LkUIXj82QCBPd-","slug":"yog-x402-json-repair-extraction-09dc2f62","name":"Yog x402 JSON Repair & 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/json_repair?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"raw_text":{"type":"string","description":"Malformed or messy text to repair into JSON."}}},"responseSchema":{"type":"json","example":{"ok":true,"result":{"hp":12,"name":"Sutt"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fEo0WNGUCvsVlcBKclMei","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed JSON, extracts fields, classifies content, and reviews code via a paid x402 API endpoint.","exampleAgentPrompt":"Can you repair this broken JSON for me? It's missing some quotes and brackets: {name: Sutt, hp:12, inventory: [sword, shield}","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"My language model returned this broken JSON and it's failing to parse — can you repair it into valid JSON? Here it is: {name: 'Alice', age: 30, tags: ['admin', 'user'}"},{"title":"Extract fields from messy API response","prompt":"I got this garbled text back from a third-party API and I need to pull out the 'user_id' and 'status' fields as clean JSON — here's the raw text: 'user_id=9821 status=active name=Bob'."},{"title":"Classify customer feedback text","prompt":"Can you classify this support ticket text into a category and return it as structured JSON? The text is: 'App keeps crashing whenever I try to upload a photo on iOS 17.'"}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating success and a 'result' object containing the repaired or extracted JSON data, e.g. {\"ok\":true,\"result\":{\"hp\":12,\"name\":\"Sutt\"}}.","failureModes":["Unparseable input — text is too ambiguous or completely unstructured to infer JSON schema","Input text is empty or missing — returns error response","Payment failure — x402 micropayment of $0.02 USDC not completed, request rejected","Malformed input schema — raw_text field absent from request body","Classification ambiguity — text could belong to multiple categories with no clear winner"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost ($0.02 USDC) automated repair of broken or malformed JSON, field extraction from messy text, or lightweight text classification — especially in agentic pipelines where LLM outputs frequently produce syntactically invalid JSON that needs fixing before downstream processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:06:17.639Z","isFirstParty":false,"canonicalSlug":"yog-x402-json-repair-extraction-09dc2f62"}