IPRout

API Documentation

Build with the IPRout IP geolocation API.

Start with one authenticated request, then use the focused guides for response fields, errors, usage, multiple active keys, CORS origin controls, Pro request caps, security, and production troubleshooting.

Last updated September 30, 2026

Build login activity

Turn a captured login IP into approximate location and network context for account history. The use-case guide includes an explicit IP lookup and a Laravel example.

Read the login activity use case

Getting Started

Make the first request, understand the public contract, and choose caller or explicit lookup.

API Reference

Validate addresses, parse lookup and usage responses, and handle every documented status.

API Keys & Security

Protect credentials and configure multiple keys, CORS origins, caps, rotation, and privacy boundaries.

/docs/api-key-lifecycle

API Key Governance Lifecycle

Govern the creation, storage, review, rotation, and retirement of IPRout API keys.

Open documentation →

/docs/multi-website-api-key-management

Multi-Website API Key Management

Design a multi-site IPRout setup with named active keys, per-key usage visibility, exact CORS origins, and configurable Pro request caps.

Open documentation →

/docs/multiple-active-api-keys

Multiple Active Keys by Plan

Compare active-key allowances and separate credentials across applications and environments.

Open documentation →

/docs/cors-origin-restrictions

CORS Origin Restrictions for API Keys

Restrict paid-plan API keys to approved browser origins and understand exact origin matching.

Open documentation →

/docs/per-key-request-caps

Per-Key Request Caps

Set Pro API key request caps and understand Starter's fixed plan-level cap.

Open documentation →

/docs/usage-and-shared-quotas

Shared Quotas Across API Keys

Understand how multiple IPRout keys consume one shared monthly account quota.

Open documentation →

/docs/key-rotation-and-revocation

Rotate and Revoke API Keys

Rotate an IPRout API key without downtime and revoke exposed or retired credentials.

Open documentation →

/docs/security-best-practices

API Key Security Best Practices

Protect IPRout API credentials with server-side storage, origin restrictions, caps, and rotation.

Open documentation →

/docs/browser-integration-and-cors

Browser Integration and CORS

Understand when direct browser lookup is appropriate and how exact IPRout CORS origins constrain paid keys.

Open documentation →

/docs/privacy-and-data-handling

Privacy and IP Data Handling

Minimize, protect, retain, and explain IP-derived location and network information responsibly.

Open documentation →

Production Integration

Design server boundaries, retries, caching, tests, monitoring, compatibility, and operational configuration.

/docs/server-side-integration

Server-Side IP Lookup Integration

Keep IPRout keys private and integrate caller or explicit IP lookup from trusted application servers.

Open documentation →

/docs/environment-configuration

Environment and Secret Configuration

Configure IPRout base URLs and API keys across local, staging, CI, and production environments.

Open documentation →

/docs/http-timeouts-and-retries

HTTP Timeouts and Retry Strategy

Configure bounded IPRout request timeouts, backoff, and status-aware retries for production systems.

Open documentation →

/docs/caching-strategies

Caching IP Geolocation Responses

Cache IPRout lookup results responsibly while accounting for routing changes, privacy, and quota usage.

Open documentation →

/docs/monitoring-and-alerting

API Monitoring and Usage Alerts

Monitor IPRout latency, status codes, shared quota, key caps, and unexpected consumption.

Open documentation →

/docs/testing-and-mocking

Testing and Mocking IP Lookup

Test IPRout clients with fixtures, mocked HTTP failures, and controlled integration checks.

Open documentation →

/docs/migration-and-versioning

API Compatibility and Versioning

Design IPRout clients for additive response evolution and controlled application migrations.

Open documentation →

/docs/data-accuracy-and-limitations

IP Geolocation Accuracy and Limitations

Understand network-location uncertainty, VPN effects, nullable fields, and responsible use of IPRout data.

Open documentation →

/docs/troubleshooting

IP Geolocation API Troubleshooting

Diagnose IPRout authentication, invalid IP, CORS, quota, and response parsing problems.

Open documentation →

Implementation Use Cases

Apply IP context responsibly to localization, analytics, security review, personalization, and operations.

/docs/localization

IP-Based Localization

Use IP country and timezone as editable localization defaults without treating them as confirmed preferences.

Open documentation →

/docs/analytics-enrichment

GeoIP Analytics Enrichment

Add country, region, ASN, and organization context to server-side analytics events.

Open documentation →

/docs/security-risk-context

IP Context for Security Review

Combine IPRout location and ASN data with stronger authentication and behavioral security signals.

Open documentation →

/docs/fraud-review-context

IP Intelligence for Fraud Review

Use country, ASN, and network organization as explainable supporting signals in fraud workflows.

Open documentation →

/docs/content-personalization

Regional Content Personalization

Personalize broad content defaults with IP country while retaining user choice and neutral fallbacks.

Open documentation →

/docs/timezone-defaults

Timezone Defaults from IP Location

Suggest an editable IANA timezone from IP context and handle offsets and daylight saving correctly.

Open documentation →

/docs/network-operations

ASN and Network Operations Context

Add ASN and organization information to support, outage, and network operations workflows.

Open documentation →

/docs/saas-onboarding

GeoIP Defaults for SaaS Onboarding

Reduce onboarding friction with editable country, timezone, currency, and calling-code suggestions.

Open documentation →

/docs/geoip-for-micro-saas

GeoIP API Infrastructure for Micro-SaaS

Build reliable, budget-aware IP lookup infrastructure for a micro-SaaS without operating and updating a GeoIP database.

Open documentation →

/docs/geoip-for-solo-founders

IP Geolocation and GeoIP API for Solo Founders

Launch a secure, low-maintenance IP lookup API integration with predictable costs, graceful fallbacks, and a one-person runbook.

Open documentation →

Tools & Specifications

Work with the OpenAPI contract and Postman documentation.