Go to example tasks
Run a Python data-processing snippet
Created by
ParseBird
Runs a Python 3 snippet in an isolated sandbox: it loads a JSON object from standard input and returns the total, max, min and average of a `numbers` array as JSON. The output is parsed into the `result` field. Replace `code` and `stdin` with your own logic; the run is capped at a short timeout.
AI Code Runner Sandboxparsebird/code-runner-sandbox
Status
Language
Exit code
Signal
+6 fieldsTextNumberBooleanListObject
Input
Language:python
Code(required):import sys, json
d = json.load(sys.stdin)
n = d["numbers"]
print(json.dumps({"total": sum(n), "max": max(n), "min": min(n), "avg": sum(n)/len(n)}))
Standard input:{"numbers": [10, 20, 30, 40, 55]}
Timeout (seconds):5
Output fields
Status
Language
Exit code
Signal
Duration (ms)
Timed out
Output truncated
Termination reason
Result parse error
Executed at
Sign up on Apify01
Create your Apify account to access the AI Code Runner Sandbox.
Start the run02
The Actor will start running based on the input automatically.
Receive the output03
Monitor the progress in real-time. You will be notified as soon as your dataset is complete and ready for review.
Integrate into your workflow04
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow.
