IPRout

IP Geolocation API Quickstart

Create an API key, send it as a Bearer token, and call GET /ip to locate the caller or GET /ip/8.8.8.8 to inspect a specific address. Both endpoints return the same GeoIP, timezone, coordinates, ASN, organization, currency, and calling-code fields.

Last updated August 10, 2026

How do I make my first request?

Use the production base URL over HTTPS and keep your API key in an environment variable.

curl -H "Authorization: Bearer YOUR_API_KEY" https://api.iprout.com/ip/8.8.8.8

Which endpoint should I choose?

Use /ip when your application needs the requester's public address. Add an address to the path when you already know which IP you need to inspect.

  • GET /ip: resolve the authenticated caller
  • GET /ip/{ip}: resolve the supplied IPv4 or IPv6 address

What should I do next?

Add timeout and error handling, then review response fields and quota behavior before shipping your integration.

  • Treat location as approximate
  • Handle 401, 422, 429, and 500 responses
  • Never expose a secret key in public client code