All pages
Powered by GitBook
1 of 1

Loading...

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

Headers

Name
Type
Description

Lists of available NSFW categories:

  • Anal

  • Ass

  • Boobs

  • Gonewild

Or with the module

Hanal

  • Hass

  • Hboobs

  • Hentai

  • Hkitsune

  • Hmidriff

  • Hneko

  • Hthigh

  • Neko

  • Paizuri

  • Pgif

  • Pussy

  • Tentacle

  • Thigh

  • Yaoi

  • type*

    String

    The type of NSFW image to get

    authorization*

    String

    Your API key

    {
        "status": 200,
        "content": {
            "id": 23,
            "type": "ass",
            "url": "https://cdn.night-api.com/api/images/nsfw/ass/4208ec0c4590ed4622e451f386e39.jpg"
        }
    }
    {
        "status": 400,
        "content": "Bad type provided"
    }
    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);
    })
    // 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"