What Would X Say
The What Would X Say API takes a person and a topic and returns a quote in their voice. Matches keywords like "pirate", "cowboy", "scientist", "philosopher", "ceo", or "grandmother"; otherwise falls back to a deterministic archetype. Includes the matched archetype, fidelity rating, and delivery note.
Try It — No Seriously
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
person |
string |
Required | — | Who is speaking. |
topic |
string |
Required | — | What they're speaking about. |
Examples
curl "https://api.stupidapis.com/what-would-x-say/imagine?person=a+pirate&topic=TypeScript"
import requests
response = requests.get(
"https://api.stupidapis.com/what-would-x-say/imagine",
params={"person": "a pirate", "topic": "TypeScript"}
)
print(response.json())
const response = await fetch( "https://api.stupidapis.com/what-would-x-say/imagine?person=a+pirate&topic=TypeScript" ); const data = await response.json(); console.log(data);
Response Schema
| Field | Type | Description |
|---|---|---|
person |
string |
Echoed back |
topic |
string |
Echoed back |
quote |
string |
The imagined quote |
archetype_matched |
string |
Voice used |
fidelity |
string |
low / moderate / low (fallback) |
delivery |
string |
How it was delivered |
Example Response
{
"person": "a pirate",
"topic": "TypeScript",
"quote": "Arr, TypeScript, ye say. I have seen TypeScript in three ports and trusted none of them.",
"archetype_matched": "pirate",
"fidelity": "moderate",
"delivery": "over the shoulder"
}
MCP Access
This API is available as an MCP tool for AI assistants. Connect your agent to:
POST https://api.stupidapis.com/what-would-x-say/mcp
POST https://api.stupidapis.com/mcp
Use Pipeworx to connect this MCP tool to Claude, ChatGPT, and other AI assistants with no code.