ipv4ip.com

Free Public IP API

Using ipv4ip is easy. You can get your public IP in various formats:
'Plain Text', JSON, XML, or in YAML.

iPhone illustration

Phone

format
url
output
plain text

 

https://ipv4ip.com/?format=plain

 

12.34.56.78

 

json

 

https://ipv4ip.com/?format=json

 

{"ip":"12.34.56.78"}

 

xml

 

https://ipv4ip.com/?format=xml

 

<ip>12.34.56.78</ip>

 

yaml

 

https://ipv4ip.com/?format=yaml

 

ip: 12.34.56.78