Как просто получить IP -адрес json

$ curl 'https://api.ipify.org?format=json'
{"ip":"92.62.234.54"}
Splendid Swiftlet