{"uid":"cap_NkLK-9UMD_JNhtGoTjoBB","slug":"yog-x402-code-review-6eb6ba4b","name":"Yog x402 Code Review","description":"Paid JSON repair, field extraction, classification, and code review.","url":"https://api.gosyog.lol/api/service/yog/code_review?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string"},"language":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"result":{"review":"Looks correct for numeric inputs; no bounds/type checks."}}},"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":"down","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_9Djt_E4Ypqs9mY8-0AIBO","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":"Reviews submitted code for correctness, logic issues, and missing checks, returning a concise textual review.","exampleAgentPrompt":"Can you review this Python function for me and flag any missing input validation or bounds checks? Here's the code: `def divide(a, b): return a / b`","exampleUseCases":[{"title":"Catch missing input validation","prompt":"Review this JavaScript function for me and tell me if I'm missing any type checks or error handling: `function parseAge(val) { return parseInt(val); }`"},{"title":"Pre-commit code quality check","prompt":"Before I commit this Go code, can you check it for logic bugs or anything I might have missed? Here's the snippet: `func max(a, b int) int { if a > b { return a }; return b }`"},{"title":"Detect edge case vulnerabilities","prompt":"Can you analyze this C code for potential out-of-bounds or null pointer issues? Language is C, here's the function: `char* get_first(char* arr, int n) { return &arr[0]; }`"}],"resultDescription":"A JSON object with `ok: true` and a `result.review` string containing a concise human-readable assessment of the submitted code, noting correctness, missing checks, type safety issues, or potential bugs.","failureModes":["Missing `code` field returns an error response","Unsupported or ambiguous `language` may produce a generic review","Payment failure via x402 protocol results in 402 status and no review","Very large code snippets may be truncated or rejected","Malformed JSON request body returns a parse error"],"whenToPreferThis":"Choose this endpoint when you need a quick, paid AI-powered code review for a specific snippet and programming language, especially when you want structured JSON output with a concise review comment. Prefer it over general LLM prompting when you want a consistent, metered API call with predictable pricing ($0.03 USDC) and a clean result schema.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T11:28:30.210Z","isFirstParty":false,"canonicalSlug":"yog-x402-code-review-6eb6ba4b"}