{"uid":"cap_sUo7ZdoWpPJzpWjIJ9NDZ","slug":"ggwp-api-hub-code-explain-f0bfb4b0","name":"GGWP API Hub - Code Explain","description":"All-in-one API hub: Social Media, Jobs, Finance, Crypto, and Tools. Pay-per-call with x402 protocol on Base chain.","url":"https://ggwp-ten.vercel.app/api/code-explain","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"result":{"type":"object","description":"API response data"}}},"responseSchema":{"type":"object","example":{"result":{"data":"example response"}},"properties":{"result":{"type":"object","description":"API response data"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.19251","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.19251/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.19251","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.19251","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zyx-NggA-_dA2h_PJW7_B","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.19251","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts code or API response data and returns a plain-language explanation of what it does","exampleAgentPrompt":"Can you explain what this code does in plain English? Here's the snippet: `function calcTax(income) { return income * 0.3; }` — I want a clear breakdown of its logic and purpose.","exampleUseCases":[{"title":"Understand unfamiliar API response","prompt":"I got this JSON back from an API call and I'm not sure what it means — can you explain what each field represents and what the overall response is telling me?"},{"title":"Explain legacy code to new developer","prompt":"Here's a function from our legacy codebase: `for(let i=0;i<arr.length;i++){if(arr[i]%2===0) sum+=arr[i];}` — can you explain what it does in simple terms so I can document it?"},{"title":"Debug confusing code logic","prompt":"I have this block of Python code that's supposed to filter a list but it's not working as expected — can you explain step by step what it's actually doing so I can find the bug?"}],"resultDescription":"A plain-language explanation of the submitted code or API response data, describing its logic, purpose, and what each component does in human-readable terms.","failureModes":["Missing or empty result object in request body returns a vague or empty explanation","Malformed input that does not conform to the expected object schema may return an error or unhelpful response","Ambiguous or minified code without context may yield an inaccurate explanation","Payment failure on Base chain via x402 protocol results in 402 Payment Required with no output"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call code or API response explanation without committing to a subscription. Best suited for one-off debugging, onboarding, or documentation tasks where a developer or agent needs a plain-English breakdown of a code snippet or structured API result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:44:59.476Z","isFirstParty":false}