Anyone using a reliable API for accurate ip geolocation?
Hey folks,
My SaaS app relies pretty heavily on knowing user locations for analytics and some feature gating, and honestly, i'm finding my current free public ip lookup services just ain't cutting it anymore. we're trying to give users a localized experience, but the data is just so hit-or-miss.
The main problem is that these free services often return really inaccurate city/region data or are just too darn slow, which leads to a poor user experience and totally skewed analytics on our end. i've tried a few different free IP location APIs, but i'm getting super inconsistent results. sometimes it's fine, other times it's way off or takes ages to respond. here's a quick example of some slow response times i'm seeing:
INFO: [2023-10-27 10:35:12] Attempting IP lookup for 172.217.160.142
WARN: [2023-10-27 10:35:17] Lookup for 172.217.160.142 took 5.02s - exceeding threshold!
ERROR: [2023-10-27 10:35:17] Location data for 172.217.160.142: { "city": "Kansas City", "region": "MO", "country": "US" } (Expected: Mountain View, CA)
INFO: [2023-10-27 10:35:20] Attempting IP lookup for 203.0.113.45
INFO: [2023-10-27 10:35:21] Lookup for 203.0.113.45 took 1.10s
INFO: [2023-10-27 10:35:21] Location data for 203.0.113.45: { "city": "Sydney", "region": "NSW", "country": "AU" } (Correct)
So, i'm really looking for solid recommendations for a robust, reliable, and reasonably priced API for public ip lookup, specifically focusing on really accurate ip geolocation. what are you all using that's fast and precise?
2 Answers
MD Alamgir Hossain Nahid
Answered 1 week agoHey Ali Abdullah, for robust and accurate IP geolocation, consider MaxMind GeoIP2 Web Services or IPinfo.io. Both provide high-speed responses and superior location intelligence essential for precise analytics and effective geo-targeting in SaaS applications.
Ali Abdullah
Answered 1 week agoSo thanks MD Alamgir Hossain Nahid, legend! I'll definitely check those out.