IP Lookup API
Get comprehensive geolocation and network information for any IP address. Our IP lookup service provides detailed location data, country information, and network details for both IPv4 and IPv6 addresses.What it does
The IP Lookup API helps you understand the geographic location and network details of any IP address. Get instant insights into where your users, traffic, or security events are coming from with precise geolocation data. Key capabilities:- IPv4 and IPv6 support - Complete support for both IP address formats
- Precise geolocation - Country, region, city, and coordinate data
- Network information - ISP, organization, and network details
- EU compliance detection - Automatic EU region identification
- Private IP handling - Proper handling of internal network addresses
- High accuracy - Multiple data sources for reliable results
Developer Experience First
Our API is designed with simplicity in mind - all endpoints are single-request only. No need to worry about batching, managing batch sizes, or handling complex partial failure scenarios.We handle batching and optimization in the background for you. Send one IP at a time, and we’ll automatically optimize performance behind the scenes. This gives you the best of both worlds: simple integration and high-performance processing.
- Simple integration - One request, one response - no batch complexity
- No batch management - We handle optimization automatically
- Cleaner error handling - Each request succeeds or fails independently
- Easier testing - Test with single IPs, not complex batch payloads
- Better debugging - Clear request-response mapping for troubleshooting
Use Cases
Security & Fraud Prevention
- Threat detection - Identify suspicious IP addresses and locations
- Fraud prevention - Flag transactions from high-risk regions
- Access control - Implement geo-based access restrictions
- Incident response - Track the geographic origin of security events
Analytics & Business Intelligence
- User analytics - Understand where your users are located
- Market research - Analyze traffic patterns by geography
- Content localization - Serve region-appropriate content
- Performance optimization - Route traffic to nearest servers
Compliance & Legal
- GDPR compliance - Identify EU users for privacy regulations
- Content restrictions - Comply with regional content laws
- Tax calculations - Determine tax obligations by location
- Regulatory reporting - Generate location-based compliance reports
Log Processing & Monitoring
- Server log analysis - Enrich web server logs with location data
- CDN optimization - Analyze traffic patterns for edge deployment
- Network monitoring - Track the geographic distribution of network events
- Real-time dashboards - Display live traffic by location
Pricing
Our IP lookup API uses a simple, transparent credit-based pricing model:IP Lookup
- Custom pricing per 100 IP lookups
- Sold in blocks of 100 validations for cost efficiency
- Both IPv4 and IPv6 addresses
Free Scenarios
- Invalid IP addresses - No charge for malformed IP addresses (returns validation error)
- Rate-limited requests - Failed requests due to rate limits are not charged
You’re only charged for successful IP lookups. Invalid IP formats and rate-limited requests don’t consume credits. IP lookups are sold in blocks of 100 for maximum cost efficiency.
Pricing Examples
| Scenario | IP Valid | Credits Used |
|---|---|---|
| Valid public IP (IPv4) | ✅ | Custom pricing |
| Valid public IP (IPv6) | ✅ | Custom pricing |
| Private IP address | ✅ | Custom pricing |
| Invalid IP format | ❌ | 0 credits |
| Rate limited request | N/A | 0 credits |
Getting Started
- Get your API key from the MDB Dashboard
- Review the documentation - API Reference
- Check rate limits - Rate Limits (starts at 100 calls/sec)
- Test your integration - Use our interactive playground
- Monitor usage - Track credits and performance in your dashboard
API Endpoint
x-api-key headerRate Limit: 100 calls per second (upgradeable)
Response Format: JSON with detailed geolocation results
Quick Example
High-Volume Capabilities
With our generous 100 requests per second starting limit, you can process substantial IP lookup volumes:- Per minute: Up to 6,000 IP lookups
- Per hour: Up to 360,000 IP lookups
- Per day: Up to 8.64 million IP lookups
Next Steps
- API Reference - Complete endpoint documentation with playground
- Rate Limits - Usage limits and best practices
- Authorization - API key setup and authentication
- Error Codes - Troubleshooting and error handling