Node-based IP address lookup utility
npm install @alpertayfun/ipdatashell
npm install -g @alpertayfun/ipdata
`
Using ipdata
ipdata has the following available options:
`bash
Usage: ipdata [options]
Options:
-V, --version output the version number
-i, --ip ip address
-t, --type type ( json,xml,yaml,csv )
-a, --auth accesstoken
-v, --vendor vendor name ( ipinfo , ip-api, ipstack, ipfind, ipify, abstractapi, ip2location, ipgeolocation, ipdata, ipapi, ipgeolocationapi, freegeoip, extreme-ip-lookup )
-h, --help output usage information
`
Example
`
$ ipdata -i 89.41.26.61 -t json -a 123456asd -v ipinfo
{
ip: '89.41.26.61',
city: 'Los Angeles',
region: 'California',
country: 'US',
loc: '34.0443,-118.2509',
org: 'AS9009 M247 Ltd',
postal: '90014',
timezone: 'America/Los_Angeles'
}
$ ipdata -i 89.41.26.61 -t xml -a 123456asd -v ipinfo
89.41.26.61
Los Angeles
California
US
34.0443,-118.2509
AS9009 M247 Ltd
90014
America/Los_Angeles
$ ipdata -i 89.41.26.61 -t yaml -a 123456asd -v ipinfo
ipInfo:
ip: 89.41.26.61
city: Los Angeles
region: California
country: US
loc: 34.0443,-118.2509
org: AS9009 M247 Ltd
postal: "90014"
timezone: America/Los_Angeles
``