Home › Insult & Praise API

Insult API and 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

Insult somebody

EndpointGET https://api.humorapi.com/insult
AuthenticationAPI key as api-key query parameter or x-api-key header
ResponseJSON
Cost1 point per call
ReferenceInsult in the docs
Example request
GET https://api.humorapi.com/insult?name=Alex&reason=you+dropped+the+ball
Example response
{
    "text": "Holy moley, you dropped the ball Alex, you dingbat."
}
curl
curl "https://api.humorapi.com/insult?name=Alex&reason=you+dropped+the+ball&api-key=YOUR_API_KEY"
JavaScript (fetch)
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);
Python (requests)
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())

Praise somebody

EndpointGET https://api.humorapi.com/praise
AuthenticationAPI key as api-key query parameter or x-api-key header
ResponseJSON
Cost1 point per call
ReferencePraise in the docs
Example request
GET https://api.humorapi.com/praise?name=Alex&reason=you+did+it+again
Example response
{
    "text": "Bravo Alex, you mastermind, you did it again."
}

Parameters

Use cases

No code? Try the free insult generator and compliment generator.

Pricing

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.

More from Humor API

Joke API Meme API GIF Search API Nonsense Word API Chuck Norris Jokes API Knock Knock Jokes API

Get a free API key Read the docs See pricing