返回首页DEVELOPERS

开发者 API

把重置数据接进你的工具、Bot 或看板。

基础地址http://localhost:3000CORS

所有接口支持跨域(CORS),无需 API Key。请合理使用。

GET/api/status

最近一次重置、下一次排期、统计和挑战进度。

响应示例
{
  "ok": true,
  "checkedAt": "2026-10-23T10:52:45.625Z",
  "stats": {
    "totalSignals": 66,
    "totalCompleted": 65,
    "bankedCount": 6,
    "resetDays": 65,
    "gaps": {
      "medianDays": 3,
      "meanDays": 6.3,
      "maxDays": 67.7,
      "maxGapFrom": "2025-12-25",
      "maxGapTo": "2026-03-03",
      "sampleDays": 65
    }
  },
  "lastReset": {
    "announcedAt": "2026-10-22T17:00:00.000Z",
    "resetType": "global",
    "text": "Codex usage limits have been reset. Check your limits.",
    "sourceUrl": "https://x.com/thsottiaux/status/2113162413008884099"
  },
  "nextReset": {
    "effectiveAt": "2026-10-23T17:00:00.000Z",
    "windowEndAt": "2026-10-23T17:00:00.000Z",
    "confidence": null,
    "state": "upcoming"
  },
  "challenge": {
    "currentDay": 17,
    "totalDays": 28
  }
}
GET/api/resets?limit=5&kind=completed&type=global

支持 limit、kind、type 查询参数。

limit返回条数,1–200,默认 50
kindcompleted 或 scheduled
typeglobal 或 banked
响应示例
{
  "ok": true,
  "total": 2,
  "events": [
    {
      "postId": "2113492502355562875",
      "kind": "reset_scheduled",
      "resetType": "global",
      "announcedAt": "2026-10-23T04:47:34.000Z",
      "text": "Landing tomorrow before 10am PST together with a small ship.",
      "textZh": "明天太平洋时间上午 10 点前上线,还会带一个小更新。",
      "sourceUrl": "https://x.com/thsottiaux/status/2113492502355562875"
    },
    {
      "postId": "2113162413008884099",
      "kind": "reset_completed",
      "resetType": "global",
      "announcedAt": "2026-10-22T17:00:00.000Z",
      "text": "Codex usage limits have been reset. Check your limits.",
      "textZh": "Codex 使用限额已重置。查看你的限额。",
      "sourceUrl": "https://x.com/thsottiaux/status/2113162413008884099"
    }
  ]
}
GET/api/beg

GET 读取当前计数;POST 支持 {delta} 一次累加多次点击(最多 200)。

响应示例
{
  "ok": true,
  "count": 202819
}
POST/api/beg

GET 读取当前计数;POST 支持 {delta} 一次累加多次点击(最多 200)。

响应示例
{ "ok": true, "count": 202820 }

请求示例

curl
curl http://localhost:3000/api/status
curl "http://localhost:3000/api/resets?limit=5&kind=completed"
curl -X POST http://localhost:3000/api/beg

数据在请求时从本地快照读取;在服务器上运行 npm run refresh 即可更新,无需重新构建。

演示站不保证可用性,请勿高频请求。