应用程序接口
适用于:基本版、商业版和企业版
ASN API 允许您以编程方式访问有关 ASN 的详细信息,例如分配的前缀、相关域等。ASN API 位于/ASXX/json
。
curl ipinfo.io/AS7922/json?token=$TOKEN
{ "asn": "AS7922", "name": "Comcast Cable Communications, LLC", "country": "US", "allocated": "1997-02-14", "registry": "arin", "domain": "comcast.com", "num_ips": 71224576, "type": "isp", "prefixes": [ { "netblock": "104.69.216.0/22", "id": "AKAMAI", "name": "Akamai Technologies, Inc.", "country": "US" }, { "netblock": "104.69.220.0/23", "id": "AKAMAI", "name": "Akamai Technologies, Inc.", "country": "US" } ], "prefixes6": [ { "netblock": "2601::/20", "id": "COMCAST6NET", "name": "Comcast Cable Communications, LLC", "country": "US" }, { "netblock": "2603:2000::/20", "id": "COMCAST6NET", "name": "Comcast Cable Communications, LLC", "country": "US" }, { "netblock": "2603:3000::/24", "id": "COMCAST6NET", "name": "Comcast Cable Communications, LLC", "country": "US" }, { "netblock": "2a03:2880:d001::/48", "id": "IE-FACEBOOK-201100822", "name": "Facebook Ireland Ltd", "country": "IE" } ] }