API V2
API v2 Overview
Version 2 is the resource-style API for new integrations.
Base URL
Use https://api.iplocation.net for production requests. API v2 endpoints are grouped under /v2/.
Endpoint style
Use descriptive paths such as /v2/get-ip, /v2/ip-country, /v2/ip-location, /v2/mac-lookup, and /v2/proxy-check instead of cmd query strings. Most v2 endpoints use POST; /v2/get-ip accepts both GET and POST.
Request body
Send endpoint inputs in the POST body as JSON or form fields. API v2 does not read request parameters from the URL query string.
Legacy support
Existing command-based integrations should continue using API v1.
Response formats
JSON is the default. Supported optional body format values are json plain xml jsonp php csv serialized.