services

devices.freepackets.org

devices.freepackets.org returns a list of the available access points, their location and on-line status as a JSON-string.

You can filter the output by SSID. Example for devices.freepackets.org?ssid=freepackets_org:

[{"ssid":"freepackets_org","lon":"12.416429","lat":"51.324163","online":false}]

It is quite easy to use the JSON-output to set markers on a OpenStreetMap based map using OpenLayers: map.freepackets.org?ssid=freepackets_org

myip.freepackets.org

myip.freepackets.org returns your IP, http method, user agent and https state. Sample output:

{"ip":"85.13.147.90","method":"GET","user_agent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko\/20100101 Firefox\/26.0","is_https":0}

mylocation.freepackets.org

mylocation.freepackets.org returns your IP and various informations about location, network operator and the associated ASN. Sample output as a JSON-string:

{"ipNum":2987971474,"ipStr":"178.24.211.132","ipVer":4,"location":{"ipRange":"178.24.208.128..178.24.217.255","countryCode":"DE","region":"13","city":"Leipzig","postalCode":"","latitude":"51.3","longitude":"12.3333","metroCode":"","areaCode":""},"as":{"ipRange":"178.24.0.0..178.27.255.255","ASN":"31334","company":"Kabel Deutschland Vertrieb und Service GmbH"},"countryWhois":{"ipRange":"178.24.0.0..178.27.255.255","countryCode":"DE","country":"Germany"}}

See https://github.com/speakinghedge/IpGeoLocation if you would like to setup your own location service.

options

You can configure the output of the service by using the following parameters in the request URL:

  • addr := { IP_DOTTED_FORMAT | IP_LONG }
    If no address is given, the address of the calling host will be used.
  • format := { json | yaml | xml }
    the response can be formated in JSON (default), yaml or XML
  • info := { l, c, s, a }
    only query the city (l)ocation, (c)ountry whois or autonomous (s)ystem. (a)ll informations is the default value. It is also possible to combine these flags.

examples

  • mylocation.freepackets.org -> returns all informations formated as JSON
  • mylocation.freepackets.org?format=yaml&info=cs -> returns all informations about country whois and the AS
  • mylocation.freepackets.org?format=yaml&info=l&addr=6.6.6.6 -> returns city location for ip 6.6.6.6