# ip2country

Source: https://zotonic.com/docs/1772/ip2country

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

Language: en



Return the lowercase ISO country code associated with an IP address.

The input can be a textual or tuple IP address. The result is `undefined` when the address cannot be located.

For example:

```django
{{ "8.8.8.8"|ip2country }}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1772?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/1772?language=en>)
