# AlphAI: full reference for LLM agents > Financial news for AI agents and trading bots. Every article is enriched > with per-ticker analysis, a category, and a 1-10 relevance score, then > served over REST and MCP. This file is the expanded companion to > /llms.txt: everything an agent needs to integrate, in one fetch. > Machine-readable OpenAPI 3.1 spec: https://api.alphai.io/api/schema/ ## Authentication - Create a free API key at https://alphai.io/account/api-keys (no credit card). - Send it on every request: `Authorization: Bearer ak_live_...` - Send API traffic to https://api.alphai.io (direct host, no browser-oriented bot filtering). The same key also works on https://mcp.alphai.io/mcp. - Keys go in the Authorization header only, never in a query parameter. ## Rate limits and tiers Two layers per account: a per-minute burst cap and a per-day volume cap. A request passes only if both are under budget. - Free: 20/min, 100/day, 30-day news archive, 1 key. For evaluation and personal non-commercial use. - Basic: 60/min, 10,000/day, 90-day archive, 1 key. Licensed for internal commercial use. - Pro: 150/min, 100,000/day, 180-day archive, 5 keys, page_size=50. Adds redistribution rights for the enriched feed. Every keyed response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (the per-day layer; Reset is epoch seconds of the next 00:00 UTC). A 429 carries `Retry-After` and a JSON `extra` block naming your tier, its caps, and upgrade options. Paging past your plan's archive horizon returns 403 with `extra.reason = "archive_horizon"`. Query parameters are validated strictly: an unknown or misspelled parameter returns 400 naming the field (`limit` and `per_page` point to `page_size`; `offset` and `page` point to `cursor`). ## REST endpoints Base URL: https://api.alphai.io. All endpoints are GET and return JSON. ### News - `GET /api/news/` — the enriched feed, newest first, cursor-paginated. Params: `cursor` (opaque, from a prior `next_cursor`; omit for the newest page), `symbol` (e.g. NVDA), `category` (single, CSV, or repeated; OR semantics), `exclude_categories` (same forms), `min_relevance` (1-10, default 4), `page_size` (10 default, 50 on Pro), `collapse=story` (one row per story instead of every syndicated reprint, adds `story_id`, `sources_count`, `sources`; `collapse_stories=true` is an alias), `from_date` / `to_date` (publication time, ISO-8601), `source_type` (`gdelt` for press, `sec_form4`, `sec_form8k`, `sec_form6k`), `item` (an 8-K item code such as `5.02`; implies `source_type=sec_form8k`), `event_type` (a corporate event such as `buyback`, `m_and_a`, `exec_change`), `sort` (`published` by default; `ingested` polls for new rows in arrival order, oldest first, with `next_cursor` always returned and an empty `results` meaning you are caught up). In the default order, `next_cursor: null` means the end of the feed. - `GET /api/news/search/` — full-text search over the feed. `q` (2-200 characters; `query` is an alias) is matched against titles, summaries and the entity names the enrichment extracted. Bare words are all required, `"a phrase"` must appear in order, `-word` excludes, `OR` separates alternatives; one typo is tolerated in words of five or more letters. Results are ranked (best match first, newest first among equal matches), bounded to the best 200 and cursor-paginated. `symbol`, `category`, `source_type`, `item`, `min_relevance`, `from_date`, `to_date` and `collapse` filter on top, as on `/api/news/`. `query.mode` says how the words were read: `strict`, `broadened` (a 3+-word query found fewer than 5 strict rows, so rows matching at least two words are returned; check `search_match.terms_matched`), `no_match` or `no_terms`. The searched window is your plan's archive horizon. A 503 with `extra.reason = "search_unavailable"` affects search only; retry it later. - `GET /api/news/trending/` — top stories of the trailing 48h, relevance >= 8, fixed size 10, reprints collapsed. No params. - `GET /api/news/insider/` — SEC Form 4 insider-transaction feed only. One row per filing event with total shares, volume-weighted average price, and total value. Params: `cursor`, `symbol`, `min_relevance`, `is_10b5_1`, `decision` (`discretionary`, `plan_like` or `unknown`; only sales are labelled), `from_date`, `to_date`, `sort` (`ingested` to watch for new filings: a Form 4 arrives days after the trade it reports), `page_size`, `format=csv` (the same feed as a file, up to Free 500, Basic 2,000 or Pro 10,000 rows). - `GET /api/news/insider/clusters/` — episodes in which several insiders of one issuer bought on the open market together: purchases at most 10 days apart are chained into one episode, cut at 30 days. Each buyer carries a `role` (`independent`, `plan_like`, `unpriced`, `duplicate_of`), so IPO or PIPE allocations, ESPP/DRIP lots and one trade reported by two owners do not count as a cluster. Params: `days` (1-90, default 30, measured on `known_at`, when the latest filing reached EDGAR; Free reaches 30 days, Basic and Pro 90), `min_buyers` (2-10), `min_usd`, `pattern` (`open_market` by default, `plan_or_offering`, `holders_only`, `all`), `symbol`, `sort` (`recent`, `buyers`, `value`), `cursor`, `page_size`. - `GET /api/news/macro/` — market-wide macro feed: the `macro_economy`, `commodities` and `geopolitics` categories in one stream (FOMC decisions, CPI and jobs prints, oil and gold, geopolitical risk). Same row shape as `/api/news/`. Params: `cursor`, `category` (a subset of the three), `min_relevance`, `page_size`, `sort`, `from_date`, `to_date`. Most rows carry an empty `tickers` list by design, so this feed takes no `symbol`. - `GET /api/news/brief/` — one compact brief across your tickers: recent news grouped by story, a separate SEC Form 4 / 8-K / 6-K filings section, and each ticker's next confirmed earnings date. Params: `tickers` (required, 1-100, comma-separated or repeated), `hours` (1-168, default 24), `limit` (stories per section, default 20). A ranked snapshot, not a delta since your last call; a `*_truncated` flag marks a selection. Unrecognized symbols are returned in `unknown_tickers`. Every tier. - `GET /api/news/{uid}/` — one article by its 16-hex `uid`. - `GET /api/news/{uid}/related/` — up to 6 related articles (shared ticker first, then same-category backfill). ### Stories A story is one event reported by two or more publishers, with a summary AlphAI wrote from its articles. The `story_id` on a feed row is the same key. - `GET /api/stories/top/` — the strongest stories of the trailing 48h (published summary, `importance >= 7`), ranked by importance, breadth of coverage and freshness, one slot per ticker. Up to 50, no params. `/api/news/trending/` ranks single articles; this ranks stories. - `GET /api/stories/` — stories newest first by their latest article. Params: `cursor`, `page_size` (1-50, default 20). Archive depth is tiered as on the feeds. - `GET /api/stories/{story_id}/` — one story: the summary, `why_it_matters`, `key_facts` (each with its publisher and `source_uid`), the per-ticker read and open questions, inside a lookup `status`: `found`, `merged` (fetch `redirect_to`) or `not_a_story` (one publisher carried the event; `article` names it). `not_a_story` is the normal answer for most feed rows. An unknown id is a 404. `summary_state` is `published`, `stale` (articles joined after the summary; a rewrite is queued) or `preparing` (no summary yet). - `GET /api/stories/{story_id}/materials/` — every article behind a story, oldest first. Params: `cursor`, `page_size`. A 404 unless the story's status is `found`. ### Calendar - `GET /api/calendar/` — the forward schedule of US macro releases (FOMC decisions and minutes, CPI, PPI, nonfarm payrolls, GDP, PCE, retail sales, jobless claims, JOLTS), sourced from the agencies' own schedule pages. Params: `from_date`, `to_date` (`[from, to)`, defaults today → +7 days, span capped at 400 days), `event_key` (comma-separated series: `fomc_decision`, `fomc_minutes`, `cpi`, `ppi`, `nfp`, `gdp`, `pce`, `retail_sales`, `jobless_claims`, `jolts`), `importance` (`high`, `medium`, `low`), `country` (`US`, the only value today). No pagination. Each occurrence carries a stable `uid` (`US-CPI-2026-07`) that survives reschedules, plus `schedule_status` and `phase` (`upcoming`/`elapsed` — it says the scheduled moment passed, not that the agency published). Pair it with `/api/news/macro/` to read what a release meant once it is out. - `GET /api/calendar/earnings/` — who reports when, by day: only dates the source marks as confirmed, one row per company on a day, most recent news first within a day. Params: `from_date`, `to_date` (New York market days, `[from, to)`, defaults today → +7 days, span capped at 45 days), `ticker`, `sector`, `detail`. `session` is `before_open`, `after_close` or null, never an exact time; `status` turns to `reported` once the SEC filing lands. Today and the 7 days before it also list the companies whose report we read; set `from_date` to reach them. `detail=full` adds `previous_read`, guidance and what to watch from our AI read of the previous report, not an analyst estimate, and `report_read`, the uid, listing, period and verdict of our read of the report the row is about. ### Symbols and earnings - `GET /api/symbols/` — all active symbols (~10k), alphabetical. Params: `limit`, `offset`, `search` (ticker prefix, company name or brand name, best matches first). Cache the full list aggressively. - `GET /api/symbols/{ticker}/` — one symbol with sector, industry, exchange, country, currency. - `GET /api/symbols/{ticker}/sentiment-summary/` — 7-day bullish/neutral/ bearish counts from the enriched news flow, with per-day buckets. Insider template rows are excluded (press coverage only). - `GET /api/symbols/{ticker}/insider-summary/` — 30-day SEC Form 4 rollup: buy/sell counts, dollar volumes, share of 10b5-1 plan sales, top insiders by absolute net value. - `GET /api/symbols/{ticker}/insider-trades/` — the full Form 4 event history for one ticker plus chart aggregates in one request. Params: `cursor`, `side`, `page_size`. The first page also carries `summary` (3-month, 12-month, all-time windows and the most active insiders), `series` and `series_weekly` (zero-filled monthly and weekly buckets, trailing 12 months) and `chart_events`; those are `null` on cursor pages. Side semantics here follow the value flow, so code D counts as a sell (the feed labels D as `other` — read `transaction_code` to tell them apart). - `GET /api/symbols/{ticker}/earnings/` — every AlphAI earnings read for the ticker, newest first (up to 20), plus its next confirmed report date. An LLM writes each read from the company's own SEC filing (an 8-K item 2.02, or a foreign issuer's 6-K earnings release) within minutes of it reaching EDGAR. Every number is checked against the filing text; a row that does not match or add up is dropped, and `numbers_verified_from_document: false` marks a read where a figure could not be matched. Check a figure in the filing before acting on it. Reads start in late July 2026, so most tickers have one or two. Share classes are bridged. - `GET /api/symbols/{ticker}/earnings/latest/` — a pointer to the newest read; the full analysis is the `earnings` object of `/api/news/{uid}/`. - `GET /api/symbols/{ticker}/peers/` — up to 10 same-industry tickers that carry recent news. - `GET /api/symbols/directory/` — most-covered tickers plus one card per sector. - `GET /api/symbols/sectors/{slug}/` — one sector's most-covered tickers (slug like `financial-services`). ### Radar - `GET /api/signals/snapshot/` — tickers getting more news coverage than usual, ranked, with the headlines behind each score. It describes news activity, not a price forecast or a confirmed alert. Params: `window` (`4h`, or `24h` by default), `scope` (`market` by default, or `watchlist` for your saved list), `market` (`all`, `us_equity`, `crypto`, `international`), `ticker`, `tickers`, `search`, `sentiment` (`all`, `positive`, `negative`, `mixed`), `min_z`, `sort` (`score` by default, `stories`, `model_stories`, `sentiment`, `sentiment_change`), `order`, `limit`, `cursor`. Snapshots refresh every minute; Free sees them 60 minutes late, Basic 15, Pro with no added delay, and `as_of` is the cutoff. Keep filters and `limit` unchanged while following `next_cursor`. Each row carries `event_context`: the issuer's recent 8-K / 6-K filings and open-market insider clusters. ### Coverage - `GET /api/coverage/` — the coverage passport. For each data source (`publisher_news`, `sec_form4`, `sec_form8k`, `sec_form6k`, `earnings_reads`, `earnings_schedule`, `economic_calendar`): earliest and latest row, last ingest, row count, cadence, a `history_note` naming the thin months, known limits, the per-plan archive horizon and a `stale` flag. Computed once a day. Read it before backtesting: `first_row_at` is the earliest row held, not the start of dense coverage. ### Ticker forms - US equities and ETFs: bare symbol (`AAPL`, `SPY`). - Crypto: `-USD` (`BTC-USD`, `ETH-USD`). The bare `BTC` is a US ETF. - Foreign listings: Yahoo-style suffix (`VOD.L`, `7203.T`, `0700.HK`). Dual-listed companies prefer the US ADR for news (Toyota news is on `TM`). ## Example Request: curl -H "Authorization: Bearer ak_live_YOUR_KEY" \ "https://api.alphai.io/api/news/?symbol=NVDA&min_relevance=7" Response (truncated): { "results": [ { "original": { "uid": "788e477c66f3849b", "title": "Nvidia unveils next-generation data-center GPU", "url": "https://example-outlet.com/article", "summary": "AI-generated summary, safe to redistribute...", "time_published": "2026-07-09T14:32:00Z", "source": "Example Outlet", "source_domain": "example-outlet.com" }, "enrichment": { "category": "technology", "tickers": ["NVDA"], "relevance_score": 8, "ai_trading_insights": { "ticker_analysis": [ { "ticker": "NVDA", "relevance_context": "...", "impact_analysis": { "sentiment": "positive", "price_impact_prediction": "...", "confidence": "high", "reasoning": "..." } } ], "news_trading_value": { "actionability_score": "high", "information_novelty": 8 } }, "news_context_enhancement": { "background_context": "..." } }, "story_id": null, "sources_count": null, "sources": null } ], "next_cursor": "opaque-cursor-string" } Fetch the next (older) page by passing `next_cursor` back as `?cursor=`. ## Data semantics - `relevance_score` (1-10) rates the article's trading value, not the company: 1-2 no trading relevance, 3-4 derivative content about known events, 5-6 macro or sector datapoints and minor-but-real company news, 7-8 real company news with a fresh catalyst, 9-10 primary, material, newly disclosed. Deterministic: same article, same score. SEC Form 4 rows are scored from the transaction itself (size, buy vs sell, 10b5-1 or not). - Categories (14): earnings, mergers_acquisitions, regulation, macro_economy, sector_analysis, market_movers, technology, commodities, crypto, ipo, geopolitics, insider, corporate_actions, other. `insider` is SEC Form 4 transactions only; `market_movers` means the price move itself is the story. - Per-ticker sentiment is `positive` / `neutral` / `negative` with a confidence of `high` / `medium` / `low`. - `information_novelty` (1-10) is separate from relevance: a mega-cap post-earnings recap is high relevance but low novelty. - Tickers are validated at enrichment time against the article text, so `enrichment.tickers` only contains symbols present in `/api/symbols/`. - `story_id` is one key across feed rows, MCP results and `/api/stories/{story_id}/`. - Full article bodies are never exposed (copyright). `original.summary` is AI-generated and safe to redistribute. ## MCP server - Endpoint: https://mcp.alphai.io/mcp (Streamable HTTP). - Auth: OAuth 2.1 with dynamic client registration in the browser, or the same `ak_live_...` API key sent as an `Authorization: Bearer` header where no browser is available (n8n, cron agents, CI). Plan limits match REST. - Setup walkthroughs per client and the full notes for every tool: https://alphai.io/mcp Tools (22): News - `alphai_news_search` — free-text `query` (titles, summaries and entity names; `"a phrase"`, `-word` and `OR` refine it) or structured filters (tickers, category, source type, 8-K item, date range, min relevance). Cursor-paginated; `collapse_stories=true` for one row per story; `sort="ingested"` polls for new arrivals and cannot be combined with `query`. - `alphai_ticker_news` — latest news for one ticker, insider filings included; `include_insider=false` for a pure non-insider feed. Delisted symbols return their history with `delisted=true`. - `alphai_trending` — top stories of the last 48h; `min_relevance` default 8, at most two stories per ticker. - `alphai_actionable_now` — breaking, decision-grade news from the last few hours, gated on actionability. Empty outside US market hours is expected. - `alphai_macro` — market-wide macro news (central-bank decisions, inflation and jobs prints, commodities, geopolitics). Rows are not about one company, so they usually carry no tickers. Next to the stories, `releases` lists the scheduled US releases of the same window with their coverage, then the ones due in the next 24 hours. An elapsed release with empty coverage is out and its stories are still arriving: call again in a few minutes. - `alphai_pair_analysis` — compare two tickers: overlapping stories and the cross-read between them. - `alphai_article` — one article by uid, with the full AlphAI summary and analysis. SEC rows add Form 4 trades or 8-K filing details; earnings filings add an `earnings` block. Stories - `alphai_stories` — events covered by at least two publishers, with a summary of each when it is ready. `list=top` ranks the last 48h by importance, breadth of coverage and freshness, one slot per ticker; `list=latest` pages all stories by their newest article. - `alphai_story` — one story by the `story_id` from any news result: `why_it_matters`, up to six `key_facts` with publisher and `source_uid`, `ticker_takes`, open uncertainties and the first page of source articles. `status` is `found`, `merged` (call again with `redirect_to`) or `not_a_story` (one publisher covered the event). SEC filings and earnings - `alphai_insider_news` — SEC Form 4 insider-transaction feed, optionally per ticker. `is_10b5_1=false` leaves out plan trades; `decision="discretionary"` keeps the sales the insider chose to make. - `alphai_insider_clusters` — companies where several insiders bought on the open market close together (purchases at most 10 days apart, episodes up to 30 days). The default `open_market` list leaves out IPO/PIPE allocations, ESPP/DRIP and director-plan purchases and duplicate reports; `pattern` shows them. Free reaches 30 days back, Basic and Pro 90. Results carry accession numbers, EDGAR links and news uids. - `alphai_earnings` — earnings figures and management guidance read from a company's 8-K item 2.02 or 6-K earnings release, newest first, with the next confirmed report date. Figures are checked against the filing text; `numbers_verified_from_document` is false where one could not be matched. Coverage starts in late July 2026. Calendars - `alphai_calendar` — the official schedule of US macro releases, up to 30 days back and 90 ahead. Ask it what is due this week; for a release that is already out it also lists coverage, the top feed stories about it. Read `alphai_macro` for what a release meant once it is out. - `alphai_earnings_calendar` — which companies report today, this week or next, and which just reported, by day. Confirmed dates only; `session` is `before_open`, `after_close` or null. `days_back` (up to 7) lists the companies whose report we read; `detail="full"` adds our read of the previous report and of the report the row is about. Radar - `alphai_radar` — tickers getting more news coverage than usual over 4h or 24h, market-wide or across your saved watchlist, with the headlines behind each score and recent SEC filings and insider clusters as context. It describes news activity, not price forecasts. Free sees snapshots 60 minutes late, Basic 15, Pro with no added delay. Account - `alphai_watchlist_brief` — catch up on your saved watchlist (add tickers at https://alphai.io/account/watchlist): news grouped by story, SEC filings and upcoming earnings over the last 1-168 hours. Every plan. - `alphai_tickers` — symbol discovery and search, with company details and the next confirmed earnings date. - `alphai_alerts_list`, `alphai_alerts_subscribe`, `alphai_alerts_unsubscribe` — manage ticker news alerts (email and Telegram; Pro adds webhooks). Requires a Basic or Pro plan; OAuth connections need the `alerts.write` scope to subscribe or unsubscribe. ChatGPT deep research - `search`, `fetch` — the ChatGPT connector contract over the same feed. All tools are read-only except the alert subscription pair. ## Notes for agents - AlphAI output is AI-generated financial information for research, not investment advice. Terms: https://alphai.io/terms - The feed updates continuously; poll interval below your per-minute cap. - Prefer `collapse=story` (REST) or `collapse_stories=true` (MCP) when you want events rather than every syndicated reprint; `sources_count` is a corroboration signal. - Before backtesting or promising coverage downstream, read `/api/coverage/`. - Support: support@alphai.io. Changelog: https://alphai.io/changelog