开发者参考
域名生命周期 API 文档
域名生命周期 API 文档: 获取域名生命周期信息,包括注册日期、过期日期、域名年龄、距到期时间天数和当前生命周期阶段。从注册表返回 Fastly 风格的状态标志。
域名生命周期
获取域名生命周期信息,包括注册日期、过期日期、域名年龄、距到期时间天数和当前生命周期阶段。从注册表返回 Fastly 风格的状态标志。
GET
/v1/lifecycle
查询参数
| 参数 | 类型 | 说明 |
|---|---|---|
| domain 必需 | string | 要检查生命周期的域名(例如 "example.com") |
响应示例
{
"domain": "bbc.co.uk",
"tld": "co.uk",
"registered": "1997-08-01T00:00:00Z",
"expires": "2026-08-01T00:00:00Z",
"updated": "2024-08-01T00:00:00Z",
"age_days": 10515,
"expires_in_days": 474,
"phase": "active",
"status_flags": [
"clientTransferProhibited",
"serverTransferProhibited"
],
"status": "clientTransferProhibited serverTransferProhibited",
"events": [
{ "action": "registration", "date": "1997-08-01T00:00:00Z" },
{ "action": "expiration", "date": "2026-08-01T00:00:00Z" }
]
}
响应字段
| 字段 | 类型 |
|---|---|
domain |
string |
tld |
string |
registered |
string |
expires |
string |
updated |
string |
age_days |
integer |
expires_in_days |
integer |
phase |
string |
status_flags[] |
string[] |
status |
string |
events[] |
object[] |
events[] |
object |
events[].action |
string |
events[].date |
string |