45ac24c589
* 'master' of github.com:jedisct1/iptoasn-webservice: Add entrypoint shell script Add docker support |
||
---|---|---|
ci | ||
docker | ||
src | ||
.gitignore | ||
.travis.yml | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
README.md
iptoasn-webservice
Webservice to map IP addresses to AS information (and DNS history, soon).
This is the source code of the public API from iptoasn.com.
Requires rust >= 1.17.
Usage:
$ curl 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",
"last_ip": "4.23.87.255"
}