📋Category
Choose which Category of joke you would like to have
NSFW Images
GET
https://api.night-api.com/images/nsfw/:type
Path Parameters
Name
Type
Description
type*
String
The type of NSFW image to get
Headers
Name
Type
Description
authorization*
String
Your API key
{
"status": 200,
"content": {
"id": 23,
"type": "ass",
"url": "https://cdn.night-api.com/api/images/nsfw/ass/4208ec0c4590ed4622e451f386e39.jpg"
}
}
Lists of available NSFW categories:
Anal
Ass
Boobs
Gonewild
Hanal
Hass
Hboobs
Hentai
Hkitsune
Hmidriff
Hneko
Hthigh
Neko
Paizuri
Pgif
Pussy
Tentacle
Thigh
Yaoi
const axios = require("axios");
axios.get('https://api.night-api.com/images/nsfw/ass', {
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.nsfw.fetchImage("anal"); // Random images of category "anal"
Last updated
Was this helpful?