Jokes API - Dad Jokes, Puns, Programming & More
Thousands of jokes from 3 sources in one format: dad jokes, puns, programming, Chuck Norris; safe-mode filter, 6 languages, search & joke of the day.
Get a free API key on RapidAPI Try it in the playgroundJokes API
One fast, reliable endpoint set for every kind of joke — with a family-friendly safe mode on by default.
😂 Jokes
- Random jokes from any source or a chosen one, single-line or setup + punchline
- Categories: programming, misc, pun, dark, spooky, christmas, dad jokes, Chuck Norris (16 topics)
- 6 languages: English, German, Czech, Spanish, French, Portuguese
- Content flags (nsfw, religious, political, racist, sexist, explicit) — exclude any of them, or rely on safe mode
🔎 Search & ids
- Search all sources at once by word or phrase
- Every joke has a stable id you can store and fetch again
- Joke of the day — the same joke for everyone on a given date (great for widgets, newsletters and bots)
Use cases: chatbots & Discord/Telegram/Slack bots · apps & widgets · newsletters · games & icebreakers · developer demos
Keywords: jokes api, dad jokes api, random joke, programming jokes, puns, chuck norris jokes, joke of the day, funny api, humor api, safe jokes
Endpoints (8)
| Endpoint | What it returns |
|---|---|
GET/random | Random joke Random joke(s) from any source or one source; safe mode on by default. |
GET/jokes | Jokes by category & filters Programming, pun, misc, dark, spooky and Christmas jokes with type, language, flag exclusions and text filter. |
GET/dad | Dad jokes A random dad joke, or search dad jokes by term with paging. |
GET/chuck | Chuck Norris facts Random Chuck Norris fact (optionally by category) or search. |
GET/search | Search all sources Search JokeAPI, dad jokes and Chuck Norris at once; results merged and ranked. |
GET/joke | Joke by id Fetch a joke again by the id returned by any endpoint. |
GET/joke-of-the-day | Joke of the day A safe joke that is the same for everyone on a given date and language. |
GET/categories | Categories, languages & flags All categories per source, languages, content flags and joke counts. |
Quick start
Subscribe on RapidAPI (free plan available), copy your key, and call GET /random:
curl --request GET \
--url 'https://jokes-api-dad-jokes-puns-programming-more.p.rapidapi.com/random?source=any&count=2' \
--header 'x-rapidapi-host: jokes-api-dad-jokes-puns-programming-more.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://jokes-api-dad-jokes-puns-programming-more.p.rapidapi.com/random?source=any&count=2"
headers = {
"x-rapidapi-host": "jokes-api-dad-jokes-puns-programming-more.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://jokes-api-dad-jokes-puns-programming-more.p.rapidapi.com/random?source=any&count=2", {
method: "GET",
headers: {
"x-rapidapi-host": "jokes-api-dad-jokes-puns-programming-more.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
});
console.log(await res.json());
Example response
{
"count": 2,
"jokes": [
{
"id": "dad:CdUnOKeiqzd",
"source": "dad",
"category": "dad",
"type": "single",
"setup": null,
"delivery": null,
"joke": "which flower is most fierce? Dandelion",
"language": "en",
"flags": {
"nsfw": false,
"religious": false,
"political": false,
"racist": false,
"sexist": false,
"explicit": false
},
"safe": true
},
{
"id": "jokeapi:281",
"source": "jokeapi",
"category": "pun",
"type": "twopart",
"setup": "I was feeling depressed, my wife put her hand on my back and said \"Earth.\"",
"delivery": "It meant the world to me.",
"joke": "I was feeling depressed, my wife put her hand on my back and said \"Earth.\"\nIt meant the world to me.",
"language": "en",
"flags": {
"nsfw": false,
"religious": false,
"political": false,
"racist": false,
"sexist": false,
"explicit": false
},
"safe": true
}
]
}
Start free. Every plan includes all endpoints; upgrade only when you need more requests. Runs on Cloudflare's global network for low latency worldwide.
Subscribe on RapidAPIRelated APIs
Twitch Data
Twitch channel profiles & live status, top live streams by game, top categories, clips, VODs and channel search. No OAuth token, no setup.
EntertainmentTV Shows & Schedule API
TV series data: search, show details, seasons & episodes with air dates, cast & crew, TV and streaming schedules by country, people and credits.