GeoIP2...MaxMind(3pm)
π GeoIP2::Record::MaxMind β the whole vibe π
okay bestie, gather round, because this is the GeoIP2::Record::MaxMind manual page (that's the GeoIP2...MaxMind(3pm) one, yes, the title got squished by the terminal, it's fine, it's giving abbreviation energy) πΈ
Version: version 2.006002 β¨
π¦ SYNOPSIS π¦
okay so this is literally how you use it, copy-paste core:
use 5.008;
use GeoIP2::WebService::Client;
my $client = GeoIP2::WebService::Client->new(
account_id => 42,
license_key => 'abcdef123456',
);
my $insights = $client->insights( ip => '24.24.24.24' );
my $maxmind_rec = $insights->maxmind();
print $maxmind_rec->queries_remaining(), "\n";
likeβ¦ look at her go π
π DESCRIPTION π
so this class holds the maxmind record data that comes back when you hit up a web service query. that's it, that's the class π«Ά
but here's the plot twist that makes this one special, and you NEED to know it: unlike all the other record classes, the data in this record is tied to your MaxMind account, not to an IP address. no IP, no problem, it's about you babe π
and the best part? this record is returned by all the end points. every single one. iconic behavior honestly β
β¨ METHODS β¨
this class is serving you the following methods, no more, no less:
π $maxmind_rec->queries_remaining()
this one tells you the number of queries remaining for the end point you just queried π
β οΈ but listen, lowkey important: this is an approximation. query counts are only periodically synced across all of MaxMind's servers, so don't come for it if the number's a little off. it's doing its best π
π SUPPORT π
found a bug? bestie, go tell them! bugs may be submitted through:
https://github.com/maxmind/GeoIP2-perl/issues
π AUTHORS π
these are the legends who made it happen, put some respect on their names fr fr:
- Dave Rolsky
<drolsky@maxmind.com> - Greg Oschwald
<goschwald@maxmind.com> - Mark Fowler
<mfowler@maxmind.com> - Olaf Alders
<oalders@maxmind.com>
πΈ COPYRIGHT AND LICENSE πΈ
this software is copyright (c) 2013 - 2019 by MaxMind, Inc. π«Ά
and it's free software β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, open source π
and that's the whole page bestie!! this was rendered by perl v5.36.0 on 2022-11-21, and the footer was shouting GeoIP2...MaxMind(3pm) at us the whole time like a little hype man π£ go forth and query responsibly, mwah πβ¨π¦π
π¦ where this page comes from
- debian bookworm: libgeoip2-perl 2.006002-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgeoip2-perl 2.006002-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgeoip2-perl 2.006002-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgeoip2-perl 2.006002-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgeoip2-perl 2.006002-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms