ℹ
IP infos
Get informations about an IP adress
get
https://api.night-api.com/
general/ipinfo/:ip
Get infos about IP adress
const axios = require("axios");
axios.get('https://api.night-api.com/general/ipinfo/8.8.8.8', {
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 ip = await api.ipinfo.getInfos('8.8.8.8'); // Get infos about IP
Last modified 5mo ago