The Free plan in numbers
Everything below is what a Free key gets today. The two limits are independent: a call goes through only when both the minute and the day still have room.
| Free plan | |
|---|---|
| Requests per minute | 20. Going over returns 429 with a Retry-After header, and the refused call is not counted. |
| Requests per day | 100, reset at 00:00 UTC. Every keyed response reports what is left. |
| MCP tool calls | 20 a minute and 100 a day, counted apart from REST. Connecting and listing tools cost nothing. |
| API keys | 1 |
| Rows per call | Up to 20 (10 when page_size is not set) |
| History | 30 days back |
| Sign-up | Email or Google. No credit card. |
| Licence | Personal, non-commercial use: evaluation and prototypes |
The daily budget is visible on every response, so a bot never has to guess it. These are the headers from a real call made with a Free key. X-RateLimit-Reset is the Unix time of the next 00:00 UTC reset.
x-ratelimit-limit: 100 x-ratelimit-remaining: 98 x-ratelimit-reset: 1795651200
For a polling bot, two of these numbers decide almost everything: 100 calls a day and 20 rows a call.
What Free does not include
Pages over 20 rows. On Free and Basic, page_size=21 or more is refused with a 400 rather than cut down without notice. Pro allows up to 50.
{
"message": "Validation error",
"extra": {
"fields": {
"page_size": "page_size above 20 requires a Pro plan; Free and Basic are limited to 20."
}
}
}History older than 30 days. A request that reaches past the horizon, by a deep cursor or by from_date, gets a 403 with reason: archive_horizon. Basic reaches 90 days and Pro 180.
{
"message": "This page is older than your plan's 30-day news-archive horizon. Pro extends the archive to 180 days.",
"extra": {
"reason": "archive_horizon",
"tier": "free",
"archive_days": 30,
"upgrade": {
"basic": "60/min · 10,000/day · 90-day archive",
"pro": "150/min · 100,000/day · 180-day archive · instant alerts + webhooks",
"pricing_url": "https://alphai.io/pricing"
}
}
}Both errors still cost a call. In the capture, X-RateLimit-Remaining dropped by one on the 400 and by one more on the 403. A 429 is not counted.
Alerts. A daily email digest starts on Basic, for up to 10 tickers. Pro covers 50 tickers, with email sent as stories arrive (grouped when several come close together) and HMAC-signed webhooks in real time. On Free nothing is pushed to the bot, so it has to poll.
Commercial use. Free is licensed for personal, non-commercial use. Basic covers internal commercial use, and Pro adds redistribution inside your own product.
What fits into 100 calls a day
A poller keeps up with a stream only while calls per day times rows per call stays above the number of rows the stream carries in a day. On Free that ceiling is 100 × 20 = 2,000 rows a day, and only if every single call comes back full. Spread evenly, 100 calls are one call every 14 minutes and 24 seconds.
How many rows a stream carries depends on the filter and on the day. These are the rows that entered each stream from 18 to 24 November 2026, counted on the production database. Saturday and Sunday carried about a quarter of a weekday, so size a bot for weekdays.
| Stream | Weekday average | Busiest day | Fits on Free |
|---|---|---|---|
| min_relevance=4whole feed, default floor | ~5,550 | 5,899 | No: 2.8× the ceiling |
| min_relevance=7 | ~1,240 | 1,511 | Yes, with little room on busy days |
| min_relevance=8 | ~470 | 619 | Yes |
| min_relevance=9 | ~160 | 238 | Yes |
| symbol=NVDA | ~700 | 1,107 | Yes, with little room on busy days |
| symbol=NVDA&min_relevance=7 | ~160 | 336 | Yes |
| symbol=AAPL | ~78 | 113 | Yes |
| symbol=TSLA | ~72 | 91 | Yes |
So on Free the filter comes first. The unfiltered feed does not fit at any polling rate. A relevance floor of 8 fits easily. A floor of 7 fits too, but the busiest weekday of that week needed 1,511 of the 2,000 rows a Free key can read in a day. A single ticker fits, though a heavily covered one like NVDA can pass 1,000 rows on a news day. The API's own wording for min_relevance: the default 4 leaves out low-relevance articles, and 7 and up keeps the strongest.
Each filter is its own stream with its own cursor. A bot that watches two tickers runs two cursors and gets half as many polls for each, so choose the streams before you choose an interval.
Poll for new rows, not the newest page
The obvious loop fetches the newest page every few minutes and drops the rows it has already seen. On a small budget it fails twice over. Articles reach the feed later than their publish time (for general news in the week of 19 October the median gap was about 20 minutes, and about one in ten arrived three or more hours late), so a late row lands below the first page and the loop never sees it. And every poll that returns rows you already have still costs a call.
Delta mode solves both. With sort=ingested the feed is ordered by the moment each row became available. The first call returns a short sample and a cursor at the head of the stream. Every later call with that cursor returns only the rows that arrived since. In this mode next_cursor is never null, and an empty results list means you are caught up.
{
"results": [
{
"original": {
"uid": "3e9208f6857d3cce",
"title": "Northern Star Undecided on Gold Fields' Revised Takeover Bid",
"source_domain": "investingnews.com",
"time_published": "2026-12-04T18:34:52Z",
"created_at": "2026-12-05T04:42:51.564357Z"
},
"enrichment": {
"relevance_score": 9,
"category": "mergers_acquisitions",
"tickers": [
"GFI"
]
}
},
{
"original": {
"uid": "156681aca46bf106",
"title": "US economy shed 6,000 jobs in November, as AI-driven industrial restructuring accelerates",
"source_domain": "wsws.org",
"time_published": "2026-12-05T04:42:35Z",
"created_at": "2026-12-05T06:17:30.452330Z"
},
"enrichment": {
"relevance_score": 8,
"category": "macro_economy",
"tickers": []
}
}
],
"next_cursor": "aXwyMDI2LTEyLTA1VDA2OjIyOjI2LjUyNjQ2MyswMDowMHwxNTQ0NDgz"
}Two fields matter here. created_at is when a row entered the feed, and delta mode follows that order. time_published is when the source published it, which can be hours earlier. Rows also arrive in batches: enrichment writes in bursts, so a poller on a fixed interval spends about half of its calls on empty pages.
Responses are cached for 60 seconds, so polling more often than once a minute only returns the same answer again.
A polling loop that paces itself
The loop below reads its budget from the response headers instead of hard-coding an interval. The wait between polls is the time left until the reset divided by the calls left, so a quiet morning leaves calls for a busy afternoon and the bot never runs dry before midnight UTC. It reads the min_relevance=8 stream, the one with room to spare. A full page means a burst is in progress, and the loop reads the rest straight away. The cursor goes to a file after every page, so a restarted bot carries on from where it stopped and reads the backlog through the same full-page rule. Only a bot that stays down longer than the 30-day history loses rows: its next call meets the archive 403.
import os
import time
import requests
API = "https://api.alphai.io/api/news/"
HEADERS = {"Authorization": f"Bearer {os.environ['ALPHAI_API_KEY']}"}
PARAMS = {"sort": "ingested", "min_relevance": 8, "page_size": 20}
RESERVE = 5 # calls kept back for restarts and one-off lookups
CURSOR_FILE = "alphai_cursor.txt" # where the stream position survives a restart
def handle(rows):
for row in rows:
e = row["enrichment"]
print(e["relevance_score"], e["tickers"], row["original"]["title"])
def save(cursor):
with open(CURSOR_FILE, "w") as f:
f.write(cursor)
def pause(res):
"""Seconds until the next call, so the calls left last until 00:00 UTC."""
left = res.headers.get("X-RateLimit-Remaining")
reset = res.headers.get("X-RateLimit-Reset")
if left is None or reset is None:
return 15 * 60 # headers missing: plain 15-minute poll
if int(left) <= RESERVE:
return int(reset) - time.time() # budget spent: sleep to the reset
return (int(reset) - time.time()) / (int(left) - RESERVE)
cursor = open(CURSOR_FILE).read().strip() if os.path.exists(CURSOR_FILE) else None
while True:
params = dict(PARAMS, cursor=cursor) if cursor else PARAMS
res = requests.get(API, params=params, headers=HEADERS, timeout=15)
if res.status_code == 429: # burst cap; this call was not counted
time.sleep(int(res.headers.get("Retry-After", 60)))
continue
if res.status_code == 409: # scan stopped early: resume where it stopped
cursor = res.json()["extra"]["next_cursor"]
save(cursor)
elif res.status_code == 503: # feed changed mid-read: same cursor, later
pass
else:
res.raise_for_status()
page = res.json()
handle(page["results"])
cursor = page["next_cursor"] # never null in delta mode
save(cursor)
full = len(page["results"]) == PARAMS["page_size"]
left = res.headers.get("X-RateLimit-Remaining")
if full and left is not None and int(left) > RESERVE:
continue # a full page means a burst: read the rest now
time.sleep(max(60, pause(res))) # responses are cached for 60 sBesides 429, two responses are worth handling, and the loop does. A 409 with reason: delta_scan_incomplete means a bounded scan stopped early: carry on from the next_cursor in its extra block. A 503 with reason: delta_candidates_changed means the feed changed while it was being read: send the same request again. Neither is cached, and the loop waits its normal pause after both, so a run of them cannot drain the day.
Keep RESERVE above zero. Looking up one article by its uid (GET /api/news/{uid}/) or restarting the bot should never find the day already spent. The full delta contract, including what happens when a poller falls behind, is in the API reference.
When Free stops being enough
Free is meant for trying the feed and for personal projects, and the limits above show when a bot has outgrown it: it needs the whole feed instead of a filtered stream, history older than 30 days, alerts pushed to it, or it is going into commercial use. Basic raises the day to 10,000 calls and Pro to 100,000, with 50-row pages on Pro. The plans side by side are on the pricing page.
If an AI agent will read the feed rather than a script, the guide on REST and MCP for AI agents covers the second way in, which runs on its own 100 calls a day.