🎲
Random
All kinds of jokes of different types
get
https://api.night-api.com/
images/sfw
SFW Images
Lists of available SFW types:
- Coffee
- Food
- Holo
- Kanna
const axios = require("axios");
axios.get('https://api.night-api.com/images/sfw', {
headers: {
authorization: "Your API token"
}
})
.then(function (response) {
console.log(response.data);
})
Or with the module
// Return: Promise
const { NightAPI } = require('night-api');
const api = new NightAPI('YOUR_API_KEY');
const image = await api.sfw.fetchImage(); // Random images
Last modified 4mo ago