JokeAPI Scraper
Pricing
from $10.00 / 1,000 results
JokeAPI Scraper
Scrape jokes from JokeAPI across 7 categories including Programming, Pun, and Dark. Filter by type, language, and safety flags. Bulk joke collection for apps and bots.
Pricing
from $10.00 / 1,000 results
Rating
0.0
(0)
Developer
lulz bot
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Share
Scrape jokes from JokeAPI (v2.jokeapi.dev) across 7 categories including Programming, Pun, and Dark humor. Filter by type, language, and safety flags. Bulk joke collection for apps and bots.
Features
- 7 categories: Any, Miscellaneous, Programming, Dark, Pun, Spooky, Christmas
- 2 joke types: Single (one-liners) and Two-part (setup + delivery)
- 6 languages: English, German, Czech, Spanish, French, Portuguese
- Safe mode: Filter out NSFW, religious, political, racist, sexist, and explicit content
- Deduplication: Tracks joke IDs to avoid duplicates across batches
- Content flags: Each joke includes detailed safety/content flags
Output Fields
| Field | Description |
|---|---|
id | Unique joke ID from JokeAPI |
category | Joke category (Misc, Programming, Dark, Pun, Spooky, Christmas) |
type | single or twopart |
joke | Full joke text (for single-type jokes) |
setup | Setup line (for two-part jokes) |
delivery | Punchline (for two-part jokes) |
lang | Language code (en, de, cs, es, fr, pt) |
safe | Whether the joke is safe for all audiences |
flags | Object with nsfw, religious, political, racist, sexist, explicit booleans |
scrapedAt | ISO timestamp |
Input Options
- Category: Any, Misc, Programming, Dark, Pun, Spooky, or Christmas
- Joke Type: Any, Single (one-liner), or Two-part (setup + delivery)
- Language: English, German, Czech, Spanish, French, Portuguese
- Safe Mode: Toggle to filter inappropriate content
- Limit: 1 to 500 jokes (default 50)
Use Cases
- Chatbots: Add humor to Discord, Slack, or Telegram bots
- Apps: Build joke-of-the-day features
- Content creation: Generate joke content for social media
- Developer tools: Programming jokes for loading screens and error pages
- Entertainment: Build joke databases for party games
Example Output
{"id": 168,"category": "Programming","type": "twopart","joke": null,"setup": "Why do programmers prefer dark mode?","delivery": "Because light attracts bugs.","lang": "en","safe": true,"flags": {"nsfw": false,"religious": false,"political": false,"racist": false,"sexist": false,"explicit": false},"scrapedAt": "2026-04-26T12:00:00.000Z"}
Notes
JokeAPI returns up to 10 jokes per request. The scraper automatically paginates to reach your desired limit. Jokes are deduplicated by ID so you get unique results even across large batches.
Run on Apify
This scraper runs on the Apify platform — a full-stack web scraping and automation cloud. Sign up for a free account to get started with 30-day trial of all features.