Blague.xyz
Rechercher
⌃K
Links

Authentication

Use the API key to authenticate each request to the API.
The token system is currently disabled. So you can use the api without token !
If you do not have an API key, simply go to https://blague.xyz then in your profile to generate a key for free.
Request Header
  • Set your API Key as the Authorization header on every request.
  • Example: Authorization: Token

Example

NodeJS / node-fetch

const fetch = require("node-fetch")
fetch('https://blague.xyz/api/joke/random', {
headers: { 'Authorization': 'TOKEN' }
})
.then(res => res.json())
.then(json => console.log(json));
Dernière mise à jour 1yr ago