Insult My Code
The Insult My Code API delivers a code review for any language. The review does not read your code; the review has, however, opinions. Returns three critiques (structural, style, semantic), a verdict, a recommended next step, and the reviewer's mood.
Try It — No Seriously
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
language |
string |
Required | — | Language (used for flavor only). |
Examples
curl "https://api.stupidapis.com/insult-my-code/review?language=javascript"
import requests
response = requests.get(
"https://api.stupidapis.com/insult-my-code/review",
params={"language": "javascript"}
)
print(response.json())
const response = await fetch( "https://api.stupidapis.com/insult-my-code/review?language=javascript" ); const data = await response.json(); console.log(data);
Response Schema
| Field | Type | Description |
|---|---|---|
language |
string |
Echoed back |
structural_critique |
string |
On structure |
style_critique |
string |
On style |
semantic_critique |
string |
On meaning |
verdict |
string |
Final verdict |
recommended_next |
string |
What to do next |
reviewer_mood |
string |
Their mood today |
Example Response
{
"language": "javascript",
"structural_critique": "Ah yes, a 47-line if-else. Bold choice.",
"style_critique": "You named this `data`. We are all going to need a moment.",
"semantic_critique": "You are catching the error and then forgetting it.",
"verdict": "ships, eventually",
"recommended_next": "extract one thing — any one thing — into a function",
"reviewer_mood": "tired"
}
MCP Access
This API is available as an MCP tool for AI assistants. Connect your agent to:
POST https://api.stupidapis.com/insult-my-code/mcp
POST https://api.stupidapis.com/mcp
Use Pipeworx to connect this MCP tool to Claude, ChatGPT, and other AI assistants with no code.