# 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) --- # 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. > Source: https://tokenearly.com/en/developers · Docs index: https://tokenearly.com/en/developers/llms.txt · OpenAPI: https://api.tokenearly.com/v1/openapi.json - [WebSocket push](https://tokenearly.com/en/developers/websocket): We push each new announcement to you as soon as we detect it; resume by event id after a disconnect. - [REST history](https://tokenearly.com/en/developers/rest/list-events): Query past announcements, news and signals by topic, with cursor pagination. - [One event format](https://tokenearly.com/en/developers/events): A fixed envelope plus a JSON Schema per message type, with zh/en/ko titles. - [Built for AI agents](https://tokenearly.com/en/developers/ai): Copy any page as Markdown; OpenAPI, llms.txt and an MCP server. ## Quickstart ### 1. Get a key Once your plan includes the Developer API, create a key in the [dashboard](https://tokenearly.com/dashboard?tab=developer-api); it is shown once. Not subscribed yet? Apply for a trial key there: valid for 12 hours, up to 6 times every 30 days. ```bash export TOKENEARLY_API_KEY=te_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` ### 2. Make your first request Fetch the three latest events across all exchange announcements plus Odaily news (join several topics with commas). Paste your key and press Send to call the real API from your browser. **cURL** ```bash curl "https://api.tokenearly.com/v1/events?topics=announcement.*,news.odaily&limit=3" \ -H "Authorization: Bearer $TOKENEARLY_API_KEY" ``` **Python** ```python import os, requests resp = requests.get( "https://api.tokenearly.com/v1/events?topics=announcement.*,news.odaily&limit=3", headers={"Authorization": f"Bearer {os.environ['TOKENEARLY_API_KEY']}"}, timeout=10, ) resp.raise_for_status() print(resp.json()) ``` **Node.js** ```javascript // Node 18+ (built-in fetch) async function main() { const resp = await fetch("https://api.tokenearly.com/v1/events?topics=announcement.*,news.odaily&limit=3", { headers: { Authorization: `Bearer ${process.env.TOKENEARLY_API_KEY}` }, }); const body = await resp.json(); if (!resp.ok) throw new Error(`${body.error.code}: ${body.error.message}`); console.log(body); } main().catch((err) => { console.error(err); process.exit(1); }); ``` **Go** ```go package main import ( "fmt" "io" "net/http" "os" ) func main() { req, _ := http.NewRequest("GET", "https://api.tokenearly.com/v1/events?topics=announcement.*,news.odaily&limit=3", nil) req.Header.Set("Authorization", "Bearer "+os.Getenv("TOKENEARLY_API_KEY")) resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(resp.Status, string(body)) } ``` ### 3. Connect to the stream Connect with your own key and new announcements are pushed as they appear. Keep the last event id and pass it as `after` when reconnecting so nothing is missed. **Python** ```python import asyncio, json, os, time import requests # pip install requests import websockets # pip install websockets KEY = os.environ["TOKENEARLY_API_KEY"] H = {"Authorization": f"Bearer {KEY}"} TOPICS = "announcement.*,news.*,signal.*,twitter.*" STREAM = "wss://api.tokenearly.com/v1/stream?topics=" + TOPICS EVENTS = "https://api.tokenearly.com/v1/events" FATAL = {4001, 4003} # bad / expired key, no permission: fix it, do not retry last_id = None # last event id: resume cursor (store it durably in production) live_at = int(time.time()) # last moment the stream was live: `updated_after` for a REST catch-up def handle(ev): global last_id if not last_id or ev["id"] > last_id: # ids grow with time; only move the cursor forward last_id = ev["id"] data = ev["data"] # same envelope for every type; `data` depends on ev["type"] if ev["type"] == "twitter": # X posts: text as published, no titles text = "@" + data["author"]["screen_name"] + ": " + data["text"] else: text = data["titles"].get("en") or next(iter(data["titles"].values()), "") print(ev["type"], ev["topic"], ev["revision"], text) # dedupe on (id, revision) in production def rest_get(params): while True: r = requests.get(EVENTS, params=dict(params, topics=TOPICS, limit=200), headers=H, timeout=10) if r.status_code == 429: time.sleep(int(r.headers.get("Retry-After", "3"))) continue r.raise_for_status() time.sleep(int(r.headers.get("X-RateLimit-Reset", "3"))) # respect the per-key interval return r.json() def catch_up(): """replay_done.truncated: the gap is too big for the stream, so fill it over REST.""" while True: # 1) new events after the cursor, oldest first page = rest_get({"after": last_id}) for ev in page["events"]: handle(ev) if not page["has_more"]: break params = {"updated_after": live_at} # 2) older events that got a new revision while away while True: page = rest_get(params) for ev in page["events"]: handle(ev) if not page["has_more"]: break params = {"updated_after": live_at, page["cursor_param"]: page["next_cursor"]} async def main(): global live_at, last_id delay = 1 while True: url = STREAM + (f"&after={last_id}" if last_id else "") truncated = False try: async with websockets.connect(url, additional_headers=H) as ws: async for raw in ws: msg = json.loads(raw) op = msg["op"] if op == "welcome": delay = 1 elif op == "event": handle(msg["event"]) elif op == "replay_done" and msg["truncated"]: truncated = True # 1) close, 2) catch up over REST, 3) reconnect with the new cursor break elif op == "notice": print("notice:", msg["notice"]["kind"], msg["notice"]["body"].get("en")) elif op == "error": print("server error:", msg["code"], msg["message"]) if op == "ping" or (op == "event" and not msg.get("replay")): live_at = int(time.time()) # live traffic only comes after the replay except websockets.ConnectionClosed as e: if e.rcvd and e.rcvd.code in FATAL: raise SystemExit(f"stopped: close code {e.rcvd.code}") if e.rcvd and e.rcvd.code == 4029: delay = max(delay, 5) # slot not free yet if e.rcvd and e.rcvd.code == 4400: print("stored cursor rejected; reconnecting without it") last_id = None # never retry the same invalid `after` except Exception as e: print("disconnected:", e) if truncated: await asyncio.to_thread(catch_up) # blocking HTTP off the event loop continue # reconnect right away with after= await asyncio.sleep(delay) delay = min(delay * 2, 60) # exponential backoff asyncio.run(main()) ``` **Node.js** ```javascript // Node 18+ (built-in fetch): npm install ws const WebSocket = require("ws"); const TOPICS = "announcement.*,news.*,signal.*,twitter.*"; const EVENTS = "https://api.tokenearly.com/v1/events"; const H = { Authorization: `Bearer ${process.env.TOKENEARLY_API_KEY}` }; const FATAL = new Set([4001, 4003]); // bad / expired key, no permission: fix it, do not retry const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); let lastId = null, liveAt = Math.floor(Date.now() / 1000), delay = 1000; function handle(ev) { if (!lastId || ev.id > lastId) lastId = ev.id; // ids grow with time; only move the cursor forward const d = ev.data; // shape depends on ev.type; X posts carry text instead of titles const text = ev.type === "twitter" ? `@${d.author.screen_name}: ${d.text}` : (d.titles.en || Object.values(d.titles)[0]); console.log(ev.type, ev.topic, ev.revision, text); // dedupe on (id, revision) in production } async function restPages(params) { // all pages of one REST query, following `cursor_param` for (;;) { const r = await fetch(`${EVENTS}?${new URLSearchParams({ ...params, topics: TOPICS, limit: "200" })}`, { headers: H }); if (r.status === 429) { await sleep(1000 * Number(r.headers.get("retry-after") || 3)); continue; } if (!r.ok) throw new Error(`HTTP ${r.status}`); const page = await r.json(); page.events.forEach(handle); if (!page.has_more) return; params = { ...params, [page.cursor_param]: page.next_cursor }; await sleep(1000 * Number(r.headers.get("x-ratelimit-reset") || 3)); // respect the per-key interval } } async function catchUp() { // replay_done.truncated: the gap is too big for the stream, so fill it over REST await restPages({ after: lastId }); // 1) new events after the cursor, oldest first await restPages({ updated_after: String(liveAt) }); // 2) older events that got a new revision while away } function connect() { const ws = new WebSocket(`wss://api.tokenearly.com/v1/stream?topics=${TOPICS}` + (lastId ? `&after=${lastId}` : ""), { headers: H }); let truncated = false; ws.on("message", (raw) => { const msg = JSON.parse(raw); if (msg.op === "welcome") delay = 1000; if (msg.op === "event") handle(msg.event); if (msg.op === "replay_done" && msg.truncated) { truncated = true; ws.close(); return; } if (msg.op === "notice") console.log("notice:", msg.notice.kind, msg.notice.body.en); if (msg.op === "error") console.error("server error:", msg.code, msg.message); if (msg.op === "ping" || (msg.op === "event" && !msg.replay)) liveAt = Math.floor(Date.now() / 1000); }); ws.on("close", async (code) => { if (FATAL.has(code)) return console.error("stopped: close code", code); if (truncated) { // 1) closed, 2) catch up over REST, 3) reconnect with the new cursor try { await catchUp(); } catch (e) { console.error("catch-up failed:", e.message); } return connect(); } if (code === 4400) { console.error("stored cursor rejected; reconnecting without it"); lastId = null; } if (code === 4029) delay = Math.max(delay, 5000); setTimeout(connect, delay); delay = Math.min(delay * 2, 60000); }); ws.on("error", (e) => console.error(e.message)); } connect(); ``` **Go** ```go package main // go get github.com/coder/websocket import ( "context" "encoding/json" "fmt" "net/http" "os" "github.com/coder/websocket" ) func main() { ctx := context.Background() h := http.Header{} h.Set("Authorization", "Bearer "+os.Getenv("TOKENEARLY_API_KEY")) c, _, err := websocket.Dial(ctx, "wss://api.tokenearly.com/v1/stream?topics=announcement.*,news.*,signal.*,twitter.*", &websocket.DialOptions{HTTPHeader: h}) if err != nil { panic(err) } defer c.CloseNow() for { _, data, err := c.Read(ctx) if err != nil { // in production: reconnect with after=, back off 1,2,4…60 s; stop on close code 4001 / 4003; // on 4400 drop the stored cursor; on replay_done with truncated = true catch up over REST first (see the Python tab) panic(err) } var msg map[string]any json.Unmarshal(data, &msg) if msg["op"] == "event" { ev := msg["event"].(map[string]any) fmt.Println(ev["type"], ev["topic"], ev["revision"], ev["id"]) } } } ``` ## Basics | Item | Value | |---|---| | REST base URL | `https://api.tokenearly.com/v1` | | Stream URL | `wss://api.tokenearly.com/v1/stream` | | Authentication | `Authorization: Bearer ` | | Format | JSON, UTF-8; times are Unix timestamps | | Spec version | `1.0` | | Machine-readable specs | [OpenAPI](https://api.tokenearly.com/v1/openapi.json) · [AsyncAPI](https://api.tokenearly.com/v1/asyncapi.json) · [JSON Schema](https://api.tokenearly.com/v1/schema) | | Trial key | From the dashboard, valid 12 hours | ## How to connect | Interface | What it is for | Limit | |---|---|---| | **WebSocket (wss)** | Real-time push: each new announcement, news item or signal is sent to you as soon as we detect it | Up to 1 at a time per key; extra ones are refused | | **REST** | Query past announcements, news and signals; catch up after a disconnect | 1 request every 3 seconds per key | | **MCP** | Query entry point for AI agents; same data as REST | Shares the REST limit | Each account can create 1 API key(s); every key has its own connection allowance and rate limit and can be bound to an IP allowlist. Use WebSocket for real-time data instead of polling REST. These are defaults; `GET /v1/me` shows what applies to your key. ## What you can subscribe to **Exchange announcements** (`announcement.*`, with listing verdict and token tickers), **news** (`news.*`, title, summary and link), **signals** (`signal.*`) and **X (Twitter) KOL posts** (`twitter.*`: original posts, quotes, replies and retweets from a curated list of KOL accounts). Each source is a topic; newly added exchanges, news sources and signal sources show up in the [topic list](https://tokenearly.com/en/developers/topics) automatically, and the list of X accounts changes over time, so the topic list is the reference for it too. ## FAQ **Can I try it before paying?** Yes. Sign in with a verified email and apply for a trial key under [Dashboard → Developer API](https://tokenearly.com/dashboard?tab=developer-api): valid for 12 hours, up to 6 times per account every 30 days. Endpoints, real-time push and data format are exactly the same as a regular key; trial keys are for development and testing only. **Why do I get the same announcement twice?** It is sent with revision=1 when first stored, then again with the same id and a higher revision (action=updated) once titles in all three languages or the original link are filled in. Posts from X work the same way: a shortened first version can be followed by the complete one under the same id. Keep the highest revision per id. **How is MCP different from REST?** Same data and permissions, different caller: REST is for programs you write; MCP (Model Context Protocol) is for AI clients such as Claude and Cursor, which discover the tools and their parameters on their own. Both use the same key and share one limit (1 call every 3 seconds); both are query-only, and real-time push is WebSocket only. **Can an AI agent call it directly?** Yes. The MCP server is at `https://api.tokenearly.com/v1/mcp`; clients such as Claude and Cursor only need the URL and a key. You can also copy any docs page as Markdown and hand it to an AI. --- # Authentication and API keys 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. > Source: https://tokenearly.com/en/developers/authentication · Docs index: https://tokenearly.com/en/developers/llms.txt · OpenAPI: https://api.tokenearly.com/v1/openapi.json ## Examples Each example calls `GET /v1/me`, which returns the key's readable topics, limits and IP allowlist; it is the quickest way to check that a key works. **cURL** ```bash curl "https://api.tokenearly.com/v1/me" \ -H "Authorization: Bearer te_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ``` **Python** ```python import os, requests KEY = os.environ["TOKENEARLY_API_KEY"] # te_live_... resp = requests.get( "https://api.tokenearly.com/v1/me", headers={"Authorization": f"Bearer {KEY}"}, timeout=10, ) print(resp.status_code, resp.json()) ``` **Node.js** ```javascript // Node 18+ (built-in fetch) async function main() { const resp = await fetch("https://api.tokenearly.com/v1/me", { headers: { Authorization: `Bearer ${process.env.TOKENEARLY_API_KEY}` }, }); console.log(resp.status, await resp.json()); } main().catch((err) => { console.error(err); process.exit(1); }); ``` **X-API-Key** ```bash curl "https://api.tokenearly.com/v1/me" \ -H "X-API-Key: te_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ``` **WebSocket** ```python import asyncio, os import websockets # pip install websockets async def main(): async with websockets.connect( "wss://api.tokenearly.com/v1/stream?topics=announcement.*,news.*", additional_headers={"Authorization": f"Bearer {os.environ['TOKENEARLY_API_KEY']}"}, ) as ws: print(await ws.recv()) # {"op": "welcome", ...} asyncio.run(main()) ``` **Browser** ```javascript // Browsers cannot set headers on WebSocket: pass the key as a query parameter. // Only do this in tools you control; never ship a real key in public front-end code. const ws = new WebSocket("wss://api.tokenearly.com/v1/stream?topics=announcement.*,news.*&api_key=te_live_..."); ws.onmessage = (e) => console.log(JSON.parse(e.data)); ``` A missing or invalid key returns 401: **401 response** ```json { "error": { "code": "invalid_api_key", "message": "This API key does not exist or has been revoked.", "docs": "https://tokenearly.com/en/developers/errors" } } ``` ## Three ways to send it | Method | Example | Use for | |---|---|---| | Authorization | `Authorization: Bearer te_live_…` | Recommended; REST, WebSocket and MCP | | X-API-Key | `X-API-Key: te_live_…` | Tools that cannot set Bearer | | api_key | `wss://…/v1/stream?api_key=te_live_…` | Browser WebSockets only (browsers cannot set headers) | ## Create a key 1. Sign in and open [Dashboard → Developer API](https://tokenearly.com/dashboard?tab=developer-api). 2. Press Create API key and name it; optionally add an IP allowlist. 3. Copy the key from the dialog. It is shown only once; we store only its hash. An account can hold 1 key(s) by default; to rotate a key, press Reset. The key reads every topic your plan includes; choose topics per request or connection with the `topics` parameter, and check the effective set any time with [GET /v1/me](https://tokenearly.com/en/developers/rest/me). A key belongs to your account and is only a credential for it: the topics your regular keys can read and [My alerts](https://tokenearly.com/en/developers/my-alerts) (the switch, history and cursors) stay with the account when you rotate keys. Stream subscriptions are chosen by your client on every connection with `topics` and are not stored on the key, so reconnect with the same parameters. The IP allowlist is set per key: a reset keeps it, a newly created key needs it filled in again. ### Reset a key When a key leaks, is lost or is due for rotation, press Reset on it in the dashboard (trial keys too). A new key is issued and the old one stops working immediately: REST and MCP return 401 `invalid_api_key`, and open streams on the old key get `op = "error"` and close with 4001; do not reconnect automatically, switch to the new key first. The key id, name, IP allowlist, limits and expiry stay the same; resetting a trial key neither uses one of your applications nor extends its validity. ### How long a key works Regular keys never expire on their own; they work while your account has a membership that includes the Developer API. When it expires, every regular key is refused with 403 `plan_required` (4003 on streams); renew and the same key works again immediately. Check the end date in `access_expires_at` from [GET /v1/me](https://tokenearly.com/en/developers/rest/me) or in the dashboard. 7, 3 and 1 days before and once it has expired we email you, push to your notification channels, and send a [notice](https://tokenearly.com/en/developers/rest/notices) (`access_expiring` / `access_expired`) to your integration. Trial keys do not follow a membership: they expire at their own `expires_at` (the same as `access_expires_at`), after which requests get 401 `key_expired` (4001 on streams). They cannot be renewed: apply for a new trial key, or subscribe and create a regular key. > Treat the key like a password: never ship it in front-end code or commit it to a repository. If it leaks, reset or revoke it in the dashboard; the old key stops working and its open streams are closed immediately. ## IP allowlist (optional) Add your servers' egress IPs to the key in the dashboard and only those addresses can use it, so a leaked key is useless elsewhere. Leave it empty to allow any address. You can edit it at any time; open streams pick up the change within a minute. | Entry | Meaning | |---|---| | `203.0.113.5` | One IPv4 address | | `203.0.113.0/24` | A range (CIDR) | | `2001:db8::1` | IPv6 address or range | REST and MCP calls from outside the allowlist return 403 `ip_not_allowed`; WebSocket sends an `op = "error"` message and closes with code 4003. **403 response** ```json { "error": { "code": "ip_not_allowed", "message": "Requests from 198.51.100.7 are not in this key's IP allowlist.", "docs": "https://tokenearly.com/en/developers/errors" } } ``` ## Edge cases | Case | Behaviour | |---|---| | Both `Authorization: Bearer` and `X-API-Key` sent | `Authorization` wins; `X-API-Key` is ignored | | `Authorization` is not Bearer (e.g. Basic) | Ignored; `X-API-Key` / `api_key` are used instead | | Precedence | `Authorization: Bearer` > `X-API-Key` > `api_key`. The `api_key` query parameter only works on WebSocket and is ignored by REST (401 `missing_api_key`); a wrong key in Bearer is not retried with `api_key` (4001) | | Lowercase `bearer`, extra spaces around the key | Accepted | ## Trial key Accounts without the Developer API can apply for a trial key in the dashboard to get their code working first. | Item | Trial key | |---|---| | Who can apply | A registered account with a verified email (not a guest account) | | Valid for | 12 hours, then it stops working | | How often | 6 times per account every 30 days; one active at a time | | Data | All topics, real time; 7 days of history | | Rate and connections | Same as the regular defaults: 1 request every 3 seconds, 1 concurrent connection(s) | | After expiry | REST returns 401 `key_expired`; open streams are closed with code 4001 | > Trial keys are for development and testing only, not for production or commercial use. Subscribe and create a regular key to go live. --- # Rate limits 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. > Source: https://tokenearly.com/en/developers/limits · Docs index: https://tokenearly.com/en/developers/llms.txt · OpenAPI: https://api.tokenearly.com/v1/openapi.json ## At a glance | Item | Limit | When exceeded | |---|---|---| | API keys | 1 per account | Cannot create another; revoke one first | | WebSocket connections | 1 at a time per key | The new connection is refused with close code `4029` | | REST and MCP | 1 request every 3 seconds per key (combined) | `429`; wait `Retry-After` seconds | | History window | Set by your plan; see `limits.api_history_days` in `/v1/me` | Older events are simply not returned (no error) | Endpoints that need no key (`/v1/topics`, `/v1/schema`, `/v1/health`) are not rate limited. > The table shows defaults. Limits can be adjusted per account or per key (for example a higher rate or more connections for one key); call `GET /v1/me` and read `limits` for what applies to your key. When a limit changes (the defaults, your account or one of your keys), open streams immediately receive an `op = "notice"` message with the old and new values. The same records are available from [GET /v1/notices](https://tokenearly.com/en/developers/rest/notices) and in the dashboard change log. ## REST rate limit Two requests with the same key must be at least 3 seconds apart. Successful (200) responses from endpoints that need a key carry the headers below; a `429` carries them too, plus `Retry-After`; other error responses carry none of them: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests allowed per window (1) | | `X-RateLimit-Window` | Window length in seconds (3) | | `X-RateLimit-Remaining` | Requests left in the current window | | `X-RateLimit-Reset` | Seconds until the next request is allowed | | `Retry-After` | Only on 429: whole seconds to wait before retrying | ### Which requests count | Request | Counts? | |---|---| | Successful requests (200) | Yes | | Requests that fail after authentication: `400 invalid_cursor`, `404 not_found` from `GET /v1/events/{id}` | Yes (the response has no rate-limit headers) | | Failed authentication: `401` (missing, invalid or expired key), `403` (`ip_not_allowed`, `plan_required`) | No | | Malformed parameters, `400 invalid_parameter` (e.g. `limit` out of range; rejected before the key is checked) | No | | Unknown path (`404`) or wrong method (`405`) | No | | Requests refused with `429` | No, and they do not push back the next allowed time | | `/v1/topics` (with or without a key), `/v1/schema`, `/v1/health` | No | | MCP `get_events`, `get_event`, `get_alerts`, `whoami` (as do REST `/v1/events`, `/v1/alerts`, `/v1/me`, `/v1/notices`) | Yes, from the same allowance as REST; MCP responses are JSON-RPC and carry none of these headers. Over the limit the tool returns a `rate_limited` error whose message says how many seconds to wait | | MCP `list_topics`, `get_schema`, `initialize` and `tools/list` | No | **Retry with Retry-After** ```python import time, requests def get(url, key, tries=5): for i in range(tries): r = requests.get(url, headers={"Authorization": f"Bearer {key}"}, timeout=10) if r.status_code != 429: r.raise_for_status() return r.json() time.sleep(int(r.headers.get("Retry-After", "1"))) # wait as instructed raise RuntimeError("still rate limited") ``` > REST is for history and catching up, not for polling new items. For real-time data connect to the WebSocket: new announcements are pushed to you and the stream does not count against the REST limit. ## WebSocket connections Connections are counted per key: each key may hold up to 1 stream connection(s). When its allowance is full a new connection receives `too_many_connections` and is closed with code 4029; close the old one first. Need more connections (say one per server)? Create more keys and give each server its own. Connections that drop without a clean close are released automatically once heartbeats time out, usually within a minute. If a client falls more than 500 events behind it is closed with 4008; reconnect with `after` to resume. --- # Topics: subscribable sources A topic is the unit of subscription, in the form .. The list is generated from the platform's global registry; new sources appear automatically. > Source: https://tokenearly.com/en/developers/topics · Docs index: https://tokenearly.com/en/developers/llms.txt · OpenAPI: https://api.tokenearly.com/v1/openapi.json ## Syntax | Pattern | Meaning | |---|---| | `announcement.binance` | One exact topic | | `announcement.*` | Every source of a type | | `*` | Every topic | | `announcement.binance,signal.*` | Combine with commas | Patterns are expanded on every request, so new sources are picked up without changing your subscription. Topic ids are case-insensitive (`Announcement.Binance` = `announcement.binance`); responses always use lower case. X topics are `twitter.`, one per curated KOL account: the id stays the same when the account is renamed, and accounts are added or removed over time. Subscribe to `twitter.*` to follow the list automatically. ## Current topics | Topic id | Name | Type | |---|---|---| | `announcement.binance` | Binance | Exchange announcements | | `announcement.okx` | OKX | Exchange announcements | | `announcement.mexc` | MEXC | Exchange announcements | | `announcement.bitget` | Bitget | Exchange announcements | | `announcement.gate` | Gate.io | Exchange announcements | | `announcement.huobi` | Huobi | Exchange announcements | | `announcement.bybit` | Bybit | Exchange announcements | | `announcement.kucoin` | KuCoin | Exchange announcements | | `announcement.upbit` | Upbit | Exchange announcements | | `announcement.bithumb` | Bithumb | Exchange announcements | | `news.odaily` | Odaily | News | | `news.jinse` | Jinse Finance | News | | `news.theblockbeats` | TheBlockBeats | News | | `news.foresight` | Foresight News | News | | `news.panews` | PANews | News | | `news.coinmarketcap` | CoinMarketCap | News | | `news.wallstreetcn` | WallStreetCN | News | | `news.theblock` | The Block | News | | `signal.binance_alpha` | Binance Alpha | Signals | | `twitter.44196397` | @elonmusk (Elon Musk) | X (Twitter) KOL posts | | `twitter.902926941413453824` | @cz_binance (CZ 🔶 BNB) | X (Twitter) KOL posts | | `twitter.574032254` | @coinbase (Coinbase 🛡️) | X (Twitter) KOL posts | | `twitter.1422537905885442055` | @CoinbaseAssets (Coinbase Assets 🛡️) | X (Twitter) KOL posts | | `twitter.720487892670410753` | @CoinbaseMarkets (Coinbase Markets 🛡️) | X (Twitter) KOL posts | | `twitter.877807935493033984` | @binance (Binance) | X (Twitter) KOL posts | | `twitter.295218901` | @VitalikButerin (vitalik.eth) | X (Twitter) KOL posts | | `twitter.1003840309166366721` | @heyibinance (Yi He) | X (Twitter) KOL posts | | `twitter.902839045356744704` | @justinsuntron (H.E. Justin Sun 👨‍🚀 🌞) | X (Twitter) KOL posts | | `twitter.900935123968737281` | @hebi555 (何币) | X (Twitter) KOL posts | | `twitter.1403881130802225152` | @BTCdayu (大宇) | X (Twitter) KOL posts | | `twitter.2985599460` | @star_okx (Star_OKX) | X (Twitter) KOL posts | | `twitter.1533037218444476416` | @xincctnnq (币圈女菩萨|Pizza披萨🍕) | X (Twitter) KOL posts | | `twitter.25073877` | @realDonaldTrump (Donald J. Trump) | X (Twitter) KOL posts | | `twitter.1686901686185721857` | @TrumpDailyPosts (Commentary Trump Daily Posts) | X (Twitter) KOL posts | | `twitter.20736511` | @nayibbukele (Nayib Bukele) | X (Twitter) KOL posts | | `twitter.1844002277218242560` | @Plasma | X (Twitter) KOL posts | | `twitter.2414580907` | @pauliepunt (Paul) | X (Twitter) KOL posts | | `twitter.867617849208037377` | @okx (OKX) | X (Twitter) KOL posts | | `twitter.1138033434` | @Rewkang (Andrew Kang) | X (Twitter) KOL posts | | `twitter.1789908971953799168` | @Aster_DEX (Aster 🥷) | X (Twitter) KOL posts | | `twitter.1948234340556763136` | @zakk_okx (Zakk 🟪 OKX AI) | X (Twitter) KOL posts | | `twitter.357312062` | @Bitcoin | X (Twitter) KOL posts | | `twitter.973261472` | @blknoiz06 (Ansem 🐂🀄️) | X (Twitter) KOL posts | | `twitter.132749200` | @OxSunNFT (0xSun ❤️ Memecoin) | X (Twitter) KOL posts | | `twitter.844304603336232960` | @MustStopMurad (Murad 💹🧲) | X (Twitter) KOL posts | | `twitter.1195728139898376193` | @0xcryptowizard (0xWizard) | X (Twitter) KOL posts | | `twitter.992590209752629249` | @notEezzy (Eezzy 🧸) | X (Twitter) KOL posts | | `twitter.1800348208461205504` | @xiaomucrypto (新股神白毛股神) | X (Twitter) KOL posts | | `twitter.16228398` | @mcuban (Mark Cuban) | X (Twitter) KOL posts | | `twitter.1189381231198134272` | @CookerFlips (Cooker.hl \| 版本之子 \| (Theo Arc)) | X (Twitter) KOL posts | | `twitter.1279711663264894977` | @DekuKing1 (0x易经(刘彻版)) | X (Twitter) KOL posts | | `twitter.725984371946082304` | @XXAntiWar (XX) | X (Twitter) KOL posts | | `twitter.1462727797135216641` | @lookonchain (Lookonchain) | X (Twitter) KOL posts | | `twitter.1466673394649559040` | @huahuayjy (花花) | X (Twitter) KOL posts | | `twitter.1401718840535379970` | @hellosuoha (梭教授说) | X (Twitter) KOL posts | | `twitter.1453603581932687368` | @laofeiyyds (比特币老肥.btc(敏感肥)) | X (Twitter) KOL posts | | `twitter.1852674305517342720` | @aixbt_agent (aixbt) | X (Twitter) KOL posts | | `twitter.1279918106111025153` | @assetdash (Dash News) | X (Twitter) KOL posts | | `twitter.169686021` | @kanyewest (ye) | X (Twitter) KOL posts | | `twitter.1483495485889564674` | @bwenews (方程式新闻 BWEnews 🏎️) | X (Twitter) KOL posts | | `twitter.1052454006537314306` | @BNBCHAIN (BNB Chain) | X (Twitter) KOL posts | | `twitter.1451036242431262720` | @binancezh (币安Binance华语) | X (Twitter) KOL posts | | `twitter.1940360837547565056` | @aleabitoreddit (Serenity) | X (Twitter) KOL posts | In code, call [GET /v1/topics](https://tokenearly.com/en/developers/rest/topics) for the current list. --- # Event format: envelope and message fields Every message is an event: a fixed envelope, a stable id, an increasing revision, and type-specific data. > Source: https://tokenearly.com/en/developers/events · Docs index: https://tokenearly.com/en/developers/llms.txt · OpenAPI: https://api.tokenearly.com/v1/openapi.json ## Envelope Every event shares one envelope; the shape of `data` depends on `type`. The stream and REST build events with the same function, so the fields are identical. | Field | Type | required | Description | |---|---|---|---| | `spec_version` | `"1.0"` | ✓ | Event format version. Within a major version fields are only added, never removed or changed. | | `id` | `string` | ✓ | Stable event id (24 hex characters) shared by every revision; never changes. Ids increase with the time the event was first stored and compare correctly as strings. Also the pagination and resume cursor. | | `revision` | `integer` | ✓ | Starts at 1 and increases when translations or the original link are filled in, or when the complete version of a post arrives. Deduplicate on (id, revision) and keep the highest. | | `action` | `"created" \| "updated"` | ✓ | created = first appearance; updated = a newer revision of the same event. | | `topic` | `string` | ✓ | Topic id in the form ., e.g. announcement.binance; X accounts use their numeric id, e.g. twitter.44196397. | | `type` | `"announcement" \| "news" \| "signal" \| "twitter"` | ✓ | Message type; decides the shape of `data`. | | `source` | `object` | ✓ | Source: `id` matches the topic suffix, `name` is the English display name (for X: @handle and display name). (id, name) | | `published_at` | `integer \| null` | ✓ | When the source published it, Unix seconds. | | `published_at_ms` | `integer \| null` | | When the source published it, Unix milliseconds; seconds × 1000 if the source has no milliseconds. | | `detected_at_ms` | `integer \| null` | ✓ | When Tokenearly received the item, Unix milliseconds; null for a few early records. | | `data` | `object` | ✓ | Payload; its shape depends on `type` (see each type below). | ## Lifecycle and deduplication - First appearance: `action = "created"`, `revision = 1`. - After titles or the original link are filled in (for posts: when the complete version arrives): same `id`, `action = "updated"`, higher `revision`. - `id` never changes; deduplicate on (id, revision) and keep the highest revision. **Deduplication** ```python latest = {} # event id -> highest revision seen def handle(ev): if latest.get(ev["id"], 0) >= ev["revision"]: return # duplicate or older revision first_time = ev["id"] not in latest latest[ev["id"]] = ev["revision"] if first_time: notify(ev) # new to you, whatever its action: after a reconnect a new item # can already be at revision 2 (action = "updated") else: update(ev) # same event, translations / link filled in ``` ## Exchange announcement (type = announcement) | Field | Type | required | Description | |---|---|---|---| | `titles` | `object` | ✓ | Titles in zh / en / ko. A language may be missing until translated; it then arrives as a new revision. (zh, en, ko) | | `original_lang` | `string` | ✓ | Language the exchange published in: one of zh / en / ko. | | `translated_langs` | `array` | ✓ | Title languages produced by machine translation. Any title not listed here is the exchange's own version: most exchanges publish in one language, some publish official Chinese and English versions, which may arrive in the same push or later (as a new revision that also replaces an earlier machine translation and removes it from this list). Machine translations are empty on the first push and usually filled in within seconds to tens of seconds as a new revision, occasionally minutes later or not at all. | | `url` | `string \| null` | ✓ | Original announcement on the exchange; for some sources it is filled in shortly after (as a new revision). | | `exchange_category` | `string \| null` | ✓ | The exchange's own category name, as given (not translated). | | `listing` | `object` | ✓ | Listing verdict: `is_listing` and `market` (spot / futures / null). Same classifier as the site's listing timeline. (is_listing, market) | | `symbols` | `array` | ✓ | Token tickers found in the title. | `data.listing` is the listing verdict and `data.symbols` the tickers found in the title; use them to filter listings. When `is_listing` is false, `market` is always null. **First push (revision 1): title in the original language only** ```json { "spec_version": "1.0", "id": "6b0ff643d0e4e92d84810499", "revision": 1, "action": "created", "topic": "announcement.gate", "type": "announcement", "source": { "id": "gate", "name": "Gate.io" }, "published_at": 1796208195, "published_at_ms": 1796208195000, "detected_at_ms": 1796208195896, "data": { "titles": { "zh": "Gate 已上线 RITUAL 合约交易、杠杆借贷交易、交易机器人、跟单、闪兑、定投功能", "en": "Gate Now Supports RITUAL for Futures Trading, Margin Loans, Bots, Copy, Convert, and Auto-Invest" }, "original_lang": "zh", "translated_langs": [], "url": "https://www.gate.io/article/103112", "exchange_category": "listing", "listing": { "is_listing": true, "market": "futures" }, "symbols": [] } } ``` **After translation (same id, higher revision): machine-translated titles added** ```json { "spec_version": "1.0", "id": "6b0ff643d0e4e92d84810499", "revision": 3, "action": "updated", "topic": "announcement.gate", "type": "announcement", "source": { "id": "gate", "name": "Gate.io" }, "published_at": 1796208195, "published_at_ms": 1796208195000, "detected_at_ms": 1796208195896, "data": { "titles": { "zh": "Gate 已上线 RITUAL 合约交易、杠杆借贷交易、交易机器人、跟单、闪兑、定投功能", "en": "Gate Now Supports RITUAL for Futures Trading, Margin Loans, Bots, Copy, Convert, and Auto-Invest", "ko": "Gate는 RITUAL 계약 거래, 레버리지 대출 거래, 트레이딩 봇, 팔로우 트레이딩, 스왑, 정기 투자 기능을 출시했습니다." }, "original_lang": "zh", "translated_langs": [ "ko" ], "url": "https://www.gate.io/article/103112", "exchange_category": "listing", "listing": { "is_listing": true, "market": "futures" }, "symbols": [] } } ``` ## News (type = news) | Field | Type | required | Description | |---|---|---|---| | `titles` | `object` | ✓ | Titles in zh / en / ko. A language may be missing until translated; it then arrives as a new revision. (zh, en, ko) | | `original_lang` | `string` | ✓ | Language the source published in: one of zh / en / ko. | | `translated_langs` | `array` | ✓ | Title languages produced by machine translation. Any title not listed here is the source's own version: most sources publish in one language, some publish official Chinese and English versions, which may arrive in the same push or later (as a new revision that also replaces an earlier machine translation and removes it from this list). Machine translations are empty on the first push and usually filled in within seconds to tens of seconds as a new revision, occasionally minutes later or not at all. | | `summary` | `string \| null` | ✓ | Summary as given by the source, in the original language, up to 600 characters; full text is not provided. May be null. | | `url` | `string \| null` | ✓ | Link to the original article; null for sources that publish flashes without a link. | `data.summary` is the source's own summary in the original language; full text is not provided. Open `data.url` for the article (some flashes have no link: null). Flash-style sources have no headline of their own; `titles` is taken from the start of the text and may be cut off with "...". **First push (revision 1): title in the original language only** ```json { "spec_version": "1.0", "id": "6b150bf2d0e4e92d8481211f", "revision": 1, "action": "created", "topic": "news.panews", "type": "news", "source": { "id": "panews", "name": "PANews" }, "published_at": 1796541408, "published_at_ms": 1796541408000, "detected_at_ms": 1796541426000, "data": { "titles": { "zh": "DWF Labs合伙人:比特币已挺过风暴,若Strategy没有崩盘,市场或已触底", "en": "DWF Labs Partner: Bitcoin Has Weathered the Storm; If Strategy Hasn't Collapsed, the Market May Have Bottomed" }, "original_lang": "zh", "translated_langs": [], "summary": "PANews 12月6日消息,DWF Labs 合伙人 Andrei Grachev 发文预测,比特币已经受住这轮市场风暴,如果 Strategy 没有崩盘,那么市场可能已经触底。", "url": "https://www.panewslab.com/zh/articles/01a24a36-6342-7407-b95e-475df0dce169" } } ``` **After translation (same id, higher revision): machine-translated titles added** ```json { "spec_version": "1.0", "id": "6b150bf2d0e4e92d8481211f", "revision": 3, "action": "updated", "topic": "news.panews", "type": "news", "source": { "id": "panews", "name": "PANews" }, "published_at": 1796541408, "published_at_ms": 1796541408000, "detected_at_ms": 1796541426000, "data": { "titles": { "zh": "DWF Labs合伙人:比特币已挺过风暴,若Strategy没有崩盘,市场或已触底", "en": "DWF Labs Partner: Bitcoin Has Weathered the Storm; If Strategy Hasn't Collapsed, the Market May Have Bottomed", "ko": "DWF Labs 파트너: 비트코인은 폭풍을 견뎌냈으며, 만약 Strategy가 붕괴되지 않았다면 시장은 이미 바닥에 도달했을 수 있다" }, "original_lang": "zh", "translated_langs": [ "ko" ], "summary": "PANews 12月6日消息,DWF Labs 合伙人 Andrei Grachev 发文预测,比特币已经受住这轮市场风暴,如果 Strategy 没有崩盘,那么市场可能已经触底。", "url": "https://www.panewslab.com/zh/articles/01a24a36-6342-7407-b95e-475df0dce169" } } ``` ## Signal (type = signal) | Field | Type | required | Description | |---|---|---|---| | `signal_type` | `string` | ✓ | Signal type, as defined by the source. | | `level` | `"info" \| "warning" \| "critical"` | ✓ | Severity: info / warning / critical. | | `titles` | `object` | ✓ | Titles in zh / en / ko; a language may be missing, so fall back to another. (zh, en, ko) | | `contents` | `object` | ✓ | Summary text in zh / en / ko. (zh, en, ko) | | `url` | `string \| null` | ✓ | Related link (may be null). | | `symbols` | `array` | ✓ | Token tickers involved. | | `tags` | `array` | ✓ | Tags. | **Example: a signal (real data)** ```json { "spec_version": "1.0", "id": "6b055216d0e4e92d8480d1e5", "revision": 1, "action": "created", "topic": "signal.binance_alpha", "type": "signal", "source": { "id": "binance_alpha", "name": "Binance Alpha" }, "published_at": 1795510800, "published_at_ms": 1795510800000, "detected_at_ms": 1795510806000, "data": { "signal_type": "binance_alpha", "level": "info", "titles": { "zh": "🆕 Binance Alpha 新币上线: SHARE (BSC)", "en": "🆕 Binance Alpha New Token: SHARE (BSC)", "ko": "🆕 바이낸스 알파 신규 토큰: SHARE (BSC)" }, "contents": { "zh": "代币: SHARE (ShareX)\n链: BSC\n价格: $0.0572\n合约: 0xe5e5e1d77125fc910d8f39cdd55b7a24ec69ce34\nAlpha ID: ALPHA_1287\n持有者: 61649\n市值: $56.19M", "en": "Token: SHARE (ShareX)\nChain: BSC\nPrice: $0.0572\nContract: 0xe5e5e1d77125fc910d8f39cdd55b7a24ec69ce34\nAlpha ID: ALPHA_1287\nHolders: 61649\nMarket Cap: $56.19M", "ko": "토큰: SHARE (ShareX)\n체인: BSC\n가격: $0.0572\n컨트랙트: 0xe5e5e1d77125fc910d8f39cdd55b7a24ec69ce34\nAlpha ID: ALPHA_1287\n보유자: 61649\n시가총액: $56.19M" }, "url": "https://www.binance.com/en/alpha/bsc/0xe5e5e1d77125fc910d8f39cdd55b7a24ec69ce34", "symbols": [ "SHARE" ], "tags": [ "new_listing", "bsc" ] } } ``` ## X (Twitter) KOL post (type = twitter) | Field | Type | required | Description | |---|---|---|---| | `kind` | `"tweet" \| "quote" \| "reply" \| "retweet"` | ✓ | Post kind: tweet = original post, quote, reply or retweet. On the first push it is occasionally not final yet (an original later confirmed as a quote, say); the correction arrives as a new revision. | | `tweet_id` | `string` | ✓ | The post's id on X. For a retweet, reply or quote it is the id of that action itself. | | `author` | `object` | ✓ | The account that posted: `id` is the numeric X id (same as the topic suffix; unchanged by renames), `screen_name` the handle at the time (without @), `name` the display name. (id, screen_name, name) | | `text` | `string` | ✓ | Post text as published, not translated. The first push may carry a shortened version (`complete` = false). | | `lang` | `string \| null` | ✓ | Language code as labelled by X (e.g. en, zh, ja); null when unknown. X also uses a few non-language codes, passed through as is: `zxx` (no text, e.g. media or a link only), `qme` (mentions or emoji only), `qst` (very short text), `art` (emoji only) and similar. | | `url` | `string \| null` | ✓ | Link to the post on X. | | `referenced_tweet_id` | `string \| null` | ✓ | Id of the quoted, replied-to or retweeted post; null for an original post. It may be missing on the first push and arrive in a new revision; a few older posts may never have it. | | `conversation_id` | `string \| null` | ✓ | Reserved: conversation (thread) id. The data source does not provide it at present, so it is always null; to follow a reply chain, walk up through `referenced_tweet_id`. | | `media` | `array` | ✓ | Image / video URLs, up to 20; may be empty on the first push and filled in by the complete version. | | `complete` | `boolean` | ✓ | Whether this is the complete version. A post is sometimes pushed first in a shortened form (text may be cut, media and the referenced post missing); the complete version follows with the same id and a higher revision, with this set to true. | Only posts from a curated list of KOL accounts are included: original posts, quotes, replies and retweets. Profile edits, follows and similar activity are not part of the API. Accounts are added and removed over time; `GET /v1/topics` has the current list. `data.kind`: `tweet` original post, `quote`, `reply` or `retweet`; for the last three, `data.referenced_tweet_id` is the quoted, replied-to or retweeted post. A post is sometimes pushed first in a shortened form (`data.complete = false`): the text may be cut, media, the referenced post and the language may be missing, and the kind is occasionally corrected from `tweet` to `quote`. The complete version follows with the same `id` and a higher `revision`. Posts are given as published, not translated, and have no `titles`. If you subscribe to `*`, parse each `type` separately. Posts are kept for the last 10 days only: REST queries and stream resumes reach no further back (or your plan's history window, whichever is shorter). **Example: an X post (real data)** ```json { "spec_version": "1.0", "id": "6b150c67e70ade1bb493e0e2", "revision": 1, "action": "created", "topic": "twitter.44196397", "type": "twitter", "source": { "id": "44196397", "name": "@elonmusk (Elon Musk)" }, "published_at": 1796541539, "published_at_ms": 1796541539136, "detected_at_ms": 1796541543941, "data": { "kind": "quote", "tweet_id": "2129475674222317961", "author": { "id": "44196397", "screen_name": "elonmusk", "name": "Elon Musk" }, "text": "Yeah", "lang": "en", "url": "https://x.com/elonmusk/status/2129475674222317961", "referenced_tweet_id": "2129371437043483081", "conversation_id": null, "media": [], "complete": true } } ``` ## Compatibility - Within a major version fields are only **added**, never removed, renamed or retyped. Ignore fields you do not know. - New message types arrive with a new `type`; ignore types you do not handle. - The full JSON Schema is at [GET /v1/schema](https://tokenearly.com/en/developers/rest/schema). --- # My alerts 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. > Source: https://tokenearly.com/en/developers/my-alerts · Docs index: https://tokenearly.com/en/developers/llms.txt · OpenAPI: https://api.tokenearly.com/v1/openapi.json ## Two kinds of data | | Topic events (general stream) | My alerts (this page) | |---|---|---| | What you get | **Every** message of the subscribed topics, untouched by personal settings | Only what is **pushed to you**: filtered by your source switches, keywords, alert language and plan delay set in the dashboard | | Relation to channels | None | The same alerts your Bark, WeCom and other channels receive, one for one | | Format | Structured events, `op = "event"` (see [Event format](https://tokenearly.com/en/developers/events)) | Alert text plus a few structured fields, `op = "alert"` | | Languages | zh / en / ko titles in one event; filled-in titles arrive as a new revision | In your alert language: if the original is in another language you get it first (`label = "original"`), then one follow-up with the translation (`followup = true`) | | How to subscribe | `topics=announcement.binance,news.*` etc. (comma-separated, any combination) | `topics=my_alerts` (a special topic; `*` does not include it) | | After a disconnect | Reconnect with `after` and the server replays | The stream does not replay; catch up with `GET /v1/alerts?after=` | | Retention | Your plan's history days | Last 7 days | > Both can share one WebSocket connection (`topics=my_alerts,announcement.*`); tell them apart by `op`: `event` is a topic event, `alert` a my alert. The same announcement can arrive as an event and as an alert; their ids differ and `ref.event_id` points to the event. ## Turning it on 1. In the dashboard, open Global Notification Management → Notification channels and turn on “Developer API”. While it is off no new notifications are produced (`welcome.my_alerts.channel_enabled` and `channel_enabled` in REST responses tell you). 2. Set up sources, keywords and alert language in the dashboard as usual. Notifications follow those settings exactly; you do not need to tick “Developer API” per source: whenever an alert is pushed to you, the API gets a copy. 3. Connect to `wss://api.tokenearly.com/v1/stream?topics=my_alerts` with any of your API keys, or call [GET /v1/alerts](https://tokenearly.com/en/developers/rest/alerts). Every key of the account sees the same notifications. `my_alerts` is special only on the stream; over REST, `GET /v1/events?topics=my_alerts` treats it as an unknown topic (listed in `access.unknown`), so use `GET /v1/alerts` instead. > Notifications follow your account's plan delay: real time on paid plans, delayed like your other channels on the free tier. ## Message format On the stream each one is `{"op": "alert", "alert": {...}}`; REST returns `{"alerts": [...]}` with identical objects. | Field | Description | |---|---| | `id` | Notification id (24 hex digits, grows with time). Use it as the `after` / `before` cursor; not the same as event ids. | | `category` | Kind of alert: `announcement`, `news`, `twitter`, `signal`, `price_alert`, `contract_movement`. | | `source` | `{id, name}`: source id (e.g. `binance`, `odaily`, an X account's numeric id) and display name. | | `followup` | `true` = a follow-up to an alert you already received (e.g. the translation after the original). | | `lang` | Language of `text` (`zh` / `en` / `ko`) for announcements and news; `null` otherwise. | | `label` | `original` = sent in the original language because it is not your alert language (a translation follows); `translation` = machine translation; `official_translation` = the source's own version in your language (exchange or news outlet), published later; `null` = already in your language when sent (the source is in that language, or the source had already published its own version in your language before the alert went out), or not applicable (e.g. price alerts). Rely on the `label` and `lang` fields rather than parsing the first line of `text`: the wording of that line follows your alert language, and older alerts use an earlier wording. | | `title` | Title as shown on your channels, in your alert language: `【币安(BINANCE)】` for Chinese, `[BINANCE]` or `[WallStreetCN]` for English and Korean. | | `text` | Plain text identical to the body your Bark or WeCom received (with line breaks and the original / translation label line). Only titles are translated: a news summary stays in the source's language unless the source publishes its own version in your language. | | `url` | The link in the alert; for announcements and news the official page in `lang`. | | `titles` | Titles available at send time by language (announcements and news), else `null`. | | `ref` | The topic event this alert is about, `{type, topic, event_id}` (announcements and news); fetch structured data with `GET /v1/events/{event_id}`. `null` for other categories. | | `created_at` | When it was sent (Unix seconds). | ### Example: the original first (your alert language is Chinese, the announcement is in English) ```json { "op": "alert", "alert": { "id": "6af57201e1b0c95f3a7d2e41", "category": "announcement", "source": { "id": "binance", "name": "Binance" }, "followup": false, "lang": "en", "label": "original", "title": "【币安(BINANCE)】", "text": "【原文·英文】\nBinance Will List Fooken (FOO) with Seed Tag Applied\n— — — — — — — — — —\nhttps://www.binance.com/en/support/announcement/detail/abc123\n— — — — — — — — — —\n2026-11-12 16:00:00 (UTC+8)", "url": "https://www.binance.com/en/support/announcement/detail/abc123", "titles": { "en": "Binance Will List Fooken (FOO) with Seed Tag Applied" }, "ref": { "type": "announcement", "topic": "announcement.binance", "event_id": "6af57200e1b0c95f3a7d2e40" }, "created_at": 1794470401 } } ``` ### Example: the follow-up translation (same announcement) ```json { "op": "alert", "alert": { "id": "6af57203e1b0c95f3a7d2e47", "category": "announcement", "source": { "id": "binance", "name": "Binance" }, "followup": true, "lang": "zh", "label": "translation", "title": "【币安(BINANCE)】", "text": "【译文】\n币安将上线 Fooken (FOO) 并添加种子标签\n— — — — — — — — — —\nhttps://www.binance.com/zh-CN/support/announcement/detail/abc123\n— — — — — — — — — —\n2026-11-12 16:00:00 (UTC+8)", "url": "https://www.binance.com/zh-CN/support/announcement/detail/abc123", "titles": { "en": "Binance Will List Fooken (FOO) with Seed Tag Applied", "zh": "币安将上线 Fooken (FOO) 并添加种子标签", "ko": "바이낸스, 시드 태그가 적용된 Fooken(FOO) 상장" }, "ref": { "type": "announcement", "topic": "announcement.binance", "event_id": "6af57200e1b0c95f3a7d2e40" }, "created_at": 1794470403 } } ``` The original and the translation of one announcement are two alerts (different `id`) with the same `ref.event_id`. Each language is followed up at most once; if translation fails there is no follow-up (you already have the original). If the original is already in your alert language there is only one, with `label = null`. ### Example: REST response **GET /v1/alerts?limit=2** ```json { "alerts": [ { "id": "6af57203e1b0c95f3a7d2e47", "category": "announcement", "source": { "id": "binance", "name": "Binance" }, "followup": true, "lang": "zh", "label": "translation", "title": "【币安(BINANCE)】", "text": "【译文】\n币安将上线 Fooken (FOO) 并添加种子标签\n— — — — — — — — — —\nhttps://www.binance.com/zh-CN/support/announcement/detail/abc123\n— — — — — — — — — —\n2026-11-12 16:00:00 (UTC+8)", "url": "https://www.binance.com/zh-CN/support/announcement/detail/abc123", "titles": { "en": "Binance Will List Fooken (FOO) with Seed Tag Applied", "zh": "币安将上线 Fooken (FOO) 并添加种子标签", "ko": "바이낸스, 시드 태그가 적용된 Fooken(FOO) 상장" }, "ref": { "type": "announcement", "topic": "announcement.binance", "event_id": "6af57200e1b0c95f3a7d2e40" }, "created_at": 1794470403 }, { "id": "6af57201e1b0c95f3a7d2e41", "category": "announcement", "source": { "id": "binance", "name": "Binance" }, "followup": false, "lang": "en", "label": "original", "title": "【币安(BINANCE)】", "text": "【原文·英文】\nBinance Will List Fooken (FOO) with Seed Tag Applied\n— — — — — — — — — —\nhttps://www.binance.com/en/support/announcement/detail/abc123\n— — — — — — — — — —\n2026-11-12 16:00:00 (UTC+8)", "url": "https://www.binance.com/en/support/announcement/detail/abc123", "titles": { "en": "Binance Will List Fooken (FOO) with Seed Tag Applied" }, "ref": { "type": "announcement", "topic": "announcement.binance", "event_id": "6af57200e1b0c95f3a7d2e40" }, "created_at": 1794470401 } ], "has_more": false, "next_cursor": null, "cursor_param": "before", "channel_enabled": true } ``` ## Catching up after a disconnect 1. Store the `id` of every alert you process. 2. After reconnecting and receiving `welcome`, call `GET /v1/alerts?after=` (oldest first); while `has_more = true`, continue from the last `id`. 3. The catch-up and live pushes can overlap: dedupe on `id`. Notifications are kept for 7 days; anything older is gone. ## Subscribing and unsubscribing | Action | How | |---|---| | My alerts only | `?topics=my_alerts` | | My alerts plus topic events | `?topics=my_alerts,announcement.*,news.odaily` | | Subscribe / unsubscribe later | `{"op":"subscribe","topics":["my_alerts"]}` / `{"op":"unsubscribe","topics":["my_alerts"]}` | | `unsubscribe` `["*"]` | Removes topic events only; alerts stay (unsubscribe `my_alerts` explicitly to stop them) | `my_alerts.subscribed` in the `subscribed` reply is the connection's current state. ## Full examples **Python** ```python import asyncio, json, os, time import requests # pip install requests import websockets # pip install websockets KEY = os.environ["TOKENEARLY_API_KEY"] H = {"Authorization": f"Bearer {KEY}"} STREAM = "wss://api.tokenearly.com/v1/stream?topics=my_alerts" # my alerts only; add topics (e.g. ",announcement.*") to also get events ALERTS = "https://api.tokenearly.com/v1/alerts" FATAL = {4001, 4003} # bad / expired key, no permission: fix it, do not retry last_id = None # last alert id you processed (store it durably in production) seen = set() # ids already handled: the REST catch-up and the stream can overlap def handle(n): global last_id if n["id"] in seen: return seen.add(n["id"]) if not last_id or n["id"] > last_id: # ids grow with time; only move the cursor forward last_id = n["id"] # n["text"] is exactly what your Bark / WeCom received; n["label"] says original / translation print(n["category"], n["source"]["name"], n["label"], "follow-up" if n["followup"] else "first") print(n["text"]) if n["ref"]: # announcements and news: the topic event behind this alert print("event:", n["ref"]["event_id"]) # GET /v1/events/{event_id} for the structured data def catch_up(): """Notifications sent while you were offline: the stream does not replay them.""" if not last_id: return while True: r = requests.get(ALERTS, params={"after": last_id, "limit": 200}, headers=H, timeout=10) if r.status_code == 429: time.sleep(int(r.headers.get("Retry-After", "3"))) continue r.raise_for_status() page = r.json() for n in page["alerts"]: # oldest first when `after` is given handle(n) if not page["has_more"]: return time.sleep(int(r.headers.get("X-RateLimit-Reset", "3"))) # respect the per-key interval async def main(): delay = 1 while True: try: async with websockets.connect(STREAM, additional_headers=H) as ws: async for raw in ws: msg = json.loads(raw) op = msg["op"] if op == "welcome": delay = 1 if not msg["my_alerts"]["channel_enabled"]: print("Turn on the Developer API switch under Notification channels in the dashboard.") await asyncio.to_thread(catch_up) # blocking HTTP off the event loop elif op == "alert": handle(msg["alert"]) elif op == "error": print("server error:", msg["code"], msg["message"]) except websockets.ConnectionClosed as e: if e.rcvd and e.rcvd.code in FATAL: raise SystemExit(f"stopped: close code {e.rcvd.code}") if e.rcvd and e.rcvd.code == 4029: delay = max(delay, 5) # slot not free yet except Exception as e: print("disconnected:", e) await asyncio.sleep(delay) delay = min(delay * 2, 60) # exponential backoff asyncio.run(main()) ``` **Node.js** ```javascript // npm install ws (Node.js 18+ for fetch) const WebSocket = require("ws"); const KEY = process.env.TOKENEARLY_API_KEY; const H = { Authorization: `Bearer ${KEY}` }; const STREAM = "wss://api.tokenearly.com/v1/stream?topics=my_alerts"; const ALERTS = "https://api.tokenearly.com/v1/alerts"; const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); let lastId = null; // last alert id processed (persist it in production) const seen = new Set(); // REST catch-up and the stream can overlap function handle(n) { if (seen.has(n.id)) return; seen.add(n.id); if (!lastId || n.id > lastId) lastId = n.id; console.log(n.category, n.source.name, n.label, n.followup ? "follow-up" : "first"); console.log(n.text); // exactly what your Bark / WeCom received } async function catchUp() { if (!lastId) return; // the stream does not replay my alerts for (;;) { const r = await fetch(`${ALERTS}?after=${lastId}&limit=200`, { headers: H }); if (r.status === 429) { await sleep(1000 * Number(r.headers.get("retry-after") || 3)); continue; } if (!r.ok) throw new Error(`HTTP ${r.status}`); const page = await r.json(); page.alerts.forEach(handle); // oldest first when `after` is given if (page.has_more) await sleep(1000 * Number(r.headers.get("x-ratelimit-reset") || 3)); // respect the per-key interval else return; } } function connect(delay = 1) { const ws = new WebSocket(STREAM, { headers: H }); ws.on("message", (raw) => { const msg = JSON.parse(raw); if (msg.op === "welcome") { delay = 1; if (!msg.my_alerts.channel_enabled) console.log("Turn on the Developer API switch in the dashboard."); catchUp().catch((e) => console.error("catch-up failed:", e.message)); // runs alongside live messages; dedupe by id } else if (msg.op === "alert") { handle(msg.alert); } else if (msg.op === "error") { console.error("server error:", msg.code, msg.message); } }); ws.on("close", (code) => { if (code === 4001 || code === 4003) return console.error("stopped: close code", code); // fix the key / plan first const wait = code === 4029 ? Math.max(delay, 5) : delay; // 4029: the slot may take a few seconds to free up setTimeout(() => connect(Math.min(wait * 2, 60)), wait * 1000); }); ws.on("error", (e) => console.error("socket error:", e.message)); } connect(); ``` --- # List events Query past events by topic, with cursor pagination and catch-up. > Source: https://tokenearly.com/en/developers/rest/list-events · Docs index: https://tokenearly.com/en/developers/llms.txt · OpenAPI: https://api.tokenearly.com/v1/openapi.json `GET https://api.tokenearly.com/v1/events` Returns the newest events first. With `after` the order flips to oldest first and you get everything after that event, which is how you catch up after a disconnect; with `before` you page further back. When `has_more` is true, pass `next_cursor` as the parameter named in `cursor_param`. The `access` object tells you which of the requested topics you may read (granted), which you may not (denied) and which do not exist (unknown). How far back you can go is set by your plan's history window. **Requires an API key** ## Parameters | Parameter | In | Type | required | Description | |---|---|---|---|---| | `topics` | query | string | | Comma-separated, any combination (e.g. `announcement.binance,news.*`); each item is a topic or pattern: `announcement.binance`, `announcement.*`, `news.*`, `signal.*`, `twitter.*`, `*`. Omit for every topic your key can read. | | `after` | query | string | | Return events newer than this event id, oldest first. Use it to catch up after a disconnect. | | `before` | query | string | | Return events older than this event id, newest first. Use it to page backwards. | | `updated_after` | query | integer | | Return events that got a new revision after this Unix time (seconds), even if the event itself is older, ordered by event id. Use it to pick up updates to older events missed while offline. To page, keep `updated_after` and pass the previous `next_cursor` as `after`. Cannot be combined with `before`. Omitting it or passing 0 means it is not used (a normal newest-first list). | | `limit` | query | integer | | Page size, 1–200, default 50. | | `listings_only` | query | boolean | | Set to true to return only exchange announcements classified as new listings (`data.listing.is_listing = true`); topics of other types return nothing. Works with `after` / `before` / `updated_after`. Because it filters on the classification, a page can hold fewer than `limit` events while `has_more` is still true: keep paging with `next_cursor` until `has_more` is false. | ## Example request **cURL** ```bash curl "https://api.tokenearly.com/v1/events?topics=announcement.*,news.odaily&limit=5" \ -H "Authorization: Bearer $TOKENEARLY_API_KEY" ``` **Python** ```python import os, requests resp = requests.get( "https://api.tokenearly.com/v1/events?topics=announcement.*,news.odaily&limit=5", headers={"Authorization": f"Bearer {os.environ['TOKENEARLY_API_KEY']}"}, timeout=10, ) resp.raise_for_status() print(resp.json()) ``` **Node.js** ```javascript // Node 18+ (built-in fetch) async function main() { const resp = await fetch("https://api.tokenearly.com/v1/events?topics=announcement.*,news.odaily&limit=5", { headers: { Authorization: `Bearer ${process.env.TOKENEARLY_API_KEY}` }, }); const body = await resp.json(); if (!resp.ok) throw new Error(`${body.error.code}: ${body.error.message}`); console.log(body); } main().catch((err) => { console.error(err); process.exit(1); }); ``` **Go** ```go package main import ( "fmt" "io" "net/http" "os" ) func main() { req, _ := http.NewRequest("GET", "https://api.tokenearly.com/v1/events?topics=announcement.*,news.odaily&limit=5", nil) req.Header.Set("Authorization", "Bearer "+os.Getenv("TOKENEARLY_API_KEY")) resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(resp.Status, string(body)) } ``` ## Example response ```json { "events": [ { "spec_version": "1.0", "id": "6b150c67e70ade1bb493e0e2", "revision": 1, "action": "created", "topic": "twitter.44196397", "type": "twitter", "source": { "id": "44196397", "name": "@elonmusk (Elon Musk)" }, "published_at": 1796541539, "published_at_ms": 1796541539136, "detected_at_ms": 1796541543941, "data": { "kind": "quote", "tweet_id": "2129475674222317961", "author": { "id": "44196397", "screen_name": "elonmusk", "name": "Elon Musk" }, "text": "Yeah", "lang": "en", "url": "https://x.com/elonmusk/status/2129475674222317961", "referenced_tweet_id": "2129371437043483081", "conversation_id": null, "media": [], "complete": true } }, { "spec_version": "1.0", "id": "6b150bf2d0e4e92d8481211f", "revision": 3, "action": "updated", "topic": "news.panews", "type": "news", "source": { "id": "panews", "name": "PANews" }, "published_at": 1796541408, "published_at_ms": 1796541408000, "detected_at_ms": 1796541426000, "data": { "titles": { "zh": "DWF Labs合伙人:比特币已挺过风暴,若Strategy没有崩盘,市场或已触底", "en": "DWF Labs Partner: Bitcoin Has Weathered the Storm; If Strategy Hasn't Collapsed, the Market May Have Bottomed", "ko": "DWF Labs 파트너: 비트코인은 폭풍을 견뎌냈으며, 만약 Strategy가 붕괴되지 않았다면 시장은 이미 바닥에 도달했을 수 있다" }, "original_lang": "zh", "translated_langs": [ "ko" ], "summary": "PANews 12月6日消息,DWF Labs 合伙人 Andrei Grachev 发文预测,比特币已经受住这轮市场风暴,如果 Strategy 没有崩盘,那么市场可能已经触底。", "url": "https://www.panewslab.com/zh/articles/01a24a36-6342-7407-b95e-475df0dce169" } }, { "spec_version": "1.0", "id": "6b0ff643d0e4e92d84810499", "revision": 3, "action": "updated", "topic": "announcement.gate", "type": "announcement", "source": { "id": "gate", "name": "Gate.io" }, "published_at": 1796208195, "published_at_ms": 1796208195000, "detected_at_ms": 1796208195896, "data": { "titles": { "zh": "Gate 已上线 RITUAL 合约交易、杠杆借贷交易、交易机器人、跟单、闪兑、定投功能", "en": "Gate Now Supports RITUAL for Futures Trading, Margin Loans, Bots, Copy, Convert, and Auto-Invest", "ko": "Gate는 RITUAL 계약 거래, 레버리지 대출 거래, 트레이딩 봇, 팔로우 트레이딩, 스왑, 정기 투자 기능을 출시했습니다." }, "original_lang": "zh", "translated_langs": [ "ko" ], "url": "https://www.gate.io/article/103112", "exchange_category": "listing", "listing": { "is_listing": true, "market": "futures" }, "symbols": [] } }, { "spec_version": "1.0", "id": "6b055216d0e4e92d8480d1e5", "revision": 1, "action": "created", "topic": "signal.binance_alpha", "type": "signal", "source": { "id": "binance_alpha", "name": "Binance Alpha" }, "published_at": 1795510800, "published_at_ms": 1795510800000, "detected_at_ms": 1795510806000, "data": { "signal_type": "binance_alpha", "level": "info", "titles": { "zh": "🆕 Binance Alpha 新币上线: SHARE (BSC)", "en": "🆕 Binance Alpha New Token: SHARE (BSC)", "ko": "🆕 바이낸스 알파 신규 토큰: SHARE (BSC)" }, "contents": { "zh": "代币: SHARE (ShareX)\n链: BSC\n价格: $0.0572\n合约: 0xe5e5e1d77125fc910d8f39cdd55b7a24ec69ce34\nAlpha ID: ALPHA_1287\n持有者: 61649\n市值: $56.19M", "en": "Token: SHARE (ShareX)\nChain: BSC\nPrice: $0.0572\nContract: 0xe5e5e1d77125fc910d8f39cdd55b7a24ec69ce34\nAlpha ID: ALPHA_1287\nHolders: 61649\nMarket Cap: $56.19M", "ko": "토큰: SHARE (ShareX)\n체인: BSC\n가격: $0.0572\n컨트랙트: 0xe5e5e1d77125fc910d8f39cdd55b7a24ec69ce34\nAlpha ID: ALPHA_1287\n보유자: 61649\n시가총액: $56.19M" }, "url": "https://www.binance.com/en/alpha/bsc/0xe5e5e1d77125fc910d8f39cdd55b7a24ec69ce34", "symbols": [ "SHARE" ], "tags": [ "new_listing", "bsc" ] } } ], "has_more": true, "next_cursor": "6b055216d0e4e92d8480d1e5", "cursor_param": "before", "access": { "granted": [ "announcement.gate", "news.panews", "signal.binance_alpha", "twitter.44196397" ], "denied": [], "unknown": [] } } ``` ## Errors | Code | HTTP | Description | |---|---|---| | `missing_api_key` | 401 | No key sent. Use `Authorization: Bearer `. | | `invalid_api_key` | 401 | The key does not exist, or it was reset or revoked. | | `key_expired` | 401 | The trial key has expired. Apply for a new trial key, or subscribe and create a regular key. | | `plan_required` | 403 | Your plan does not include the developer API, or this part of it. | | `ip_not_allowed` | 403 | The key has an IP allowlist and the request came from an address outside it. | | `invalid_cursor` | 400 | `after` / `before` is not a valid id (an event id for events, an alert id for my_alerts), both were sent, or (events only) `updated_after` was combined with `before`. | | `invalid_parameter` | 400 | A parameter has the wrong type or value (e.g. `limit` out of range). | | `rate_limited` | 429 | Over this key's request rate (REST and MCP combined; the interval is `limits.rest_interval_seconds` in `/v1/me`); wait `Retry-After` seconds and retry. | ## Which topics you can query Put topic ids from the table below in `topics`, or use the patterns `announcement.*`, `news.*`, `signal.*`, `twitter.*` and `*`. Whether you may read a topic depends on your plan, and the `access` object in the response tells you topic by topic: `granted` (readable and included), `denied` (no access), `unknown` (no such topic). **Example: topics=announcement.binance,announcement.upbit,announcement.nope** ```json { "access": { "granted": [ "announcement.binance" ], "denied": [ "announcement.upbit" ], "unknown": [ "announcement.nope" ] } } ``` | Topic id | Name | Type | |---|---|---| | `announcement.binance` | Binance | Exchange announcements | | `announcement.okx` | OKX | Exchange announcements | | `announcement.mexc` | MEXC | Exchange announcements | | `announcement.bitget` | Bitget | Exchange announcements | | `announcement.gate` | Gate.io | Exchange announcements | | `announcement.huobi` | Huobi | Exchange announcements | | `announcement.bybit` | Bybit | Exchange announcements | | `announcement.kucoin` | KuCoin | Exchange announcements | | `announcement.upbit` | Upbit | Exchange announcements | | `announcement.bithumb` | Bithumb | Exchange announcements | | `news.odaily` | Odaily | News | | `news.jinse` | Jinse Finance | News | | `news.theblockbeats` | TheBlockBeats | News | | `news.foresight` | Foresight News | News | | `news.panews` | PANews | News | | `news.coinmarketcap` | CoinMarketCap | News | | `news.wallstreetcn` | WallStreetCN | News | | `news.theblock` | The Block | News | | `signal.binance_alpha` | Binance Alpha | Signals | | `twitter.44196397` | @elonmusk (Elon Musk) | X (Twitter) KOL posts | | `twitter.902926941413453824` | @cz_binance (CZ 🔶 BNB) | X (Twitter) KOL posts | | `twitter.574032254` | @coinbase (Coinbase 🛡️) | X (Twitter) KOL posts | | `twitter.1422537905885442055` | @CoinbaseAssets (Coinbase Assets 🛡️) | X (Twitter) KOL posts | | `twitter.720487892670410753` | @CoinbaseMarkets (Coinbase Markets 🛡️) | X (Twitter) KOL posts | | `twitter.877807935493033984` | @binance (Binance) | X (Twitter) KOL posts | | `twitter.295218901` | @VitalikButerin (vitalik.eth) | X (Twitter) KOL posts | | `twitter.1003840309166366721` | @heyibinance (Yi He) | X (Twitter) KOL posts | | `twitter.902839045356744704` | @justinsuntron (H.E. Justin Sun 👨‍🚀 🌞) | X (Twitter) KOL posts | | `twitter.900935123968737281` | @hebi555 (何币) | X (Twitter) KOL posts | | `twitter.1403881130802225152` | @BTCdayu (大宇) | X (Twitter) KOL posts | | `twitter.2985599460` | @star_okx (Star_OKX) | X (Twitter) KOL posts | | `twitter.1533037218444476416` | @xincctnnq (币圈女菩萨|Pizza披萨🍕) | X (Twitter) KOL posts | | `twitter.25073877` | @realDonaldTrump (Donald J. Trump) | X (Twitter) KOL posts | | `twitter.1686901686185721857` | @TrumpDailyPosts (Commentary Trump Daily Posts) | X (Twitter) KOL posts | | `twitter.20736511` | @nayibbukele (Nayib Bukele) | X (Twitter) KOL posts | | `twitter.1844002277218242560` | @Plasma | X (Twitter) KOL posts | | `twitter.2414580907` | @pauliepunt (Paul) | X (Twitter) KOL posts | | `twitter.867617849208037377` | @okx (OKX) | X (Twitter) KOL posts | | `twitter.1138033434` | @Rewkang (Andrew Kang) | X (Twitter) KOL posts | | `twitter.1789908971953799168` | @Aster_DEX (Aster 🥷) | X (Twitter) KOL posts | | `twitter.1948234340556763136` | @zakk_okx (Zakk 🟪 OKX AI) | X (Twitter) KOL posts | | `twitter.357312062` | @Bitcoin | X (Twitter) KOL posts | | `twitter.973261472` | @blknoiz06 (Ansem 🐂🀄️) | X (Twitter) KOL posts | | `twitter.132749200` | @OxSunNFT (0xSun ❤️ Memecoin) | X (Twitter) KOL posts | | `twitter.844304603336232960` | @MustStopMurad (Murad 💹🧲) | X (Twitter) KOL posts | | `twitter.1195728139898376193` | @0xcryptowizard (0xWizard) | X (Twitter) KOL posts | | `twitter.992590209752629249` | @notEezzy (Eezzy 🧸) | X (Twitter) KOL posts | | `twitter.1800348208461205504` | @xiaomucrypto (新股神白毛股神) | X (Twitter) KOL posts | | `twitter.16228398` | @mcuban (Mark Cuban) | X (Twitter) KOL posts | | `twitter.1189381231198134272` | @CookerFlips (Cooker.hl \| 版本之子 \| (Theo Arc)) | X (Twitter) KOL posts | | `twitter.1279711663264894977` | @DekuKing1 (0x易经(刘彻版)) | X (Twitter) KOL posts | | `twitter.725984371946082304` | @XXAntiWar (XX) | X (Twitter) KOL posts | | `twitter.1462727797135216641` | @lookonchain (Lookonchain) | X (Twitter) KOL posts | | `twitter.1466673394649559040` | @huahuayjy (花花) | X (Twitter) KOL posts | | `twitter.1401718840535379970` | @hellosuoha (梭教授说) | X (Twitter) KOL posts | | `twitter.1453603581932687368` | @laofeiyyds (比特币老肥.btc(敏感肥)) | X (Twitter) KOL posts | | `twitter.1852674305517342720` | @aixbt_agent (aixbt) | X (Twitter) KOL posts | | `twitter.1279918106111025153` | @assetdash (Dash News) | X (Twitter) KOL posts | | `twitter.169686021` | @kanyewest (ye) | X (Twitter) KOL posts | | `twitter.1483495485889564674` | @bwenews (方程式新闻 BWEnews 🏎️) | X (Twitter) KOL posts | | `twitter.1052454006537314306` | @BNBCHAIN (BNB Chain) | X (Twitter) KOL posts | | `twitter.1451036242431262720` | @binancezh (币安Binance华语) | X (Twitter) KOL posts | | `twitter.1940360837547565056` | @aleabitoreddit (Serenity) | X (Twitter) KOL posts | To see access for every topic at once, call [GET /v1/topics](https://tokenearly.com/en/developers/rest/topics) with your key; each topic carries an `accessible` flag. ## Catching up after a disconnect Two steps: page with `after=` until `has_more` is false to get new events; then call with `updated_after=