Jump to content


Photo

API

ipleak.net

  • Please log in to reply
No replies to this topic

#1 Staff

Staff

    Advanced Member

  • Staff
  • PipPipPip
  • 7692 posts

Posted 14 July 2015 - 01:16 PM

You can obtain data from ipleak.net trough an API, by querying the directory json or xml or php.

We don't require any authorization or API key for this service.
It's provided as a best-effort service.
We limit requests in time-range for specific IP addresses if anyone runs too many requests to preserve availability of this service.

For example, to fetch data about your IP in json format:
https://ipleak.net/json
To force use of IPv4:
https://ipv4.ipleak.net/json
To force use of IPv6:
https://ipv6.ipleak.net/json
To fetch data about your DNS in json format (replace <random_long_hash> with a random hash in every request; must be 40 chars length):
https://<random_long_hash>.ipleak.net/json
To fetch data about the IP address 8.8.8.8 in xml format:
https://ipleak.net/xml/8.8.8.8

Fields















query_textYour query text
query_typeCan be myip, mydns, ip or domain
query_dateUnix timestamp of server result.
levelLevel of detail. Can be min or max. Only some IP addresses are fetched for all available data (max levels)
cacheUnix timestamp of data accuracy, if the level is max. Data at min level are always in real time. Fields like Tor and reverse are always in real time.
ipThe IP address.
country_codeCountry ISO code
country_nameCountry Name
torIf the IP address matches a Tor Exit Node.
reverseReverse lookup.


The above fields are always provided. Other fields may be available if we known additional data.
If you query a domain name, every IP address resolved for that is available under an ips data node.


Reserved address


If the address is an IANA special address, data will contain special fields. See as example 127.0.0.1 ( xml, json)
Look IANA IPv4 / ipv6 Special-Purpose Address Registry for more information about the fields.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Servers online. Online Sessions: 15955 - BW: 68136 Mbit/sYour IP: 54.84.236.168Guest Access.