取证据文件
GET/v1/answers/{id}/evidence
取原始返回、页面存档和截图的下载链接,15 分钟内有效。
价格
- 价格
- 不收费
这个接口不收费,所以不接受 Idempotency-Key 和 X-Max-Price;带了会返回 invalid_params。
参数
id编号(UUID)必填
回答编号。
请求头
Authorization必填
Bearer 加你的 API Key。
返回
成功时返回 HTTP 200,数据在 data.item,是一个 EvidenceLinks。字段一直都在:[] 是这次没有,null 是平台不提供或看不出来。
| 字段 | 类型 | 说明 |
|---|---|---|
raw_url | string | null | 原始返回的下载链接 |
html_url | string | null | 页面存档的下载链接 |
screenshot_url | string | null | 截图的下载链接 |
share_url | string | null | 平台自己的分享链接 |
sha256 | string | null | 原始返回文件的校验值 |
expires_at | string | null | 这些下载链接的失效时间 |
常见错误
返回错误就没有收费,只有 settlement_unknown:它表示暂时不知道有没有扣费,要用同一个 Idempotency-Key 再查。查看每个错误码。
| 错误 | HTTP | 意思 | 收费吗 |
|---|---|---|---|
not_found | 404 | 对象不存在、私密或已删除 | 没有收费 |
invalid_params | 400 | 参数不合法 | 没有收费 |
unauthorized | 401 | 没有带凭证,或凭证无效、已停用、已过期 | 没有收费 |
rate_limited | 429 | 请求过快,或同时进行的调用过多 | 没有收费 |