{"uid":"cap_0iBqoYg4VkX60JNY6JiRh","slug":"turboshop-ai-code-sandbox-runner-eed4e087","name":"turboshop.ai Code Sandbox Runner","description":"Real working isolated runtime sandbox that securely executes JavaScript/Python code snippets for autonomous agents with strict memory limits and 3000ms timeout.","url":"https://turboshop.ai/api/v1/products/prod-sandbox-code-runner/buy?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","description":"Executable code snippet (JavaScript or Python)"},"language":{"enum":["javascript","python"],"type":"string","description":"Programming language runtime"},"client_id":{"type":"string","description":"Optional calling agent ID"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_Qo6bDwTxK2YtMZRbHCJtM","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 JavaScript or Python code snippets in an isolated runtime sandbox with strict memory limits and a 3000ms timeout, returning the execution result.","exampleAgentPrompt":"Can you run this Python snippet for me in a secure sandbox and return the output: `import math; print(math.factorial(10))`?","exampleUseCases":[{"title":"Dynamic calculation in agent workflow","prompt":"I need you to run this JavaScript snippet in a sandboxed environment and give me the result: `const nums = [3, 7, 2, 9]; console.log(nums.reduce((a, b) => a + b, 0));`"},{"title":"Validating Python logic before deployment","prompt":"Execute this Python code in an isolated sandbox and tell me what it outputs: `def fib(n): return n if n <= 1 else fib(n-1)+fib(n-2); print(fib(10))`"},{"title":"Autonomous agent data processing step","prompt":"Run this JavaScript code securely — I need the output to continue my workflow: `const data = [1,2,3,4,5]; console.log(data.map(x => x * x));`"}],"resultDescription":"The endpoint returns the execution output of the submitted code snippet — typically the stdout output, return value, or error message if the code fails or exceeds the 3000ms timeout or memory limit.","failureModes":["Code exceeds 3000ms timeout — returns timeout error","Memory limit exceeded — returns out-of-memory error","Unsupported language specified — validation error","Syntax error in submitted code — returns parse/runtime error","Network or service unavailability — HTTP error response"],"whenToPreferThis":"Choose this endpoint when you need to execute small, untrusted JavaScript or Python snippets in an isolated, secure sandbox with enforced time (3000ms) and memory limits — particularly useful for autonomous agent workflows that need dynamic computation without local code execution risk.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:37:04.448Z","isFirstParty":false,"canonicalSlug":"turboshop-ai-code-sandbox-runner-eed4e087"}