PINIP.net offers a free JSON endpoint for developers who need geolocation, ISP, ASN, and security hints without scraping HTML. Full reference: API documentation.
PINIP.net JSON API overview
Example request
curl -s "https://pinip.net/api?ip=8.8.8.8"
Replace the IP with any valid IPv4 or IPv6 address. Omit ip to resolve the caller's address.
Response fields (typical)
ip,country,city,latitude,longitudeisp,org,asnproxy,hosting,mobilewhen available
JavaScript fetch example
const res = await fetch("https://pinip.net/api?ip=1.1.1.1");
const data = await res.json();
console.log(data.country, data.isp);Production tips
- Cache responses per IP for 1–24 hours.
- Handle null coordinates gracefully.
- Never rely on IP alone for authentication.
- Combine with our VPN/proxy signals.
