#ip #asn #bgp

app iptoasn-webservice

API server for iptoasn.com

5 releases

0.2.5 Aug 1, 2020
0.2.4 Aug 1, 2020
0.2.3 Feb 18, 2019
0.2.2 Sep 12, 2017
0.2.1 Apr 27, 2017

#10 in #asn

MIT license

24KB
610 lines

Build Status

iptoasn-webservice

Webservice to map IP addresses to AS information.

This is the source code of the public API from iptoasn.com.

Requires rust.

Usage:

$ curl -H'Accept: application/json' 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",
  "ip": "4.3.2.1",
  "last_ip": "4.23.87.255"
}

Dependencies

~5–17MB
~243K SLoC