🎲Random
All kinds of jokes of different types
Random joke
GET https://api.night-api.com/jokes
Génère une blague aléatoirement.
Query Parameters
Name
Type
Description
disallow
string
To avoid the generation of certain categories of jokes
Headers
Name
Type
Description
authorization*
String
Your API key
{
"status": 200,
"content": {
"id": 44,
"type": "global",
"blague": "Que dit un canard quand il va aux toilettes ?",
"reponse": "Je vais au petit coin."
}
}{
status: 400,
error: "Bad disallow query provided"
}Lists of available categories:
global
dev
dark
limit
beauf
blondes
Or with the NPM module
With this method, you can specify certain categories that you do not want to receive.
Last updated
Was this helpful?
