Documentation
How the service works
JSON responses
Request a JSON payload by sending an Accept: application/json header and the response will contain your current public IP address plus approximate country, locality, postal code, coordinates, ASN, provider name, and a warning message that the data might not be accurate.
curl -H 'Accept: application/json' https://iplookup.help/
curl -H 'Accept: application/json' https://iplookup.help/i/8.8.8.8