API Key 列表
每个 API Key 可在右侧单独启用或禁用。接口文档已独立到首页右侧的「文档」入口。
| Key 名称 | API Key | 创建时间 | 操作 |
|---|---|---|---|
| 加载中... | |||
消费记录
调用次数
—
当前时间窗口内累计
总消耗积分
—
当前时间窗口内累计
| 时间 | API Key 名称 | Skill ID | Service | 扣除积分 | 状态 |
|---|---|---|---|---|---|
| 加载中... |
接口文档
鉴权方式
事件同步接口
# 推送事件数据 curl -X POST https://admin.deepseekdata.com/admin-api/aireport2/event-sync/push \ -H "X-API-Key: sk-your-api-key" \ -H "tenant-id: 1" \ -H "Content-Type: application/json" \ -d '{ "eventId": "evt_20240101_001", "eventTitle": "美联储宣布降息25个基点", "eventContent": "美联储在最新会议上宣布...", "eventTime": "2024-01-01T10:00:00", "source": "Reuters" }'
WebSocket 实时推送
import asyncio import ssl import websockets async def listen(name, uri): async with websockets.connect( uri, additional_headers={"tenant-id": "1"}, ssl=ssl.create_default_context() ) as ws: while True: msg = await ws.recv() print(name, msg) async def main(): await asyncio.gather( listen("full", "wss://admin.deepseekdata.com/admin-api/infra/ws/event-sync/full?apiKey=sk-your-api-key"), listen("lite", "wss://admin.deepseekdata.com/admin-api/infra/ws/event-sync/lite?apiKey=sk-your-api-key") ) asyncio.run(main())