iptoasn-webservice/README.md

27 lines
612 B
Markdown
Raw Permalink Normal View History

2021-01-03 09:57:58 +01:00
![Build Status](https://github.com/jedisct1/iptoasn-webservice/workflows/Rust/badge.svg)
2016-10-26 13:09:33 +02:00
# iptoasn-webservice
2016-10-27 17:32:38 +02:00
Webservice to map IP addresses to AS information.
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](https://www.rust-lang.org/).
2016-10-27 17:32:38 +02:00
# Usage:
```sh
2019-06-19 13:49:35 +02:00
$ curl -H'Accept: application/json' https://api.iptoasn.com/v1/as/ip/<ip address>
2016-10-27 17:32:38 +02:00
```
```json
{
"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",
2016-10-27 17:32:38 +02:00
"last_ip": "4.23.87.255"
}
```