Perl5 Module WebService::IFConfig::Client

Client for Martin Polden's IP address lookup service.

Notes

Rate Limiting

Unless you are hosting your own copy of the service, the canonical instance at ifconfig.co requests you limit your requests to 1 per minute. Don't abuse his service, host your own if you need more frequent lookups.

Usage

use feature qw/say/;
use WebService::IFConfig::Client;
my $ipconfig = WebService::IFConfig::Client->new();

say $ifconfig->get_city();
say $ifconfig->get_country();
say $ifconfig->get_hostname();
say $ifconfig->get_ip();
say $ifconfig->get_ip_decimal();

Copyright Ⓒ 2017 Nicolas Doye

License

Apache License, Version 2.0