Free IP Geolocation API with VPN Detection -- ipinfo.io Alternative for Developers
Free IP Geolocation API with VPN Detection -- ipinfo.io Alternative for Developers Published on: Dev.to Tags: api, webdev, javascript, python Canonical URL: (set after publishing) Looking for a fre...

Source: DEV Community
Free IP Geolocation API with VPN Detection -- ipinfo.io Alternative for Developers Published on: Dev.to Tags: api, webdev, javascript, python Canonical URL: (set after publishing) Looking for a free IP geolocation API with VPN detection? Most popular options like ipinfo.io charge $99/month for VPN detection, and ipstack doesn't even offer HTTPS on their free plan. I built a lightweight alternative that runs on Cloudflare Workers' edge network. Here's what it does and how to use it. What You Get (Free Tier: 500 requests/month) IP to country, city, region, lat/long, timezone, ISP VPN / proxy / datacenter detection Own-IP endpoint (/me) -- zero external API calls Bulk lookup (up to 20 IPs per request) HTTPS included on free tier Sub-100ms latency via Cloudflare edge (300+ cities) Quick Example: Detect VPN Users in Your App Python import requests url = "https://ip-geolocation-api.p.rapidapi.com/lookup" params = {"ip": "8.8.8.8"} headers = { "X-RapidAPI-Key": "YOUR_KEY", "X-RapidAPI-Host":