NOTE:- OUTDATED API, CURRENTLY INACTIVE. PLEASE MOVE TO https://github.com/15Dkatz/official_joke_api
A free and open-source API to fetch dadjokes
Inspired from https://github.com/15Dkatz/official_joke_api
Since the creators are not accepting PRs' and also the server is unavailable, we have a new system in place as an alternative 🚀
GET /jokes/random GET /jokes/ten GET /jokes/{number}| Parameter | Type | Description |
|---|---|---|
number |
int |
Required. Number of jokes to fetch |
GET /jokes/{type}/random| Parameter | Type | Description |
|---|---|---|
type |
string |
Required. Category of joke |
GET /jokes/{type}/{number}| Parameter | Type | Description |
|---|---|---|
type |
string |
Required. Category of joke |
number |
int |
Required. Number of jokes to fetch |
Contributions are always welcome!
},
{
"id": last joke id + 1,
"type": "Your category here",
"setup": "Your joke here",
"punchline": "Your punchline here"
}
Please adhere to this project's code of conduct.
Clone the project
git clone https://github.com/eklavyadev/karljoke.gitGo to the project directory
cd karljokeInstall dependencies
npm installStart the server
npm run start