Update doc

This commit is contained in:
Frank Denis 2016-10-27 17:32:38 +02:00
parent 9fb4845167
commit f19bf578a0
1 changed files with 22 additions and 1 deletions

View File

@ -1,2 +1,23 @@
# iptoasn-webservice
Web service to map IP addresses to AS information, using iptoasn.com
Webservice to map IP addresses to AS information.
This is the source code of the public API from [iptoasn.com](https://iptoasn.com).
Requires [rust-nightly](https://www.rust-lang.org/).
# 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"
}
```