LogoLogo
  • 👥About us
  • 💾Changelogs
    • 🌐API
    • 📲Module
  • ⛔Rate-Limit
  • ✨Start with the NPM module
  • Module
    • 📸Images
      • 🐬Animals
    • 🎮Games
      • 🎮Garry's Mod
      • 🎮Minecraft
      • 🎮FiveM
  • Joke
    • 🤣Jokes
      • 🎲Random
      • 📋Category
      • 🆔ID
  • Images
    • 🐙Animals
      • 🐕Dog
      • 🐈Cat
      • 🦊Fox
      • 🦒Giraffe
      • 🦘Kangaroo
      • 🦁Lion
      • 🐒Quokka
      • 🐺Wolf
      • 🦎Lézard
      • 🐆Léopard
      • 🐒Singes
      • 🦚Paon
      • 🐹Hamster
    • 🥘SFW
      • 🎲Random
      • 📋Category
      • 🆔ID
    • 🔞NSFW
      • 🎲Random
      • 📋Category
      • 🆔ID
    • 🏗️Utils
      • 📸QR Code
        • 🔁Generator
        • 📃Reader
      • 🔐Captcha
      • ℹ️IP infos
  • Games
    • 🎮Games
      • 🎮Garry's Mod
      • 🎮Minecraft
      • 🎮FiveM
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Images
  2. SFW

Random

All kinds of jokes of different types

SFW Images

GET https://api.night-api.com/images/sfw

Headers

Name
Type
Description

authorization*

String

Your API key

{
    "status": 200,
    "content": {
        "id": 34,
        "type": "holo",
        "url": "https://cdn.night-api.com/api/images/sfw/holo/75f9fcb764921bfaedc9e4182db02.jpg"
    }
}
{
    "status": 400,
    "content": "Invalid key"
}

​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
PreviousSFWNextCategory

Last updated 2 years ago

Was this helpful?

🥘
🎲