Go to file
Tianyue Ren 730c1d32ef optimize dockerfile to cache build-tools
Signed-off-by: Tianyue Ren <rentianyue-jk@360shuke.com>
2023-07-04 21:07:57 +08:00
.github Upgrade to GitHub-native Dependabot 2021-04-29 20:50:32 +00:00
docker optimize dockerfile to cache build-tools 2023-07-04 21:07:57 +08:00
src refactor dependencies: replace hyper with reqwest and iron with actix-web 2023-07-04 20:56:34 +08:00
.dockerignore add dockerignore file 2023-07-04 20:56:34 +08:00
.gitignore Update .gitignore 2019-12-04 16:42:00 +01:00
Cargo.toml refactor dependencies: replace hyper with reqwest and iron with actix-web 2023-07-04 20:56:34 +08:00
LICENSE y++ 2021-01-03 09:53:47 +01:00
README.md Update badge 2021-01-03 09:57:58 +01:00

README.md

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"
}