iptoasn-webservice/README.md

24 lines
506 B
Markdown
Raw Normal View History

2016-10-26 13:09:33 +02:00
# iptoasn-webservice
2016-10-27 17:32:38 +02:00
2016-10-27 17:39:46 +02:00
Webservice to map IP addresses to AS information (and DNS history, soon).
2016-10-27 17:32:38 +02:00
This is the source code of the public API from [iptoasn.com](https://iptoasn.com).
Requires [rust >= 1.17](https://www.rust-lang.org/).
2016-10-27 17:32:38 +02:00
# Usage:
```sh
$ curl https://api.iptoasn.com/v1/as/ip/<ip address>
```
```json
{
"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"
}
```