๐ID
Choose a specific joke by its ID
Blague par ID
GET https://api.night-api.com/jokes/:id
Path Parameters
Name
Type
Description
id*
number
ID de la blague ร rรฉcupรฉrer (Entre 1 et 900)
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 ID provided",
}const axios = require("axios");
axios.get('https://api.night-api.com/jokes/44', {
headers: {
authorization: "API token"
}
})
.then(function (response) {
console.log(response.data);
})Or with the NPM module
Last updated
Was this helpful?
