{"uid":"cap_cqN40781P045wBHBoa-5z","slug":"code-api-surface-analyzer-db8db610","name":"Code API Surface Analyzer","description":"Analyzes a code snippet and returns its API surface: HTTP routes (method + path), exported symbols, and middleware. Supports Express, FastAPI, Flask, Django, Spring Boot, ASP.NET, Rails, Gin. Pure static analysis — no code execution. Returns JSON with routes[], exports[], middleware[], lang, framework, and a plain-English summary. $0.10/call.","url":"https://the-stall.intuitek.ai/cap/code-api-surface","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"code":"function hello() {\n  console.log('Hello, World!');\n  return 42;\n}\n\nmodule.exports = { hello };","detail":"full"}}},"response":{"lang":"javascript","routes":[],"exports":[{"kind":"cjs-map","name":"hello"}],"summary":"1 export","framework":"unknown","middleware":[],"route_count":0,"export_count":1}},"exampleRequest":{"code":"function hello() {\n  console.log('Hello, World!');\n  return 42;\n}\n\nmodule.exports = { hello };","detail":"full"},"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.16","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.16","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EeBXbe7GnUd23JUP3_ZYV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.16","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes source code to extract its API surface — HTTP routes, exported symbols, and structural metadata — for any language or framework.","exampleAgentPrompt":"Analyze this Express.js source code and give me all the HTTP routes it exposes — use 'routes' detail mode: [paste code here].","exampleUseCases":null,"resultDescription":"A structured breakdown of the code's API surface, which may include: HTTP route definitions (method + path), exported functions/classes/constants, and other structural metadata depending on the requested detail scope (full, routes, or exports).","failureModes":["Code exceeds ~50KB limit — truncation or rejection","Unsupported language or framework may yield incomplete results","Malformed or unparseable code returns empty or partial output","Missing required 'code' query parameter returns an error","Payment failure or insufficient USDC balance returns HTTP 402"],"whenToPreferThis":"Use this endpoint when you need to programmatically discover what an API or module exposes — especially when you have raw source code and want to enumerate routes or exports without running the code. Ideal for code review automation, documentation generation, or dependency analysis pipelines. Prefer this over manual grep or AST tools when you need a structured, language-agnostic result via a single API call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:48:04.708Z","isFirstParty":false}