Whois API

IP WHOIS查询

get

根据IP地址查询WHOIS信息

Path parameters
ipstringRequired

要查询的IP地址

Example: 193.0.0.1
Responses
200

成功响应

application/json
get
GET /ip/{ip} HTTP/1.1
Host: whois.akaere.online
Accept: */*
{
  "success": true,
  "data": {
    "handle": "193.0.0.0 - 193.0.7.255",
    "startAddress": "193.0.0.0",
    "endAddress": "193.0.7.255",
    "ipVersion": "v4",
    "name": "RIPE-NCC",
    "type": "ALLOCATED",
    "country": "NL",
    "parentHandle": "193.0.0.0/8",
    "entities": [
      {
        "handle": "ORG-RIPE1-RIPE",
        "vcardArray": [
          "vcard",
          [
            [
              "version",
              {},
              "text",
              "4.0"
            ],
            [
              "fn",
              {},
              "text",
              "RIPE Network Coordination Centre"
            ]
          ]
        ],
        "roles": [
          "registrant"
        ]
      }
    ],
    "events": [
      {
        "eventAction": "last changed",
        "eventDate": "2019-11-01T13:10:51Z"
      },
      {
        "eventAction": "registration",
        "eventDate": "1993-05-01T00:00:00Z"
      }
    ],
    "links": [
      {
        "value": "https://rdap.db.ripe.net/ip/193.0.0.0/21",
        "rel": "self",
        "href": "https://rdap.db.ripe.net/ip/193.0.0.0/21",
        "type": "application/rdap+json"
      }
    ]
  }
}

CORS预检请求

options

处理CORS预检请求

Responses
200

CORS预检成功响应

options
OPTIONS /ip/{ip} HTTP/1.1
Host: whois.akaere.online
Accept: */*
200

CORS预检成功响应

No content

ASN查询

get

根据ASN编号查询信息

Path parameters
asnstringRequired

要查询的ASN编号,可以包含或不包含'AS'前缀

Example: AS3333
Responses
200

成功响应

application/json
get
GET /asn/{asn} HTTP/1.1
Host: whois.akaere.online
Accept: */*
{
  "success": true,
  "data": {
    "handle": "3333",
    "startAutnum": 3333,
    "endAutnum": 3333,
    "name": "RIPE-NCC-AS",
    "type": "ALLOCATED",
    "status": [
      "active"
    ],
    "country": "NL",
    "entities": [
      {
        "handle": "ORG-RIPE1-RIPE",
        "vcardArray": [
          "vcard",
          [
            [
              "version",
              {},
              "text",
              "4.0"
            ],
            [
              "fn",
              {},
              "text",
              "RIPE Network Coordination Centre"
            ]
          ]
        ],
        "roles": [
          "registrant"
        ]
      }
    ],
    "events": [
      {
        "eventAction": "last changed",
        "eventDate": "2019-11-01T13:10:51Z"
      },
      {
        "eventAction": "registration",
        "eventDate": "1993-05-01T00:00:00Z"
      }
    ],
    "links": [
      {
        "value": "https://rdap.db.ripe.net/autnum/3333",
        "rel": "self",
        "href": "https://rdap.db.ripe.net/autnum/3333",
        "type": "application/rdap+json"
      }
    ]
  }
}

CORS预检请求

options

处理CORS预检请求

Responses
200

CORS预检成功响应

options
OPTIONS /asn/{asn} HTTP/1.1
Host: whois.akaere.online
Accept: */*
200

CORS预检成功响应

No content

域名WHOIS查询

get

根据域名查询WHOIS信息

Path parameters
domainstringRequired

要查询的域名

Example: example.com
Responses
200

成功响应

application/json
get
GET /domain/{domain} HTTP/1.1
Host: whois.akaere.online
Accept: */*
{
  "success": true,
  "data": {
    "domainName": "example.com",
    "status": [
      "clientTransferProhibited",
      "serverDeleteProhibited",
      "serverTransferProhibited",
      "serverUpdateProhibited"
    ],
    "registrar": "Internet Corporation for Assigned Names and Numbers",
    "createdDate": "1995-08-14T04:00:00Z",
    "updatedDate": "2021-08-14T07:01:44Z",
    "expiryDate": "2022-08-13T04:00:00Z",
    "nameServers": [
      "a.iana-servers.net",
      "b.iana-servers.net"
    ],
    "raw": {
      "ldhName": "example.com",
      "unicodeName": "example.com",
      "status": [
        "clientTransferProhibited",
        "serverDeleteProhibited",
        "serverTransferProhibited",
        "serverUpdateProhibited"
      ],
      "entities": [
        {
          "handle": "IANA",
          "roles": [
            "registrar"
          ],
          "vcardArray": [
            "vcard",
            [
              [
                "version",
                {},
                "text",
                "4.0"
              ],
              [
                "fn",
                {},
                "text",
                "Internet Corporation for Assigned Names and Numbers"
              ]
            ]
          ]
        }
      ],
      "events": [
        {
          "eventAction": "registration",
          "eventDate": "1995-08-14T04:00:00Z"
        },
        {
          "eventAction": "last changed",
          "eventDate": "2021-08-14T07:01:44Z"
        },
        {
          "eventAction": "expiration",
          "eventDate": "2022-08-13T04:00:00Z"
        }
      ],
      "nameservers": [
        {
          "ldhName": "a.iana-servers.net"
        },
        {
          "ldhName": "b.iana-servers.net"
        }
      ]
    }
  }
}

CORS预检请求

options

处理CORS预检请求

Responses
200

CORS预检成功响应

options
OPTIONS /domain/{domain} HTTP/1.1
Host: whois.akaere.online
Accept: */*
200

CORS预检成功响应

No content

Last updated

Was this helpful?