{"uid":"cap_ghlp3Y4bwPx9a29saTfZC","slug":"whatchuneed-code-review-7eb297a7","name":"WhatChUNeed Code Review","description":"320+ pay-per-call API endpoints across accommodation, LLM, code execution, crypto, medical, finance, and more. One API, one payment. Powered by x402 protocol.","url":"https://whatchuneed.vercel.app/api/util/code-review","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Request input"}}},"responseSchema":{"type":"object","properties":{"result":{"type":"object","description":"Response data"},"status":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qrYJn4hywyVbYdDkpGHXm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Submits code for automated AI-powered review and returns feedback on quality, bugs, and improvements","exampleAgentPrompt":"Can you review this Python function for bugs and style issues? Here's the code: `def add(a,b): return a+b if a else 0` — tell me what's wrong and how to improve it.","exampleUseCases":[{"title":"Pre-merge pull request sanity check","prompt":"Before I merge this JavaScript function into main, can you review it for any bugs or bad practices? Here it is: `function fetchData(url) { let res = fetch(url); return res.json(); }`"},{"title":"Beginner code quality feedback","prompt":"I just wrote my first SQL query and I'm not sure if it's efficient or correct — can you review it and tell me what I'm doing wrong? Here's what I wrote: `SELECT * FROM orders WHERE status = 'open' AND date > '2024-01-01'`"},{"title":"Security vulnerability scan in code","prompt":"Can you check this Node.js snippet for security vulnerabilities or anything dangerous? The code is: `const exec = require('child_process'); exec.exec(req.body.cmd, (err, stdout) => res.send(stdout));`"}],"resultDescription":"Returns a structured result object containing AI-generated code review feedback, which may include identified bugs, style issues, security concerns, performance suggestions, and overall code quality assessment, along with a status field indicating success or failure.","failureModes":["Missing or empty 'input' field returns a validation error","Extremely large code inputs may be truncated or rejected","Ambiguous or non-code text input may produce low-quality or irrelevant review","Payment failure via x402 protocol results in 402 response and no review","Service downtime on the Vercel deployment may cause 503 errors"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call AI code review without setting up a dedicated code analysis service or subscribing to a plan. It is ideal for agents that occasionally need to review code snippets on demand, especially when integrated into workflows that already use the x402 payment protocol or the whatchuneed API umbrella.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:02:19.474Z","isFirstParty":false}