API V2
Get IP Endpoint
Return the public IP address used to connect to the API.
GET / POST
/v2/get-ip
API key
Not required.
Parameters
| Name | Required | Description |
|---|---|---|
| format | No | Optional query string or body field. Supported values: json plain xml jsonp php csv serialized. |
Example Request
GET https://api.iplocation.net/v2/get-ip
POST https://api.iplocation.net/v2/get-ip
Content-Type: application/json
{}
Example Response
{
"ip": "203.0.113.10",
"ip_version": 4,
"response_code": 200,
"response_message": "OK"
}