Home › Insult & Praise API
Roast a friend or cheer on a teammate: give a name and a reason, and Humor API writes a funny, personalized insult or compliment. Good for chat bots, games, team tools and greeting cards.
Get a free API key Read the docs See pricing
| Endpoint | GET https://api.humorapi.com/insult |
|---|---|
| Authentication | API key as api-key query parameter or x-api-key header |
| Response | JSON |
| Cost | 1 point per call |
| Reference | Insult in the docs |
GET https://api.humorapi.com/insult?name=Alex&reason=you+dropped+the+ball {
"text": "Holy moley, you dropped the ball Alex, you dingbat."
} curl "https://api.humorapi.com/insult?name=Alex&reason=you+dropped+the+ball&api-key=YOUR_API_KEY" const res = await fetch("https://api.humorapi.com/insult?name=Alex&reason=you+dropped+the+ball", {
headers: { "x-api-key": process.env.HUMOR_API_KEY }
});
const data = await res.json();
console.log(data); import os, requests
res = requests.get("https://api.humorapi.com/insult?name=Alex&reason=you+dropped+the+ball",
headers={"x-api-key": os.environ["HUMOR_API_KEY"]})
print(res.json()) | Endpoint | GET https://api.humorapi.com/praise |
|---|---|
| Authentication | API key as api-key query parameter or x-api-key header |
| Response | JSON |
| Cost | 1 point per call |
| Reference | Praise in the docs |
GET https://api.humorapi.com/praise?name=Alex&reason=you+did+it+again {
"text": "Bravo Alex, you mastermind, you did it again."
} name (required): The name of the person to be praised/insulted.reason (required): The reason the person is praised/insulted for.api-key (required): Your API key./roast @name or /kudos @name command for Slack and Discord.No code? Try the free insult generator and compliment generator.
The free plan has 10 points per day (most calls cost 1 point) and needs a backlink; paid plans start at $3 per month for 100 points per day and bill extra points instead of stopping. Compare the plans.