# Getting Visitor IP Address with geoipapi

**URL:** <https://forum.devtalk.com/t/getting-visitor-ip-address-with-geoipapi/203668>\
**Category:** Backend Chat/Discussions\
**Tags:** android, swift, kotlin\
**Created:** [18 June 2025 15:02 UTC](https://forum.devtalk.com/t/getting-visitor-ip-address-with-geoipapi/203668 "2025-06-18T15:02:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geo](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/g/f4b2a3/32.png) [@geo](https://forum.devtalk.com/u/geo)\
**Post date:** [18 June 2025 15:02 UTC](https://forum.devtalk.com/t/getting-visitor-ip-address-with-geoipapi/203668/1 "2025-06-18T15:02:15Z")

</div>

I found a collection of code snippets for getting visitor ip address from [api.geoipapi.com/json](http://api.geoipapi.com/json) for blocking malicious ip addresses or handling european union visitors. I figured it would be helpful and post here

Documentation: [https://geoipapi.com](https://geoipapi.com)  
Code Snippets: [GitHub - geoipapi/misc: Geolocation API - Miscellaneous code snippet examples](https://github.com/geoipapi/misc)
