node-neustar
Node.js tool for Neustar IP Intelligence API
Example of use
var NeustarIntel = require('node-neustar');
var neustar = new NeustarIntel ("api_key", "secret");
neustar.ipinfo('4.2.2.2', function(result){
if(result !== null) {
console.log(result);
}
})
Example of response
{
"ip_address": "4.2.2.2",
"ip_type": "Mapped",
"anonymizer_status": null,
"Network": {
"organization": "level 3 communications inc.",
"OrganizationData": {
"home": "false",
"organization_type": "Internet Service Provider",
"naics_code": "517110",
"isic_code": "J6110",
},
"carrier": "level 3 communications",
"asn": 3356,
"connection_type": "tx",
"line_speed": "high",
"ip_routing_type": "fixed",
"Domain": {
"tld": "net",
"sld": "bbnplanet"
},
},
"Location": {
"continent": "north america",
"latitude": 33.499,
"longitude": -117.662,
"CountryData": {
"country": "united states",
"country_code": "us",
"country_cf": 97,
},
"region": "southwest",
"StateData": {
"state": "california",
"state_code": "ca",
"state_cf": 87,
},
"dma": 803,
"msa": 31100,
"CityData": {
"city": "san juan capistrano",
"postal_code": "92675",
"time_zone": -8,
"area_code": "949",
"city_cf": 77,
},
}
}