JokeAPI API
Overview
JokeAPI is a free, no-auth REST API that returns programming, miscellaneous, and dark jokes in single-part or two-part formats. It supports extensive filtering options so you can exclude categories like NSFW, racist, or sexist content to keep jokes appropriate. It is one of the easiest APIs for beginners to start with since no sign-up is required.
Beginner Tip
Use the blacklistFlags parameter to exclude offensive content (e.g., ?blacklistFlags=nsfw,racist) and specify a category like Programming or Misc to get more relevant jokes.
Available Data
Example Response
{
"error": false,
"category": "Programming",
"type": "twopart",
"setup": "Why do programmers prefer dark mode?",
"delivery": "Because light attracts bugs.",
"id": 42,
"lang": "en"
} Field Reference
type Format of the joke: single (one field) or twopart (setup + delivery). joke The full joke text when type is single. setup The question or premise of the joke when type is twopart. delivery The punchline of the joke when type is twopart. category The category this joke belongs to, such as Programming or Dark. id Unique identifier for the joke, useful for linking directly to a specific joke. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://sv443.net/jokeapi/v2/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Recipes Using JokeAPI
Build something with this API. Each recipe includes step-by-step instructions and code outlines.
Similar APIs
View All →Age of Empires II
Age of Empires II provides programmatic access to get information about age of empires ii resources via REST API.
AmiiboAPI
AmiiboAPI provides programmatic access to nintendo amiibo information via REST API.
Animal Crossing: New Horizons
⭐ Beginner's PickThe Animal Crossing: New Horizons API gives you free access to in-game data including villagers, critters, fossils, art, music, and furniture.
Autochess VNG
The Autochess VNG API provides game data for the Autochess VNG mobile game including heroes, items, and races.
Barter.VG
Barter.VG aggregates data about PC games, DLC, bundles, giveaways, and trading from Steam and other platforms.