Jokes API logo

Jokes API

|
Entertainment
|
1 tokens / call

252 original, clean jokes — single-liners and two-part setup/punchline — across 12 categories: dad, pun, programming, general, animal, food, science, work, school, music, sports and space. Pull random jokes (up to 20 at once), full-text search the whole set, filter by category or type, page through everything, or fetch a joke by id. Every joke is written for this API and SFW (safe: true), so it is drop-in ready for apps, chatbots, dashboards, Slack bots and games aimed at any audience.

Quick Start

Subscribe to get instant API access with your unique API key.

View Pricing Plans

Available Endpoints

Request Parameters

API URL

Please subscribe to see the API URL

Headers

X-Api-Key

Path Parameters

id

Please subscribe to see the actual API URL

import axios from 'axios';

const url = '{API_URL}';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});