An API for jokes! This API is primarily for getting a random joke from a growing list of jokes hosted here. The API uses Azure functions. Got funny jokes? See how to submit your jokes down below!
https://joke-api.azurewebsites.net/api/joke/
returns
{
"id": 56,
"type": "programming",
"setup": "How do you check if a webpage is HTML5?",
"punchline": "Try it out on Internet Explorer"
}
https://joke-api.azurewebsites.net/api/joke/?joketype=programming types of jokes: general, programming, knock-knock (feel free to add jokes outside of these types)
Submit a Pull Request, with your joke added to the jokes/index.json file. Be sure to use this format when adding your joke:
{
"id": <one higher than the previous joke>,
"type": "your joke's type",
"setup": "your joke's setup line",
"punchline": "your joke's punchline"
}
As a super simple example, this function simple appends returns Hello + name
.
https://joke-api.azurewebsites.net/api/hello/?name=Alex
returns
Hello Alex
- Azure functions - Cloud service, highly recommended
- Node.js - Serverside scripting (in Azure)
coming soon
- Inspired by this repository.
- jokes gathered from all around the web
This project is licensed under the MIT License - see the LICENSE.md file for details