Skip to content

A public IP API service.

License

MIT, Unlicense licenses found

Licenses found

MIT
LICENSE
Unlicense
UNLICENSE
Notifications You must be signed in to change notification settings

nrh/ipify-appengine

 
 

Repository files navigation

ipify-appengine

Travis Travis

A fork of @rdegges' ipify with IPv6 support, hosted on Google App Engine

Accessible via http://api.ipify.io and https://api.ipify.io

Feel free to use and abuse.

Examples

$ curl 'http://api.ipify.io'
2001:0db8:85a3:0000:0000:8a2e:0370:7334

$ curl 'https://api.ipify.io'
2001:0db8:85a3:0000:0000:8a2e:0370:7334

$ curl 'https://v4.ipify.io'
172.16.0.99

$ curl 'https://v4.ipify.io/?format=json'
{"ip":"172.16.0.99"}

$ curl 'https://v4.ipify.io/?format=jsonp'
callback({"ip":"172.16.0.99"});

$ curl 'https://v4.ipify.io/?format=jsonp&callback=asdf'
asdf({"ip":"172.16.0.99"});

$ curl -v -H'Origin: www.example.com' 'https://v4.ipify.io/?format=jsonp&callback=asdf' 2>&1 |egrep -i 'origin'
> Origin: www.example.com
< vary: Origin
< access-control-allow-origin: www.example.com

About

A public IP API service.

Resources

License

MIT, Unlicense licenses found

Licenses found

MIT
LICENSE
Unlicense
UNLICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 99.7%
  • Go 0.3%