warp CS API documentation

/v3/iplocation/country

Returns the IP address location of a given IP address with country precision.

URL Parameters

Name Type Description Required Default value
ipaddr string The IPv4 or IPv6 address to look up. May be the special string "own" to query the IP address of the client. yes -

Response Body

Name Type Description
ipaddr string The queried IP address.
start number / string The numeric value of the start IP address in the IP address range of the queried IP address. For IPv6 addresses, this is a string, since the number is too large to be represented as an integer in many languages.
end number / string The numeric value of the end IP address in the IP address range of the queried IP address (inclusive). For IPv6 addresses, this is a string, since the number is too large to be represented as an integer in many languages.
cc string The ISO 3166-1 alpha-2 country code of the country the IP address is located in.
source string A navigation link of the data source.

Errors

HTTP status Description
404 Missing or invalid parameter, or given IP address was not found in database.