Home Net Guide

Free API for developers

The data on this page is available as plain JSON. No key needed, CORS enabled, so it works from scripts, servers and other websites.

EndpointReturns
GET /api/ipCaller's IP, city, region, country, time zone, ASN and ISP
GET /api/ip?format=textJust the IP address as plain text, ideal for shell scripts
GET /api/headersThe HTTP request headers your client sent
GET /api/dns?name=example.com&type=MXDNS records of any type
GET /api/propagation?name=example.com&type=AThe same DNS question answered by eight public DNS services, for comparison
GET /api/asn?asn=13335Network name and announced IP ranges for an AS number
GET /api/subnet?cidr=10.0.0.0/22Network, broadcast, mask and host range

Try it


    

Please cache results and keep automated use reasonable.

Using the API

Every endpoint answers a plain GET request with JSON and allows requests from any website (CORS is open), so it works from a browser, a server or a shell script. There is no key and no sign-up.

Please cache what you fetch and keep automated use reasonable: the service runs on a shared free allowance, and heavy use by one caller takes it away from everyone else. If you need high volume, get in touch first.

Fields returned by /api/ip

  • ip, version: the caller's address and whether it is IPv4 or IPv6.
  • city, region, countryCode, continent, postal, lat, lon, timezone: the estimated location.
  • asn, isp, org: the network the address belongs to.
  • protocol, tls: how the request reached us.