Dokumentasi API
Dokumentasi API kanggo lookup domain WHOIS lan RDAP kanthi program: takon data registrasi, ngolah input domain, lan ndeleng domain anyar.
Pencarian Domain
URL Request
GET https://whois.litelake.com/api/public/whois?domain={domain}Parameter
| Parameter | Tipe | Dibutuhake | Deskripsi |
|---|---|---|---|
| domain | string | Ya | Jeneng domain kanggo lookup (contone: example.com) |
| force_refresh | boolean | Ora | Mepe refresh data sing di-cache |
Conto Respons
{
"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"
}
}Respons Kesalahan
400 Bad Request
{
"code": 400,
"message": "Missing domain parameter"
}Input sing ora bisa didaftar (subdomain, URL) bakal mbalekake 400 kanthi petunjuk pangowahan suggested_domain:
{
"code": 400,
"message": "invalid registrable domain: www.example.com, did you mean: example.com?",
"data": {
"input": "www.example.com",
"suggested_domain": "example.com"
}
}404 Not Found
{
"code": 404,
"message": "Domain not found"
}429 Too Many Requests
{
"code": 429,
"message": "Rate limit exceeded, please try again later"
}500 Internal Server Error
{
"code": 500,
"message": "Query failed, please try again later"
}Parse Input Domain
Normalisasi input domain ing wujud apa wae (URL, subdomain, IDN, huruf campuran) dadi registrable domain. Input subdomain bakal mbalekake 200 kanthi is_registrable: false; mung alamat IP, public suffix wae, lan input sing ora bisa di-parse sing bakal mbalekake 400.
URL Request
GET https://whois.litelake.com/api/public/domain/parse?input={input}Parameter
| Parameter | Tipe | Dibutuhake | Deskripsi |
|---|---|---|---|
| input | string | Ya | Input domain mentah ing wujud apa wae (URL, subdomain, IDN, huruf campuran). Bakal mbalekake registrable domain sing wis dinormalisasi. |
Conto Respons
{
"code": 200,
"message": "Parse successful",
"data": {
"input": "https://www.example.com/path?q=1",
"domain": "example.com",
"is_registrable": false
}
}Respons Kesalahan
400 Bad Request
{
"code": 400,
"message": "IP query is not supported: 1.2.3.4",
"data": {
"input": "1.2.3.4"
}
}