You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Frank Denis debdd9b9cc
Merge pull request #37 from xtr3me/master
8 months ago
.github Upgrade to GitHub-native Dependabot 2 years ago
docker Update Alpine to fix Cargo issue caused by textwrap 8 months ago
src Clap update 1 year ago
.gitignore Update .gitignore 4 years ago
Cargo.toml Clap update 1 year ago
LICENSE y++ 2 years ago
README.md Update badge 2 years ago

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