# Tokenearly Developer API > Two ways in: WebSocket pushes each exchange announcement, news item, signal or post from a curated X (Twitter) KOL to you as soon as we detect it, and REST lets you query history. Events are structured: zh/en/ko titles, listing verdict and tickers for announcements, summaries for news, post text for X, and the original link, each with a stable 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. ## Get started - [Overview](https://tokenearly.com/en/developers.md): Two ways in: WebSocket pushes each exchange announcement, news item, signal or post from a curated X (Twitter) KOL to you as soon as we detect it, and REST lets you query history. Events are structured: zh/en/ko titles, listing verdict and tickers for announcements, summaries for news, post text for X, and the original link, each with a stable id. - [Authentication](https://tokenearly.com/en/developers/authentication.md): Send your API key with every request: in the `Authorization: Bearer ` header from server code. Browser WebSockets cannot set headers, so use the `api_key` query parameter there. - [Rate limits](https://tokenearly.com/en/developers/limits.md): By default an account has 1 API key(s); each key allows 1 concurrent WebSocket connection(s) and 1 REST/MCP request every 3 seconds. ## Data - [Topics](https://tokenearly.com/en/developers/topics.md): A topic is the unit of subscription, in the form .. The list is generated from the platform's global registry; new sources appear automatically. - [Event format](https://tokenearly.com/en/developers/events.md): Every message is an event: a fixed envelope, a stable id, an increasing revision, and type-specific data. - [My alerts](https://tokenearly.com/en/developers/my-alerts.md): Besides every event of the topics you subscribe to, the API can hand you **exactly the alerts pushed to you**: identical to what your Bark, WeCom and other channels set up in the dashboard receive, filtered by your sources, keywords and alert language. Use it to wire our alerts into your own bots and workflows. ## REST API - [List events](https://tokenearly.com/en/developers/rest/list-events.md): Query past events by topic, with cursor pagination and catch-up. - [Get an event](https://tokenearly.com/en/developers/rest/get-event.md): Fetch the latest revision of one event by id. - [Current key](https://tokenearly.com/en/developers/rest/me.md): See which topics the key can read, its limits and IP allowlist. - [Notices](https://tokenearly.com/en/developers/rest/notices.md): Records of limit changes, key changes and API updates. - [My alerts](https://tokenearly.com/en/developers/rest/alerts.md): The same pushes your Bark, WeCom and other channels receive, filtered by your settings. - [List topics](https://tokenearly.com/en/developers/rest/topics.md): Every subscribable topic; marks readability when a key is sent. - [Event JSON Schema](https://tokenearly.com/en/developers/rest/schema.md): JSON Schema (draft 2020-12) for the envelope and each data type. - [Health check](https://tokenearly.com/en/developers/rest/health.md): Whether the service is up. ## Streaming - [WebSocket push](https://tokenearly.com/en/developers/websocket.md): Keep one connection open and every new announcement, news item or signal on your topics is pushed to you as soon as we detect it. Each key may hold 1 connection(s) at a time. ## AI & tools - [AI agents & MCP](https://tokenearly.com/en/developers/ai.md): The docs and the API are ready for AI: every page copies as Markdown, the specs are machine-readable, and agents can query events directly over MCP. ## Reference - [Errors](https://tokenearly.com/en/developers/errors.md): REST errors always return an `error` object; branch on `code`, not on the `message` text. ## 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/en/developers/llms-full.txt) ## Other languages - [中文](https://tokenearly.com/developers/llms.txt) - [한국어](https://tokenearly.com/ko/developers/llms.txt)