Leak Audit

查看网关成功响应中的供应商关键词审计事件(Redis 列表聚合)。

用途:排查上游响应里是否泄露了供应商(如 RapidAPI 供应商名)关键词。

参数: hours: 时间窗口,1~168 小时(上限一周)。 limit: 最多扫描 Redis 列表的前 N 条(列表由写入方 LPUSH 最新在前)。

返回:原始事件列表 items + 按 path 聚合的 by_endpoint(按命中数倒序)。

数据不可信是这里最大的特点:Redis 里的 JSON 可能被截断、字段类型可能漂移, 因此每一条都做了 try/except 与类型收敛,脏数据一律跳过或降级为 0, 绝不让后台页面 500。

副作用:只读 Redis。注意这里不写回、不清理列表(列表长度由写入方控制)。

get/admin/leak-audit

Request

  • Base URL: https://api.twtapi.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.twtapi.com/admin/leak-audit
  • Auth: none declared

Query parameters

hoursinteger
limitinteger

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.