IPRout

API Documentation

GeoIP and ASN lookups over a simple HTTP API.

Use IPRout to retrieve geolocation, timezone, ASN and network ownership data for a supplied IP address or the caller IP.

Base URL

https://api.iprout.com

Lookup IP Address

Return geolocation and ASN information for a supplied IP address.

Endpoint
GET /ip/{ip}
Example
GET /ip/8.8.8.8
Response
{
  "ip": "8.8.8.8",
  "country_code": "US",
  "country": "United States",
  "region": "California",
  "city": "Mountain View",
  "timezone": "America/Los_Angeles",
  "latitude": 37.4056,
  "longitude": -122.0775,
  "asn": 15169,
  "organization": "Google LLC"
}

Lookup Caller IP

Returns information for the caller IP address.

Endpoint
GET /ip

Errors

401
Missing or invalid API key
422
Invalid IP
429
Rate Limited
500
Internal Server Error

Authentication

Bearer API Key

Header
Authorization: Bearer YOUR_API_KEY
Alternative
X-API-Key: YOUR_API_KEY