# Tokenearly 开发者 API > 两种接入方式:WebSocket 实时推送——我们监控到交易所公告、新闻快讯、信号或精选推特 KOL 的推文后立即推给你;REST 查询历史。数据是结构化事件:中英韩标题、公告的上新判定与代币代码、新闻摘要、推文原文、原文链接,每条都有稳定 ID。 - REST: https://api.tokenearly.com/v1 - WebSocket: wss://api.tokenearly.com/v1/stream - MCP: https://api.tokenearly.com/v1/mcp - Keys: create one in the dashboard (https://tokenearly.com/dashboard?tab=developer-api); accounts without the Developer API can apply for a 12-hour trial key there. ## 开始 - [概览](https://tokenearly.com/developers.md): 两种接入方式:WebSocket 实时推送——我们监控到交易所公告、新闻快讯、信号或精选推特 KOL 的推文后立即推给你;REST 查询历史。数据是结构化事件:中英韩标题、公告的上新判定与代币代码、新闻摘要、推文原文、原文链接,每条都有稳定 ID。 - [鉴权与 API Key](https://tokenearly.com/developers/authentication.md): 每个请求都带上 API Key:服务端代码放在 `Authorization: Bearer ` 请求头里;浏览器里的 WebSocket 不能设置请求头,改用 `api_key` 查询参数。 - [限流与配额](https://tokenearly.com/developers/limits.md): 默认每个账号 1 把 API Key;每把 Key 同时 1 条 WebSocket 连接,REST 与 MCP 每 3 秒 1 次。 ## 数据 - [主题](https://tokenearly.com/developers/topics.md): 主题是订阅的最小单位,格式为 <类型>.<来源>。主题清单由平台的全局注册表生成,新来源接入后自动出现。 - [事件格式](https://tokenearly.com/developers/events.md): 每条消息都是一个事件:固定的信封、稳定的 ID、可递增的修订号,以及按类型定义的 data。 - [我的推送](https://tokenearly.com/developers/my-alerts.md): 除了按主题订阅的全量事件,API 还能把**真正推给你的那一份**提醒原样给你:和你在网页上设置的 Bark、企业微信等渠道收到的完全相同,按你的来源、关键词、通知语言过滤。适合把我们的提醒接进你自己的机器人或工作流。 ## REST API - [查询事件](https://tokenearly.com/developers/rest/list-events.md): 按主题查询历史事件,支持游标翻页与断线补拉。 - [获取单个事件](https://tokenearly.com/developers/rest/get-event.md): 按 ID 取一个事件的最新修订版。 - [当前 Key 信息](https://tokenearly.com/developers/rest/me.md): 查看 Key 实际可读的主题、限额与 IP 白名单。 - [变更通知](https://tokenearly.com/developers/rest/notices.md): 限额调整、Key 变更与接口更新的记录。 - [我的推送](https://tokenearly.com/developers/rest/alerts.md): 和你的 Bark、企业微信等渠道收到的同一份推送(按你的网页设置过滤)。 - [主题清单](https://tokenearly.com/developers/rest/topics.md): 全部可订阅的主题;带 Key 时标注是否可读。 - [事件 JSON Schema](https://tokenearly.com/developers/rest/schema.md): 事件信封与各类 data 的 JSON Schema(draft 2020-12)。 - [健康检查](https://tokenearly.com/developers/rest/health.md): 服务是否在线。 ## 实时流 - [WebSocket 实时推送](https://tokenearly.com/developers/websocket.md): 保持一条连接,我们监控到你订阅主题的新公告、新闻或信号,就立即推送给你。每把 Key 同时 1 条连接。 ## AI 与工具 - [AI agent 与 MCP](https://tokenearly.com/developers/ai.md): 文档与接口都为 AI 准备好了:每页可复制成 Markdown,规范机器可读,AI agent 可以通过 MCP 直接查询事件。 ## 参考 - [错误码](https://tokenearly.com/developers/errors.md): REST 错误统一返回 JSON 对象 `error`,用 `code` 判断类型,不要依赖 `message` 文案。 ## Machine-readable - [OpenAPI 3.1](https://api.tokenearly.com/v1/openapi.json) - [AsyncAPI 3.0](https://api.tokenearly.com/v1/asyncapi.json) - [JSON Schema](https://api.tokenearly.com/v1/schema) - [All docs in one file](https://tokenearly.com/developers/llms-full.txt) ## Other languages - [English](https://tokenearly.com/en/developers/llms.txt) - [한국어](https://tokenearly.com/ko/developers/llms.txt)