IP域名查询API
适用于:企业
IP Whois API 允许您通过 IP、ID 或域以编程方式访问 Whois 数据。该 API 位于/whois
。
查询page
参数可用于浏览分页记录。page
从 0 开始,当参数包含在请求中时,该参数是响应的一部分。API 每页最多返回 50 条记录。
按网络 ID 搜索网络记录:
curl ipinfo.io/whois/net/NEW-ENGLAND-5?token=$TOKEN
{ "net": "NEW-ENGLAND-5", "total": 100, "page": 0, "records": [ { "range": "24.62.0.0/15", "id": "", "name": "Comcast Cable Communications Holdings, Inc", "country": "US", "org": "POC object or null", "admin": "POC object or null", "abuse": "POC object or null", "tech": "POC object or null", "maintainer": "POC object or null", "updated": "2010-10-18", "status": "REASSIGNMENT", "source": "arin", "raw": "<raw data>" }, ... ] }
按 IP 或 IP 范围搜索网络记录:
curl ipinfo.io/whois/net/24.62.0.0/15?token=$TOKEN
{ "net": "24.62.0.0/15", "total": 100, "page": 0, "records": [ { "range": "24.62.0.0/15", "id": "NEW-ENGLAND-5", "name": "Comcast Cable Communications Holdings, Inc", "country": "US", "org": "C02610695", "updated": "2010-10-18", "status": "REASSIGNMENT", "source": "arin", "raw": "<raw data>" }, ... ] }
按域搜索网络记录:
curl ipinfo.io/whois/net/comcast.net?token=$TOKEN
{ "net": "comcast.net", "total": 80, "page": 0, "records": [ { "range": "24.147.0.0/17", "id": "NEW-ENGLAND-10", "name": "Comcast Cable Communications Holdings, Inc", "country": "US", "org": "C02610737", "status": "REASSIGNMENT", "tech": null, "maintainer": null, "admin": null, "abuse": null, "updated": "2010-10-18", "source": "arin", "raw": "<raw data>", "domain": "comcast.net" }, ... ] }
按 ASN 搜索 Net 记录:
curl ipinfo.io/whois/net/AS9541?token=$TOKEN
{ "net": "AS9541", "total": 47, "page": 0, "records": [ { "range": "58.65.203.0/24", "id": "CYBERNET", "name": "Broadband Services", "country": "PK", "org": null, "status": "ALLOCATED NON-PORTABLE", "admin": "POC object or null", "abuse": "POC object or null", "tech": "POC object or null", "maintainer": "POC object or null", "updated": "2021-01-27", "source": "apnic", "raw": "<raw data>" }, ... ] }
按组织 ID 搜索组织记录:
curl ipinfo.io/whois/org/PINEAP?token=$TOKEN
{ "org": "PINEAP", "total": 100, "page": 0, "records": [ { "id": "PINEAP", "name": "Pineapple Houser", "address": null, "country": "US", "admin": "POC object or null", "abuse": "POC object or null", "tech": "POC object or null", "maintainer": "POC object or null", "created": "2000-03-25", "updated": "2011-09-24", "source": "arin", "raw": "<raw data>" }, ... ] }
按 POC ID 搜索 POC 记录:
curl ipinfo.io/whois/poc/CP312-ARIN?token=$TOKEN
{ "poc": "CP312-ARIN", "total": 1, "page": 0, "records": [ { "id": "CP312-ARIN", "name": "Cynthia Pararo", "email": "[email protected]", "address": "US, GA, Atlanta, Pineapple Houser\\n2131 Plaster Bridge Rd Ne, 303244036", "country": "US", "phone": "", "fax": "", "created": "2000-03-25", "updated": "2000-03-25", "source": "arin", "raw": "<raw data>" }, ... ] }
按来源过滤记录:
所有 API 均接受source
查询参数,以按提供的 Whois 源过滤记录。
curl ipinfo.io/whois/poc/CP312-ARIN?token=$TOKEN&source=arin
{ "poc": "CP312-ARIN", "total": 1, "page": 0, "records": [ { "id": "CP312-ARIN", "name": "Cynthia Pararo", "email": "[email protected]", "address": "US, GA, Atlanta, Pineapple Houser\\n2131 Plaster Bridge Rd Ne, 303244036", "country": "US", "phone": "", "fax": "", "created": "2000-03-25", "updated": "2000-03-25", "source": "arin", "raw": "<raw data>" }, ... ], "source": "arin" }