Skip to content

jacebenson/joke-api

Repository files navigation

Joke API

Deploy your own version to Netlify

Deploy to Netlify

curl https://wizardly-wing-66188a.netlify.com/.netlify/functions/jokes

Public Endpoints:

Grab a random joke!

https://wizardly-wing-66188a.netlify.com/.netlify/functions/server

How these jokes were collected

Full disclosure: I collected jokes from these sources initially;

Make a contribution!

Submit a Pull Request, with your joke added to the jokes.js file. Make sure the joke is in this format:

Adding a normal joke

{
  "joke": "your joke's setup line",
  "punchline": "your joke's punchline"
}

Adding a oneline pun

{
  "joke": "your joke's setup line",
  "punchline": null
}

Run Locally