Tài liệu API

Tài liệu API cho việc tra cứu WHOIS và RDAP tên miền theo chương trình.

Tra cứu Tên miền

URL Yêu cầu

GET https://whois.litelake.com/api/whois?domain={domain}

Tham số

Tham sốKiểuBắt buộcMô tả
domainstringTên miền cần tra cứu (ví dụ: example.com)
force_refreshbooleanKhôngBuộc làm mới dữ liệu được lưu trong bộ nhớ đệm

Ví dụ phản hồi

{
  "code": 200,
  "message": "Query successful",
  "data": {
    "domain": "example.com",
    "tld": "com",
    "registrar": "Example Registrar, Inc.",
    "registry_domain_id": "123456789_DOMAIN_COM-VRSN",
    "created_date": "1995-08-14T04:00:00Z",
    "updated_date": "2023-08-14T04:00:00Z",
    "expiry_date": "2024-08-13T04:00:00Z",
    "status": ["clientTransferProhibited"],
    "name_servers": ["ns1.example.com", "ns2.example.com"],
    "query_count": 150,
    "last_queried_at": "2024-03-05T12:34:56Z"
  }
}

Phản hồi lỗi

400 Yêu cầu không hợp lệ

{
  "code": 400,
  "message": "Missing domain parameter"
}

404 Không tìm thấy

{
  "code": 404,
  "message": "Domain not found"
}

429 Quá nhiều yêu cầu

{
  "code": 429,
  "message": "Rate limit exceeded, please try again later"
}

500 Lỗi máy chủ nội bộ

{
  "code": 500,
  "message": "Query failed, please try again later"
}