myip - Dead Simple IP API

myip provides an easy to use API to programmatically get your public IP address.

Your current IP address is

IP protocol version

You can specify the IP protocol version by using a specific domain.

Domain Protocol Description
IPv4 IPv6 Use the default domain if you just want any public IP Use a specific domain if the protocol matters

Response formats

You can select the response format that's easier for you by calling the matching API endpoint.

Endpoint Format Example Response Plaintext XML <?xml version="1.0" encoding="UTF-8" ?>
<ip></ip> JSON {"ip":""} JSONP callback({"ip":""}); JSONP (custom callback) myVeryOwnCallback({"ip":""});


The webserver that provides this site doesn't store request information of any kind. There are no cookies set or required to use this site.