Copied to clipboard
Your IP Address
Loading...
IPv4
Location
Country
ISP
ASN
Timezone
Coordinates

Precise IP geolocation for modern applications

Get accurate location data from any IP address. City-level precision, real-time updates, and all lookups processed in-house for maximum privacy.

<40ms
Avg response time
100%
In-house processing
195
Countries covered
0
External API calls
REST API

Simple, private API

All lookups are processed locally using our own geolocation database. No data is sent to third parties.

GET /api.php/ip Get the requesting client's IP info
cURL
curl https://yourdomain.com/api.php/ip
JavaScript
const res = await fetch('/api.php/ip');
const data = await res.json();
console.log(data);
PHP
<?php
$response = file_get_contents('https://yourdomain.com/api.php/ip');
$data = json_decode($response, true);
print_r($data);
Response
{
  "success": true,
  "ip": "203.45.167.89",
  "type": "IPv4",
  "country": "United States",
  "country_code": "US",
  "region": "California",
  "city": "San Francisco",
  "latitude": 37.7749,
  "longitude": -122.4194,
  "timezone": "America/Los_Angeles",
  "isp": "Cloudflare, Inc.",
  "asn": "AS13335"
}
GET /api.php/ip/{address} Lookup a specific IP address
address required
string
IPv4 or IPv6 address to lookup
fields optional
string
Comma-separated list of fields to return (e.g., ip,country,city)
Example
curl https://yourdomain.com/api.php/ip/8.8.8.8?fields=ip,country,city,isp
POST /api.php/ip/batch Lookup multiple IPs in one request (max 100)
Request Body
{
  "ips": ["8.8.8.8", "1.1.1.1", "9.9.9.9"],
  "fields": ["ip", "country", "city"]  // optional
}
Response
{
  "success": true,
  "count": 3,
  "results": [
    { "ip": "8.8.8.8", "country": "United States", "city": "Mountain View" },
    { "ip": "1.1.1.1", "country": "Australia", "city": "Sydney" },
    { "ip": "9.9.9.9", "country": "Switzerland", "city": "Zurich" }
  ]
}
Try it live

API Playground

Test the API directly in your browser. All requests go through your local PHP backend.

Live Testing
Ready
// Click "Run Test" or a preset to make a request