A robust, professional-grade dynamic IP geolocation tracker designed for backend integration. It operates seamlessly regardless of whether the server is hosted on-premises or in the cloud.
- Detects user's timezone, IP, location, ISP, and more
- Works in Node.js
- Auto-detects environment
- Supports
require
npm install geo-inspector
# or
yarn add geo-inspector
const {
getFullDetails,
getBasicInfo,
getTimezone,
getConnectionDetails,
getCountryDetails
} = require('geo-inspector');
app.get('/api/location', async (req, res) => {
const info = await getFullDetails(req);
res.json(info);
});
-
getFullDetails()
– returns full IP details -
getBasicInfo()
– returns IP, city, country, region, lat/lon -
getTimezone()
– returns timezone info -
getConnectionDetails()
– returns ISP and connection info -
getCountryDetails()
– returns flag, capital, borders, etc.
{
"ip": "103.148.74.116",
"success": true,
"country": "Bangladesh",
"city": "Rajshahi",
"timezone": {
"id": "Asia/Dhaka",
"utc": "+06:00"
},
"connection": {
"isp": "Amber IT"
}
}
Built with ❤️ by Arifur Rahman