{"uid":"cap_C64qfZocpqUI9YCTWgm3U","slug":"klymax402-code-sandbox-execute-python-javascript-or-sql-f2895782","name":"klymax402 Code Sandbox — Execute Python, JavaScript, or SQL","description":"One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.","url":"https://klymax402.com/api/code-sandbox/api/execute","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","description":"The code to execute"},"timeout":{"type":"number","description":"Execution timeout in milliseconds (default: 5000, max: 10000)"},"language":{"enum":["python","javascript","sql"],"type":"string","description":"Programming language: python, javascript, or sql"}}},"responseSchema":{"type":"json","example":{"output":"example","language":"example","executionTime":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AtVd5SoEO7wYLI2sBo9dY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes arbitrary Python, JavaScript, or SQL code in a sandboxed environment and returns the output, language used, and execution time.","exampleAgentPrompt":"Can you run this Python snippet for me and tell me what it outputs? The code is: `import math; print(math.factorial(10))` — use a 5-second timeout.","exampleUseCases":[{"title":"Quick Python math computation","prompt":"Run this Python code and show me the result: `result = sum(range(1, 101)); print(result)` — give it up to 5 seconds to finish."},{"title":"JavaScript string manipulation test","prompt":"Execute this JavaScript snippet for me: `const str = 'Hello World'; console.log(str.split('').reverse().join(''));` — I want to see what it prints."},{"title":"SQL aggregation query test","prompt":"Run this SQL query in a sandbox and show me the output: `SELECT department, COUNT(*) as count FROM employees GROUP BY department ORDER BY count DESC;`"}],"resultDescription":"A JSON object containing the captured output from running the code (stdout), the language that was used, and the execution time in milliseconds.","failureModes":["Timeout exceeded if code runs longer than the specified timeout (max 10000ms)","Syntax errors in code cause execution failure with error output","Unsupported language enum value returns validation error","Payment failure via x402 protocol blocks the request","Resource-intensive code may be killed before timeout"],"whenToPreferThis":"Choose this endpoint when you need to execute a small, self-contained code snippet in Python, JavaScript, or SQL without setting up a local runtime or managing a full code execution environment. Ideal for quick computations, evaluating expressions, or testing logic in a sandboxed pay-per-call model with no API key setup required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:01:01.549Z","isFirstParty":false}