Hacker News new | ask | show | jobs
by felipesabino 852 days ago
it seems you can just read all jokes at once via https://dadjokes736.onrender.com/jokes.json

The client side js code just picks up one in the list at random.

Also, looking at the js code, you can get the html to print a fixed joke by referencing the key in the json object on an "index" query param, ex: https://dadjokes736.onrender.com/?index=7

1 comments

I just found out that the same author has an api if anyone here is looking for a server side joke alternative :p https://us-central1-dadjokeapi.cloudfunctions.net/getRandomJ...