ipquery-sdk
v1.0.1
Published
🚀 A lightweight Node.js SDK for fetching **IP details, ISP, location, and risk analysis** using [IPQuery API](https://ipquery.io).
Readme
📍 IPQuery SDK (Node.js)
🚀 A lightweight Node.js SDK for fetching IP details, ISP, location, and risk analysis using IPQuery API.
📦 Installation
npm install ipquery-sdk🚀 Usage
1️⃣ Fetch Full IP Details
const { getIPDetails } = require("ipquery-sdk");
getIPDetails("8.8.8.8").then(console.log).catch(console.error);🔹Response:
{
"ip": "8.8.8.8",
"isp": { "asn": "AS15169", "org": "Google LLC", "isp": "Google LLC" },
"location": { "country": "United States", "city": "Mountain View" },
"risk": { "is_vpn": false, "is_proxy": false, "risk_score": 0 }
}📌 API Methods
🔹 getIPDetails(ip) Fetch ISP, location, and risk analysis.
🔹 getISP(ip) Fetch ISP details (ASN, Organization, ISP).
🔹 getLocation(ip) Fetch Location details (Country, City, Latitude/Longitude).
🔹 getRisk(ip) Fetch risk analysis (VPN, Proxy, Datacenter).
🔹 isVPN(ip) Check if an IP is using a VPN.
