API 演练场

探索端点、查看请求 schema、查看示例响应,并复制一段可直接起步的 SDK 调用。

GET /api/v9/data/status 打开 →

数据源状态与新鲜度

{ "sources": [ { "name": "nvd", "status": "synced" } ], "freshness": 84 }
GET /api/v9/intelligence/live 打开 →

实时情报包与质量评分

{ "packages": [ { "name": "Threat Intel", "quality": { "overall": 88, "grade": "A" } } ] }
GET /api/v9/collections 打开 →

个人情报合集

{ "items": [ { "kind": "cve", "itemId": "CVE-2021-44228" } ] }
POST /api/v9/investigations/replay 打开 →

新建 AI 调查(草稿,需审核)

{ "replay": { "timeline": ["user_question",...] }, "requiresReview": true }
GET /api/v9/platform/health 打开 →

数据 / AI / API / 基础设施的平台健康度

{ "overall": 88, "data": { "score": 84 } }
GET /api/v9/sdk/status 打开 →

SDK 可用性(JS + Python)

{ "sdk": [ { "lang": "js" }, { "lang": "python" } ] }

SDK:快速开始

JavaScript(SDK 基础)以及对应的 Python 写法。

import { OpenTrojanClient } from '@opentrojan/sdk-js';
const client = new OpenTrojanClient({ apiKey: process.env.OT_KEY() });
const health = await client.get('/api/v9/platform/health'); // 平台健康度
const replay = await client.post('/api/v9/investigations/replay', { question, intent });

MCP:试用 query_intelligence / get_platform_health / replay_investigation。