API Reference
Everything you need to integrate IP geolocation into your application. Get started in minutes with our simple REST API.
Quick Start
Make your first API call in seconds. Our REST API returns JSON responses and requires only your API key for authentication.
Get Your API Key
Sign up for free to get your API key. Start with a free 30-day trial.
Make Your First Request
Use any HTTP client to call our API. Here's a simple example:
# Get location data for any IP
curl "http://0.0.0.0:8080/YOUR_API_KEY/8.8.8.8"
# Response
{
"success": true,
"connection": {
"ip": "8.8.8.8",
"ip_version": "4"
},
"location": {
"country": {
"name": "United States",
"alpha_2": "US"
},
"city": "Mountain View"
}
}API Endpoints
All endpoints return JSON responses. Authentication is done via API key in the URL.
http://0.0.0.0:8080/YOUR_API_KEY/detectAutomatically detects and returns location data for the requesting IP address.
http://0.0.0.0:8080/YOUR_API_KEY/8.8.8.8Returns location data for a specific IPv4 or IPv6 address.
http://0.0.0.0:8080/YOUR_API_KEY/detect?include=city,country_nameUse the include parameter to request only specific fields and reduce response size.
Available Parameters
Use the include query parameter to select which fields to return. Separate multiple fields with commas.
Location Data
city"Brooklyn"capital"Washington D.C."country_name"United States"country_alpha_2"US"country_alpha_3"USA"country_emoji"πΊπΈ"country_subdivision"New York"country_subdivision_id"NY"country_zip_code"11205"Geographic Data
continent_code"NA"continent_name"North America"location_latitude40.6955location_longitude-73.9667time_zone"America/New_York"Additional Data
ip"161.185.160.93"ip_version4country_eu_memberfalsecountry_dialing_code["1"]currency_code["USD"]Security Data
is_proxyfalseis_torfalseproxy_typenullFull Response Example
Here's a complete API response with all available fields.
{
"success": true,
"connection": {
"ip": "161.185.160.93",
"ip_version": "4"
},
"location": {
"capital": "Washington D.C.",
"city": "New York",
"continent": {
"code": "NA",
"name": "North America"
},
"country": {
"alpha_2": "US",
"alpha_3": "USA",
"dialing_code": ["1"],
"emoji": "πΊπΈ",
"eu_member": false,
"name": "United States",
"subdivision": "New York",
"subdivision_id": "NY",
"zip_code": "10003"
},
"latitude": 40.7359,
"longitude": -73.9904
},
"security": {
"is_proxy": false,
"is_tor": false,
"proxy_type": null
},
"time": {
"zone": "America/New_York"
},
"currency": {
"code": ["USD", "USN", "USS"]
}
}Code Examples
Copy and paste these examples to get started quickly in your preferred language.
# Get location data for any IP
curl "http://0.0.0.0:8080/YOUR_API_KEY/8.8.8.8"