GeoIP API

Lightning-fast IP geolocation with zero setup required

No API Key 25 req/sec Free Forever
API Status
Loading...
Checking status...

Single IP Lookup

Bulk IP Lookup

Enter up to 10 IP addresses (one per line)

API Documentation

Single Lookup
GET /api/geoip/lookup?ip={ip}

25 req/sec

Quick country lookup for single IP addresses

Bulk Lookup
POST /api/geoip/bulk

10 req/sec

Process up to 10 IPs in one request

API Status
GET /api/geoip/status

No limit

Check API health and rate limits

No API Key

Start instantly without registration

High Speed

Up to 25 requests per second

Bulk Processing

Process multiple IPs efficiently

Accurate Data

Reliable country detection

Rate Limiting Policy
  • Single lookup: 25 requests/second
  • Bulk lookup: 10 requests/second (max 10 IPs/request)
  • Limits applied per client IP address
  • HTTP 429 returned when limits exceeded

Code Examples

Single IP Lookup
// Single IP Lookup
const response = await fetch('https://tofix.app/api/geoip/lookup?ip=8.8.8.8');
const data = await response.json();
console.log(data);

// Result:
// {
//   "success": true,
//   "data": {
//     "ip": "8.8.8.8",
//     "country_code": "US",
//     "country_name": "United States"
//   }
// }
Bulk IP Lookup
// Bulk IP Lookup
const response = await fetch('https://tofix.app/api/geoip/bulk', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    ips: ['8.8.8.8', '1.1.1.1', '208.67.222.222']
  })
});
const data = await response.json();
console.log(data);
Single IP Lookup
import requests

# Single IP Lookup
response = requests.get('https://tofix.app/api/geoip/lookup?ip=8.8.8.8')
data = response.json()
print(data)

# Result:
# {
#   'success': True,
#   'data': {
#     'ip': '8.8.8.8',
#     'country_code': 'US',
#     'country_name': 'United States'
#   }
# }
Bulk IP Lookup
import requests

# Bulk IP Lookup
response = requests.post(
    'https://tofix.app/api/geoip/bulk',
    json={
        'ips': ['8.8.8.8', '1.1.1.1', '208.67.222.222']
    }
)
data = response.json()
print(data)
Single IP Lookup
curl "https://tofix.app/api/geoip/lookup?ip=8.8.8.8"
Bulk IP Lookup
curl -X POST "https://tofix.app/api/geoip/bulk" \
  -H "Content-Type: application/json" \
  -d '{"ips": ["8.8.8.8", "1.1.1.1", "208.67.222.222"]}'