Accurate, regularly updated IP geolocation databases for developers. Served via lightning-fast CDN with no authentication required.
Two industry-leading geolocation databases, automatically updated and served via CDN.
Industry Standard
https://cdn.jsdelivr.net/npm/geolite2-city/GeoLite2-City.mmdb.gz
Lightweight Alternative
https://cdn.jsdelivr.net/npm/dbip-city-lite/dbip-city-lite.mmdb.gz
Get started in minutes with our simple integration examples.
use GeoIp2\Database\Reader;
// Download the database from CDN
$dbUrl = 'https://cdn.jsdelivr.net/npm/geolite2-city/GeoLite2-City.mmdb.gz';
// Initialize the reader
$reader = new Reader('/path/to/GeoLite2-City.mmdb');
// Look up an IP address
$record = $reader->city('128.101.101.101');
echo $record->country->name; // 'United States'
echo $record->city->name; // 'Minneapolis'
echo $record->location->latitude;
https://cdn.jsdelivr.net/npm/geolite2-city/GeoLite2-City.mmdb.gz
https://cdn.jsdelivr.net/npm/dbip-city-lite/dbip-city-lite.mmdb.gz
We handle the complexity so you can focus on building.
Served via jsDelivr with global edge locations. Average response time under 50ms worldwide.
GitHub Actions automatically fetch and publish the latest databases. No manual intervention needed.
No API keys, no accounts, no rate limits. Just download and use immediately.
All versions preserved in npm registry. Roll back to any previous database version if needed.
Full transparency. Check our GitHub repos for automation scripts and update history.
Maintained by WP Statistics team. Trusted by thousands of WordPress sites worldwide.
Start using accurate geolocation data in your application today.