After much consideration and back and forth, I have come to the conclusion I can no longer offer the service of JokeAPI.
It'll be deprecated soon, and will cease working starting March 1st 2027.
This is happening due to several reasons:
- Ethics: JokeAPI was made with the intention of catering to every kind of humor - no matter how dark and twisted - and to not be heavily censored like everything else these days. The issue with that is I could never control how and by whom it was being used and who got hurt by this stance, so over time I had a harder and harder time reconciling it with my own beliefs of kindness and acceptance above all else.
- Rise of AI: Synthetic requests for pure amassing of data have made it harder and harder to maintain the service. Even though there's a full copy of all jokes as JSON, it's more direct to tell your agent to spam the API. I have no desire to enter an infinite cat-and-mouse-game of blocking IPs and making regular users jump through hoops for it.
- Maintenance: The current version of the API was made rather shoddily, with no regard for the future, as it was originally meant as a pure hobby project. Now - even though the uptime has been close to flawless - it's always one step away from failure and has become unmaintainable to the point where a full rewrite would've been necessary, which isn't going to happen for the other reasons mentioned in this list.
- Rising Costs: Server costs have skyrocketed and the optional donations I've set up to help me cover the costs are still as sparse as ever. In this economy I can no longer cover the costs out of my own pocket.
What this means for you:
If you're currently using JokeAPI for your project(s), you will need to migrate to an alternative service (some examples are listed below). If you use something that relies on JokeAPI, kindly let the author know of the impending EOL.
If you want to avoid migrating to another service and want the exact same experience going forward, you can also get a copy of the full source code and host it yourself. Refer to my Git mirror for this: https://git.sv443.net/Sv443/JokeAPI-v2
You have until the 28th of February 2027 to migrate. Until then, there might be notices of deprecation sent along with some requests to the service, to let maintainers know who aren't in my official communication channels.
Some Alternatives:
- https://apileague.com/apis/random-joke-api/
- https://icanhazdadjoke.com/api
- https://humorapi.com/ (I am unaffiliated with any of these, they are purely what I found based on my own research.)
Thank you for being part of the journey and I hope to still be able to continue offering other services for free, because that is who I am and what I wanna do at the end of the day.
> Documentation • Try it out • Changelog • Discord Server <
A free and open REST API that delivers consistently formatted jokes in JSON, XML, YAML, or plain text.
Powerful filters allow you to get just the jokes you want - no sign-up needed. Comes with CORS support.
Warning
JokeAPI contains a very wide variety of jokes, some of which can be seen as quite offensive.
They can be reliably filtered out using the parameters ?blacklistFlags and ?safe-mode.
Still, use this API at your own risk!
Note
JokeAPI is free to use, so it relies on donations to cover the costs.
If you enjoy using it, please consider supporting the development ❤️
Note
If you want to contribute to JokeAPI (code, jokes or translations), please refer to the contributing guide.
Also make sure to use the repo at https://git.sv443.net/sv443/JokeAPI-v2
C#
Dart
Go
Java (com.github.the-codeboy.Jokes4J)
Java (com.simtechdata.jokeapi)
Kotlin, Java & Android (net.thauvin.erik.jokeapi)
Java (uz.khurozov.jokeapi-java)
Node.js
Odin
PHP
Python
Rust
TypeScript
Made with ❤️ by Sv443 and contributors
Like JokeAPI? Please consider supporting the development