API 文档 / 域名历史检测 / 建站历史详情查询

建站历史详情查询

接口地址:
localhost:88/api/v1/{apikey}/wayback/detail 获取私钥
请求方式:
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
    }
}

接口状态码说明

所有 API 接口统一使用以下错误码格式返回,请根据 code 值判断请求结果。

状态码 类型 说明
200 成功 请求成功,data 字段包含返回数据
401 认证错误 缺少 API Key 或 API Key 无效。请检查 URL 路径中的 {apikey} 是否正确,或联系客服获取有效密钥
403 权限错误 账号已被禁用,无法调用接口。请联系客服解封
422 参数错误 请求参数验证失败。请检查参数名称、格式和必填项是否符合接口文档要求
500 服务端错误 服务器内部异常。若频繁出现请联系客服处理