Rubber Duck
The Rubber Duck API recreates the time-honored programmer ritual of explaining a bug to an inanimate waterfowl. Send a description of your problem and receive 3-5 cliched debugging questions, a closer, a duck mood, and a confidence-in-you score. The duck does not analyze your input. The duck does not understand code. The duck is, however, unimpressed.
Try It — No Seriously
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
bug |
string |
Required | — | A description of the bug. The duck will not read it. The duck will, however, judge. |
Examples
curl -X POST "https://api.stupidapis.com/rubber-duck/consult" -H "Content-Type: application/json" -d '{"bug":"my code does not work and i do not know why"}'
import requests
response = requests.post(
"https://api.stupidapis.com/rubber-duck/consult",
json={"bug": "my code does not work and i do not know why"}
)
print(response.json())
const response = await fetch(
"https://api.stupidapis.com/rubber-duck/consult",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ bug: "my code does not work and i do not know why" })
}
);
const data = await response.json();
console.log(data);
Response Schema
| Field | Type | Description |
|---|---|---|
bug |
string |
Your bug description, echoed back unread |
duck_says |
string[] |
3-5 classic debugging questions |
closer |
string |
The duck's closing remark |
duck_mood |
string |
How the duck feels about you today |
confidence_in_you |
number |
The duck's confidence in your ability (0-100) |
quacks |
string |
Audible quacks issued during consultation |
Example Response
{
"bug": "my code does not work and i do not know why",
"duck_says": [
"Have you tried turning it off and on again?",
"Did you check the logs? All of them?",
"Are you sure that is the bug, and not a symptom?",
"What did you change last?"
],
"closer": "The duck is staring at you.",
"duck_mood": "unimpressed",
"confidence_in_you": 47,
"quacks": "quack quack."
}
MCP Access
This API is available as an MCP tool for AI assistants. Connect your agent to:
POST https://api.stupidapis.com/rubber-duck/mcp
POST https://api.stupidapis.com/mcp
Use Pipeworx to connect this MCP tool to Claude, ChatGPT, and other AI assistants with no code.