Developers
如何使用 API、身份验证、限制以及 MCP 服务器。规范以 OpenAPI 形式发布。
身份验证
Issue a key in your workspace and send it in the x-api-key header. The key is shown once; we store only its hash.
curl -H "x-api-key: cr_xxxxxxxx_..." https://api.cresearch.jp/v1/protocols?limit=10
端点
| GET | 回报率 |
|---|---|
| /v1/market/overview | 市场概览 |
| /v1/assets | Assets |
| /v1/assets/{id}/metrics?metric=price | 时间序列 |
| /v1/protocols | Protocols |
| /v1/protocols/{id} | Detail |
| /v1/chains | Chains |
| /v1/sectors | Sectors |
| /v1/macro | Macro |
| /v1/metrics | 指标定义 |
| /v1/sources | 来源与再分发 |
| /v1/research | 研究索引 |
限额与错误
- 429:已达到每分钟或每月限制(包含 retryAfterSec)
- 401:密钥缺失或已撤销
- 检查 x-ratelimit-limit 和 x-ratelimit-remaining 请求头
OpenAPI
规格说明位于 /openapi.json。
https://api.cresearch.jp/openapi.json
MCP 服务器
平台附带一个用于 AI 代理的 MCP 服务器(测试版)。请在本地运行并通过您的 API 密钥进行身份验证。
CR_API_KEY=cr_... node apps/api/src/mcp.ts