PeumeAPI

Web scraping

Execute Interact Code

Run Node, Python or Bash code in your owned browser session.

$0.0005 per call

Call it

curl https://api.peume.com/v1/call/execute-interact-code \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "sessionId": "your sessionId",
    "code": "your code",
    "language": "node",
    "timeout": 30
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: execute-interact-code.

Parameters

sessionIdRequiredstring

The sessionId from /interact/create, owned by your workspace.

codeRequiredstring

Code to execute, at most 100,000 characters and UTF-8 bytes; encoded JSON also has a 200,000-byte persistence cap.

languagestring

Execution runtime. Natural-language prompts are not supported.

node · python · bash

Example: node

timeoutinteger

Execution timeout in seconds; total session expiry can end execution earlier.

Example: 30

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.