# ip2geo

Source: https://zotonic.com/docs/1951/ip2geo

URI: https://zotonic.com/id/1951

Language: en



Return geographic information associated with an IP address.

The input can be a textual or tuple IP address. The result is a map supplied by the configured GeoIP database, or `undefined` when the address cannot be located.

For example:

```django
{% with "8.8.8.8"|ip2geo as geo %}
    {{ geo.country.iso_code }}
{% endwith %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1951?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1951?language=en>)
