Provides a collection of jokes categorised by type (programming, puns, dark, misc) with filtering by language, category, and content flags. Useful for learning REST API integration patterns in Python, practising data ingestion with filtering parameters, and building small test datasets for NLP experiments.
Engineers use `requests` with query parameters to filter jokes by category (Programming, Misc, Pun), type (single vs. two-part), and safe mode. The structured JSON response is ideal for building text classification datasets without web scraping.
JokeAPI joke collections are surprisingly useful for training AI humor classifiers and evaluating whether LLMs understand comedic structure. You can fine-tune a model on joke punchlines or build a RAG pipeline that retrieves contextually relevant jokes for AI-powered presentation tools.
# pip install requests
import requests
resp = requests.get(
"https://v2.jokeapi.dev/joke/Programming",
params={"type": "single", "safe-mode": True}
)
print(resp.json()["joke"])Official dataset source
More datasets used by Python data engineers.
A RESTful database API covering all Nintendo Amiibo figures with attributes including series, character, release dates, and game compatibility. Useful for practising API ingestion, building product catalogues, and learning JSON-to-database ETL workflows in Python.
Access open-source global map data including roads, buildings, points of interest, land use, and administrative boundaries from OpenStreetMap. Used in geospatial data engineering pipelines for routing analysis, map enrichment, address geocoding, and building location-aware datasets with Python using the OSMnx library.
Provides structured data about Breaking Bad characters, episodes, quotes, and deaths. A clean, well-documented REST API commonly used to practise JSON ingestion, relational data modelling, and building small ETL pipelines in Python before working with larger production data sources.