Knowledge & Fun

Jokes API

Humor into your applications with our massive collection of jokes! Whether you're building a comedy app, enhancing a chatbot, or adding fun to your platform, our Jokes API delivers instant laughs.

Request Headers

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required jokes.p.rapidapi.com

Endpoints

GET /v1/jokes

Get random jokes, optionally filtered by category

Parameters

NameTypeRequiredDefaultConstraints
categorystringoptional——
limitintegeroptional11-10

Code Examples

curl --request GET \
  --url 'https://jokes.p.rapidapi.com/v1/jokes?category=example&limit=1' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: jokes.p.rapidapi.com'
GET /v1/jokes/categories

List all joke categories available in the dataset, sorted alphabetically.

Code Examples

curl --request GET \
  --url 'https://jokes.p.rapidapi.com/v1/jokes/categories' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: jokes.p.rapidapi.com'

Interactive Example

jokes
$ GET /v1/jokes?category=general&limit=1
{"data":[{"joke":"I only know 25 letters of the alphabet. I do not know y.","category":"general"}],"meta":{"total":1,"limit":1,"offset":0}}

Integration & Usage Guide

Inject humor into your applications with our massive collection of jokes! Whether you’re building a comedy app, enhancing a chatbot, or adding fun to your platform, our Jokes API delivers instant laughs.

🎯 Try It Free Now - Get instant access to 500,000+ jokes with our powerful API. Perfect for developers building entertainment apps, chatbots, and content platforms!

🌟 Key Features

  • Massive Collection: Access over 500,000 unique jokes
  • Simple Integration: Single endpoint for maximum simplicity
  • Lightning Fast: Get random jokes instantly
  • Developer-Friendly: Clean, simple JSON responses
  • High Availability: Built for scale and reliability

📚 API Endpoint

Get Random Joke

GET /v1/jokes/random

Returns a random joke from our vast collection. Perfect for:

  • Daily joke features
  • Chat applications
  • Social media bots
  • Content randomizers
  • Entertainment platforms

📊 Response Format

Clean, simple JSON response:

{
  "text": "Why don't programmers like nature? It has too many bugs!"
}

⚡ Status Codes

  • 200: Success - Here’s your joke!
  • 400: Bad Request
  • 401: Unauthorized
  • 403: Forbidden
  • 404: Not Found

💡 Perfect For

  • Entertainment Apps
  • Social Media Platforms
  • Chat Bots
  • Discord Bots
  • Slack Integrations
  • Educational Platforms
  • Content Creation Tools
  • Digital Assistants

Subscribe & License

Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.

View Pricing & Subscribe

Developer Support

Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.

Contact API Engineering

System Performance

Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.

All Systems Operational