ip.wtf

Privacy




About <p>This site shows you information about your IP address and web browser.</p> <p>It's not going to try to sell you a VPN. Don't listen to the misinformation about VPNs, instead watch this excellent Tom Scott video.</p> API <p>Is there an API? Yes.</p> <p>At its simplest you can do:</p> <code>$ curl ip.wtf 5.75.154.116 </code> <p>To get the IP address you're connecting from. the API detects access from curl and automatically defaults to just the text version.</p> <p>In code add a header <code>Accept: text/plain</code> to get the plain text version. You can also use <code>application/json</code> to get a bit more information.</p> <p>JavaScript example:</p> <code>let res = await fetch("https://ip.wtf", { headers: { Accept: "application/json" } }). let data = await res.json(). console.log(data). </code> <p>Which gives you:</p> <code>{ "ip": "5.75.154.116", "location": { "continent": "EU", "continent_name": "Europe", "country": "DE", "country_name": "Germany", "region": "", "region_name": "", "city": "", "latitude": 51.2993, "longitude": 9.491, "accuracy_radius": 0, "timezone": { "name": "Europe/Berlin", "offset": 0 } }, "as": { "number": 24940, "name": "Hetzner Online GmbH" } }</code> <p>If you use the hostname <code>ip.wtf</code> the client (browser or other HTTP client) will pick the IP protocol to use. You can also use the hostnames <code>v4.ip.wtf</code> or <code>v6.ip.wtf</code> to force a particular protocol, or otherwise ask the client to pick the relevant protocol.</p> <p>For example with curl you can do:</p> <code>$ curl -4 ip.wtf $ curl -6 ip.wtf </code> <p>Access works over http or https. API access from a non-browser is never redirected to HTTPS (browsers may choose to use HTTPS though). If you want to force HTTP you can use the hostnames <code>nossl.ip.wtf</code> or <code>neverssl.ip.wtf</code>. (You can also use those hostnames manually in a similar way to neverssl.com.)</p> <p>Reasonable use is fine (i.e. 1 req/hour per source IP and not in something that is widely deployed). If you need more contact us first, we reserve the right to block unreasonable access otherwise.</p> Fun <p>For a little easter egg try: <code>curl ip.wtf/moo</code> </p> <p>There's a small collection of fun things, which is slowly growing into a set of demos. see ip.wtf/fun.</p> Privacy <p>This site collects data about your device and connection to the site in order to implement its primary purpose of showing you this information.</p> <p>The information displayed includes your IP address and hostname.</p> <p>Depending on your configuration some of the tests performed by this site may reveal a different IP address. this data is only aggregated client side and never stored on a server.</p> <p>In order to look up your hostname a reverse DNS lookup is performed, this uses a third party DNS provider (Google Public DNS, see privacy).</p> <p>Any information collected that identifies your IP address is not stored for longer than one day, unless necessary to prevent abuse of the site, or if you otherwise share the data with us (e.g. send us an email, Twitter, etc).</p> <p>This site does not use cookies, or store data on your device.</p> <p>This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.</p> Sponsor <p>If you like this, you can say thank you: ko-fi.com/webgl.</p> Contact <p>You can find us on Twitter or you can email us here (click twice due to abuse prevention measures).</p> <p>Contact us</p> .





Comments:
No comments found