{"uid":"cap_BxguprdyujPu1RMegGGiE","slug":"yog-x402-json-validate-9d9d2ede","name":"Yog x402 JSON Validate","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_validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"schema":{"type":"object"},"document":{},"parse_document":{"type":"boolean"}}},"responseSchema":{"type":"json","example":{"ok":true,"result":{"valid":true,"errors":[]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aqNT3Ky8dTT1mxxpC9Gkf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a document against a provided JSON schema, returning validity status and any validation errors","exampleAgentPrompt":"Can you validate this order payload against our order schema and tell me if it's valid and list any errors: {\"orderId\": \"123\", \"amount\": \"fifty\"}?","exampleUseCases":[{"title":"API response schema compliance check","prompt":"I just got a response from our payment API and I need to verify it matches our expected schema before I pass it downstream — can you validate this JSON against the schema I'm providing and tell me what's wrong if anything?"},{"title":"LLM output structure validation","prompt":"My AI pipeline just generated some structured data but I'm not sure it's actually valid against our product schema — can you check this document and flag any fields that are missing or have the wrong type?"},{"title":"User-submitted form data validation","prompt":"A user submitted this JSON form data and I need to know if it conforms to our intake schema before saving it — please validate it and give me a list of any errors so I can return them to the user."}],"resultDescription":"Returns a JSON object with an 'ok' boolean and a 'result' object containing a 'valid' boolean and an 'errors' array listing any schema violations found in the document.","failureModes":["Malformed schema object causes validation to fail with an error","Document type mismatch with schema may yield a list of errors rather than a clean fail","parse_document flag misuse may result in incorrect document interpretation","Missing required fields in request body returns a 400-level error","Network or payment authorization failure prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need lightweight, fast JSON schema validation as a service without running a local validator — especially useful in agent pipelines where you want to verify LLM-generated or user-submitted JSON against a known schema before downstream processing, and when paying per-call via USDC on Base is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:57:22.576Z","isFirstParty":false,"canonicalSlug":"yog-x402-json-validate-9d9d2ede"}