Go to file
Frank Denis da3ceb7e92 Update .gitignore 2019-12-04 16:42:00 +01:00
ci _ -> - 2017-09-12 17:56:14 +02:00
docker nits 2018-07-18 19:14:05 +02:00
src Return Expires: headers 2019-05-26 17:32:30 +02:00
.gitignore Update .gitignore 2019-12-04 16:42:00 +01:00
.travis.yml Add fakeroot to travis 2019-02-18 15:51:14 +01:00
Cargo.toml Update horrowshow 2019-12-03 17:49:10 +01:00
LICENSE Bump 2019-02-18 14:42:37 +01:00
README.md Update README.md 2019-06-19 13:49:35 +02:00

README.md

Build Status

iptoasn-webservice

Webservice to map IP addresses to AS information.

This is the source code of the public API from iptoasn.com.

Requires rust.

Usage:

$ curl -H'Accept: application/json' https://api.iptoasn.com/v1/as/ip/<ip address>
{
  "announced": true,
  "as_country_code": "US",
  "as_description": "LEVEL3 - Level 3 Communications, Inc.",
  "as_number": 3356,
  "first_ip": "4.0.0.0",
  "ip": "4.3.2.1",
  "last_ip": "4.23.87.255"
}