Guides & insights
Tutorials, deep-dives, and practical tips on IP geolocation, ASNs, and networking - from the team behind The IP API.
Get User Location from IP in JavaScript (Browser and Node)
How to get a user's location from their IP in JavaScript the right way - a server-side proxy that keeps your API key safe, plus Node and serverless examples.
What Is a Bogon IP Address (and Why You Should Filter Them)
A bogon IP is an address that should never appear as a source on the public internet. What the ranges are, why they show up anyway, and how to filter them.
Blocking Bot and Datacenter Traffic by ASN
Per-IP blocklists rot. How to block datacenter IP ranges by ASN instead - identify operators, aggregate abusive traffic, and scope rules that spare real users.
How to Detect VPNs, Proxies, and Datacenter IPs
How to detect a VPN by IP address using known provider ranges and ASN ownership, what the limits are, and how to act on is_vpn and is_datacenter flags.
How Accurate Is IP Geolocation Really?
Country-level IP geolocation is highly reliable. City-level is an estimate. Here is why, what the coordinates actually mean, and how to use each safely.
IP Geolocation in Go: A Practical Guide
Build a Golang IP geolocation client with net/http and typed structs, add context timeouts, and enrich incoming requests with country data via middleware.