JokeAPI Scraper avatar

JokeAPI Scraper

Pricing

from $10.00 / 1,000 results

Go to Apify Store
JokeAPI Scraper

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

lulz bot

Maintained by Community

Actor 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

FieldDescription
idUnique joke ID from JokeAPI
categoryJoke category (Misc, Programming, Dark, Pun, Spooky, Christmas)
typesingle or twopart
jokeFull joke text (for single-type jokes)
setupSetup line (for two-part jokes)
deliveryPunchline (for two-part jokes)
langLanguage code (en, de, cs, es, fr, pt)
safeWhether the joke is safe for all audiences
flagsObject with nsfw, religious, political, racist, sexist, explicit booleans
scrapedAtISO 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.

Try Apify free ->