public class IPInfo extends Object
| Modifier and Type | Method and Description |
|---|---|
static IPInfoBuilder |
builder()
Gets the builder for IPInfo
|
ASNResponse |
lookupASN(String asn)
Lookup ASN information using the AS number.
|
IPResponse |
lookupIP(String ip)
Lookup IP information using the IP.
|
static void |
main(String... args) |
public static void main(String... args)
public static IPInfoBuilder builder()
public IPResponse lookupIP(String ip) throws RateLimitedException
ip - the ip string to lookup - accepts both ipv4 and ipv6.RateLimitedException - an exception when your api key has been rate limited.public ASNResponse lookupASN(String asn) throws RateLimitedException
asn - the asn string to lookup.RateLimitedException - an exception when your api key has been rate limited.Copyright © 2019. All rights reserved.