JokeAPI
Filterable jokes with a safe-mode switch and NSFW flags
JokeAPI serves single-line or two-part jokes across categories, with query flags to blacklist nsfw/racist/sexist/etc. content or force a clean safe-mode. Every response carries the flags so you know exactly what you got. No key required.
GET https://v2.jokeapi.dev/joke/Any?type=single&safe-mode
{
"error": false,
"category": "Programming",
"type": "single",
"joke": "\"We messed up the keming again guys.\"",
"flags": {
"nsfw": false,
"racist": false,
"sexist": false,
"explicit": false
},
"safe": true,
"lang": "en"
}curl "https://v2.jokeapi.dev/joke/Any?type=single&safe-mode"const res = await fetch("https://v2.jokeapi.dev/joke/Any?type=single&safe-mode");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://v2.jokeapi.dev/joke/Any?type=single&safe-mode")
print(res.json())/joke/Any?type=single&safe-modePROBEDFilterable jokes with a safe-mode switch and NSFW flags
/jokes/randomRandom item from the collection.
/jokeSingle joke response.
/joke/1Joke details by ID (example: 1).
/joke?limit=10Single joke response.
/joke/search?q=testSearch by query parameters.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
JokeAPI: common questions
Is JokeAPI free to use?
Yes — JokeAPI is a free fun API. Free tier: Free — no key. Whether the free tier allows commercial use is unclear — check the provider docs.
Does JokeAPI need an API key?
No — JokeAPI needs no API key or signup. You can call it straight away; rate limits still apply (120 requests/minute per IP (per jokeapi.dev docs)).
Can I call JokeAPI from the browser?
Yes — JokeAPI returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is JokeAPI up right now?
As of our last scheduled check, JokeAPI is unmonitored. We re-probe it every sweep — the status badge and uptime chart above always show the latest.