Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jedisct1/iptoasn-webservice
Web service to map IP addresses to AS information, using iptoasn.com
https://github.com/jedisct1/iptoasn-webservice
as asn bgp ip ip2asn iptoasn
Last synced: about 2 months ago
JSON representation
Web service to map IP addresses to AS information, using iptoasn.com
- Host: GitHub
- URL: https://github.com/jedisct1/iptoasn-webservice
- Owner: jedisct1
- License: bsd-2-clause
- Created: 2016-10-26T11:09:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-02T04:15:38.000Z (3 months ago)
- Last Synced: 2024-07-09T16:55:19.096Z (2 months ago)
- Topics: as, asn, bgp, ip, ip2asn, iptoasn
- Language: Rust
- Size: 129 KB
- Stars: 267
- Watchers: 10
- Forks: 63
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Build Status](https://github.com/jedisct1/iptoasn-webservice/workflows/Rust/badge.svg)
# iptoasn-webservice
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](https://www.rust-lang.org/).
# Usage:
```sh
$ curl -H'Accept: application/json' https://api.iptoasn.com/v1/as/ip/
```
```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",
"last_ip": "4.23.87.255"
}
```