API Documentation
GeoIP and ASN lookups over a simple HTTP API.
Use IPRout to retrieve geolocation, timezone, currency, calling code, ASN and network ownership data for the caller IP or for a specific IP address supplied in the path.
Base URL
https://api.iprout.comLookup Caller IP
Call this endpoint with no path parameter to look up the IP address making the request. IPRout resolves the caller from trusted proxy headers such as X-Forwarded-For.
Endpoint
GET /ipLookup IP Address
Add an IPv4 or IPv6 address to the path to look up that specific address. This does not use the caller IP.
Endpoint
GET /ip/{ip}Example
GET /ip/8.8.8.8Response
{
"ip": "8.8.8.8",
"continent": "North America",
"continent_code": "NA",
"country": "United States",
"country_code": "US",
"region": "California",
"city": "Mountain View",
"timezone": "America/Los_Angeles",
"utc_offset": "-07:00",
"latitude": 37.4056,
"longitude": -122.0775,
"asn": 15169,
"organization": "Google LLC",
"currency": "USD",
"calling_code": "+1"
}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_KEYAlternative
X-API-Key: YOUR_API_KEYAI MCP Server
The IPRout AI MCP Server now has its own AI-friendly page for MCP-compatible clients, installation steps and agent tooling.