import Ipstack from "ipstack-sdk";
// Initialize with your API key
const ipstack = new Ipstack("YOUR_API_KEY");
// Single IP lookup
ipstack
.standard("134.201.250.155")
.then((data) => console.log(data))
.catch((error) => console.error(error));
// Bulk IP lookup
ipstack
.bulk("134.201.250.155,72.229.28.185")
.then((data) => console.log(data))
.catch((error) => console.error(error));
// Requester IP lookup
ipstack.requestIP().then((data) => console.log(data));