API V1
Full IP Command
Return full IP location data, including city and region, through the legacy command interface.
GET
/?cmd=ip&ip=8.8.8.8
Parameters
| Name | Required | Description |
|---|---|---|
| cmd | Yes | Use ip. |
| ip | Yes | IPv4 or IPv6 address to look up. |
| format | No | Optional response format: json plain xml jsonp php csv serialized. |
Example Request
https://api.iplocation.net/?cmd=ip&ip=8.8.8.8
Example Response
{
"ip": "8.8.8.8",
"ip_number": "134744072",
"ip_version": 4,
"country_name": "United States of America",
"country_code2": "US",
"isp": "Google LLC",
"city_name": "Mountain View",
"region_name": "California",
"response_code": "200",
"response_message": "OK"
}