建站历史详情查询
请求方式:
GET
返回格式:
JSON
请求示例:
localhost:88/api/v1/{apikey}/wayback/detail?domain=test123.com
接口备注:
查询单个域名的建站历史详情,包含年月快照列表、标题和HTML缓存。已补拉完成的域名不会重复拉取。
请求参数说明
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
domain |
String | 是 | 域名 |
返回参数说明
| 名称 | 类型 | 说明 |
|---|---|---|
domain |
String | 域名 |
detail_status |
String | 详情状态:none(初始)/partial(标题拉取中)/complete(已完成) |
preload_done |
Boolean | 是否已完成补拉(已补拉过的域名不会再重复操作) |
cached |
Boolean | 是否来自缓存 |
snapshots |
Array | 年月快照列表 |
snapshots[].year_month |
String | 年月(如 202103) |
snapshots[].snapshot_ts |
String | 快照时间戳 |
snapshots[].title |
String | 首页标题(空表示尚未拉取) |
snapshots[].snapshot_url |
String | 快照跳转链接 |
snapshots[].has_html |
Boolean | 是否有缓存的HTML |
latest_title |
String | 最新首页标题 |
latest_lang |
String | 最新首页语言编码 |
title_count |
Int | 已拉取标题的快照数 |
html_count |
Int | 已缓存的HTML快照数 |
has_missing |
Boolean | 是否还有缺标题/HTML的快照 |
JSON 返回示例
JSON
{
"code": 200,
"message": "操作成功",
"data": {
"domain": "test123.com",
"detail_status": "complete",
"preload_done": true,
"cached": true,
"snapshots": [
{
"year_month": "201308",
"snapshot_ts": "201308",
"title": "测试标题",
"snapshot_url": "https://web.archive.org/web/201308/test123.com",
"has_html": true
}
],
"latest_title": "测试标题",
"title_count": 1,
"html_count": 1,
"has_missing": false
}
}