This module allows site developers to use IPstack API (former FreeGeoIP). This API use for locate and identify website visitors by IP address. Support HTTPS. Support caching.
You need obtain API Access Key from ipstack.com and save the key to module configuration. After that you can test getting of information using the module testing page.
Support testing page like /admin/config/system/ipstack/test/page?ip=[IP address].
Related modules
Usage:
Use Dependency Injection for getting ipstack service or use
\Drupal::service('ipstack').
$ip = '134.201.250.155';
$ipstack = \Drupal::service('ipstack');
$ipstack->setIp($ip)
->setFields('country_code')
->setOutput('json');
$data = $ipstack->getData();
if (isset($data['data'])) {
$country_code = $data['data']->decode()->country_code;
}
Detail documentation see at ipstack site.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Developer tools, Integrations, Site structure
- Ecosystem: IPstack
13 sites report using this module
- Created by goodboy on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.7
released 9 April 2026
Works with Drupal: ^9 || ^10 || ^11
Install:
Development version: 8.x-1.x-dev updated 13 Jun 2026 at 08:26 UTC



