Fake Stack Trace

⚡ Generators 🌭🌭 Medium 1,817 calls

The Fake Stack Trace API generates a complete, language-correct stack trace for any of five languages. Real-looking error messages, real-looking file paths, real-looking line numbers — none of it real. Includes thread, timestamp, and a "next question" to ask yourself.

Try It — No Seriously

Fake Stack Trace.exe
_ ×
Target language.

Parameters

Parameter Type Required Default Description
language string Optional javascript Target language.

Examples

curl "https://api.stupidapis.com/fake-stack-trace/generate?language=python"
import requests

response = requests.get(
    "https://api.stupidapis.com/fake-stack-trace/generate",
    params={"language": "python"}
)
print(response.json())
const response = await fetch(
  "https://api.stupidapis.com/fake-stack-trace/generate?language=python"
);
const data = await response.json();
console.log(data);

Response Schema

Field Type Description
language string Echoed back
error_message string The error
stack string[] Stack frames
thread string Thread/goroutine name
occurred_at string ISO timestamp
next_question string What to ask yourself

Example Response

{
  "language": "python",
  "error_message": "AttributeError: 'NoneType' object has no attribute 'split'",
  "stack": [
    "  File \"app/main.py\", line 142, in handle",
    "  File \"lib/processor.py\", line 87, in process",
    "  File \"utils/serializer.py\", line 33, in serialize"
  ],
  "thread": "main",
  "occurred_at": "2026-06-15T03: 14: 22.000Z",
  "next_question": "is there a null somewhere upstream"
}

MCP Access

This API is available as an MCP tool for AI assistants. Connect your agent to:

POST https://api.stupidapis.com/fake-stack-trace/mcp
POST https://api.stupidapis.com/mcp

Use Pipeworx to connect this MCP tool to Claude, ChatGPT, and other AI assistants with no code.

...
Clippy