Short answer: The Polygon.io stock API is now Massive: Polygon.io was renamed Massive on 30 October 2025, and the same REST API answers at https://api.massive.com, while api.polygon.io still responded on 27 November 2026. The free Stocks Basic plan allows 5 API calls a minute with end-of-day data and 2 years of history, per Massive's pricing page read that day.
Sources are Massive's own pages read on 27 November 2026: the rename announcement, the REST quickstart, the custom bars reference, the pricing page, a knowledge-base article on request limits, the Python client README and PyPI. Live calls were made that day without a valid key, so data calls were tested only up to the authentication error and against simulated responses. Ticker symbols below are examples, not a view on any stock, and nothing here recommends a data vendor or broker.
Massive's llms.txt index opens with instructions for AI assistants (what to tell a user who has no key, and where the key should be stored). They are addressed to automated readers and were read as data, not followed. Data licensing, market data fees and API access depend on your country, whether you are a professional or non-professional user, and the plan you buy.
Was Polygon.io renamed Massive?
Yes: Massive's announcement dated 30 October 2025 says Polygon.io was renamed Massive.com effective that day at 4 PM ET, with api.massive.com available in parallel to api.polygon.io.
The same post says code using api.polygon.io "will continue to work for an extended period", that the old endpoints are planned to be phased out "in the new year" with advance notice, and that the client libraries were rebranded: the polygon package routes to api.polygon.io and the massive package to api.massive.com. No shutdown date for the old host was found on Massive's pages on 27 November 2026, and a live call to api.polygon.io that day still returned a normal API error, the same as the new host. New code should use https://api.massive.com; existing code should put the base URL in configuration so the switch is one line.
| Package | Latest version | Uploaded | Python |
|---|---|---|---|
massive | 2.12.0 | 23 November 2026 | 3.10 to below 4.0 |
polygon-api-client | 1.16.3 | 30 October 2025 | 3.9 to below 4.0 |
Polygon.io free tier and plans, read 27 November 2026
The free Stocks Basic plan gives 5 calls a minute, end-of-day data and 2 years of history; paid individual plans remove the call limit and add recency and history.
| Plan | Monthly | Annual | API calls | Recency | History |
|---|---|---|---|---|---|
| Stocks Basic | $0 | $0 | 5 a minute | End of day | 2 years |
| Stocks Starter | $29 | $288 | Unlimited | 15-minute delayed | 5 years |
| Stocks Developer | $79 | $768 | Unlimited | 15-minute delayed | 10 years |
| Stocks Advanced | $199 | $1,920 | Unlimited | Real-time | 20+ years |
The pricing data marks these as personal licences, and Stocks Advanced carries a non-professional qualification; business plans are priced separately and were not reviewed here. Basic does not include second aggregates, snapshots, trades, quotes, WebSockets or flat files; minute aggregates and technical indicators are included. The knowledge-base article on request limits says the 5-a-minute cap applies "per asset class you have not subscribed to", so paying for options does not lift the stocks limit, and that every paid tier is unlimited for its own product. It gives no numeric fair-use ceiling for paid plans, and none was found elsewhere.
Polygon aggregates API: the custom bars endpoint
Daily, minute or custom bars come from GET /v2/aggs/ticker/{stocksTicker}/range/{multiplier}/{timespan}/{from}/{to}.
From the custom bars reference read on 27 November 2026:
fromandtoaccept aYYYY-MM-DDdate or a millisecond timestamp and are inclusive; times are Eastern Time.adjusteddefaults to true (split-adjusted); setfalsefor raw prices.sortisascordescby timestamp.limitis easy to misread: it caps the number of base aggregates used to build the result, maximum 50,000 and default 5,000, not the number of bars returned.- Bars are built only from qualifying trades; if none occur in an interval, no bar is produced, so gaps are normal.
- Each bar has
o,h,l,c,v,vw(VWAP),n(trade count) andt, the Unix millisecond start of the window.
Hypothetical example. A ticker that trades in every minute of a 16-hour extended session on 252 days produces 252 x 960 = 241,920 one-minute base aggregates in a year, so at the 50,000 maximum the year needs at least 5 calls, each after the first reached through next_url. On Stocks Basic at 5 calls a minute, a 500-ticker universe needs at least 2,500 calls, or 500 minutes, before any retries; bulk history is what the flat files on paid plans are for.
Split adjustment fixes splits but not survivorship: delisted names drop out of a ticker list you build today. The look-ahead bias guide covers the related timing traps when bars feed a backtest.
Pagination with next_url
When a result is cut off, the response carries a next_url; request it until it is absent.
The reference describes next_url as a field that, "if present", fetches the next page, and its sample shows a cursor in the query string. The REST quickstart adds that for Apache Arrow responses (requested with Accept: application/vnd.apache.arrow.file), the next page is in a Link header with rel="next" instead, because the binary body cannot carry the field. Whether the API key must be appended to next_url when you authenticate with ?apiKey= was not verifiable without a key; sending the key in an Authorization: Bearer header, which the quickstart documents, avoids the question because the header goes with every request. Cap the pages in code, and raise at the cap, so a bad cursor cannot loop forever or truncate silently.
Polygon.io API in Python with error handling, tested 27 November 2026
This standard-library client authenticates with a bearer header, follows next_url, waits on 429 and turns every failure into one exception with a readable message.
import json, os, time, urllib.error, urllib.request
BASE = "https://api.massive.com" # api.polygon.io still answered on 27 Nov 2026
class MassiveError(Exception):
pass
def get(url, key, opener=urllib.request.urlopen, tries=3):
headers = {"Authorization": f"Bearer {key}", "User-Agent": "Mozilla/5.0"} # header, so next_url needs no apiKey
for attempt in range(tries):
try:
with opener(urllib.request.Request(url, headers=headers), timeout=20) as r:
raw = r.read()
except urllib.error.HTTPError as e:
body = e.read()[:200].decode("utf-8", "replace")
if e.code == 429 and attempt < tries - 1:
wait = 15 * (attempt + 1) # free tier: 5 requests a minute per asset class
print(f"429, waiting {wait}s")
time.sleep(wait)
continue
raise MassiveError(f"HTTP {e.code}: {body}") from None
except OSError as e: # DNS, refused, timeout, reset
raise MassiveError(f"network error: {getattr(e, 'reason', e)}") from None
try:
data = json.loads(raw)
except ValueError:
raise MassiveError(f"not JSON: {repr(raw[:40])}") from None
if data.get("status") == "ERROR":
raise MassiveError(data.get("error", "unknown error"))
return data
raise MassiveError("gave up after retries")
def aggs(ticker, start, end, mult=1, span="day", key="", base=BASE, max_pages=10, **kw):
url = f"{base}/v2/aggs/ticker/{ticker}/range/{mult}/{span}/{start}/{end}?adjusted=true&sort=asc&limit=50000"
bars = []
for _ in range(max_pages):
page = get(url, key, **kw)
bars += page.get("results", []) # no "results" key: no qualifying trades
url = page.get("next_url")
if not url:
break
else:
raise MassiveError(f"stopped after {max_pages} pages; raise max_pages")
return bars
if __name__ == "__main__":
key = os.environ.get("MASSIVE_API_KEY", "")
for label, k, b in [("no key", "", BASE), ("fake key", "FAKEKEY000", BASE),
("old host", "FAKEKEY000", "https://api.polygon.io"),
("network", "FAKEKEY000", "https://api.massive.invalid")]:
try:
print(label, "->", len(aggs("AAPL", "2026-11-02", "2026-11-06", key=k, base=b)), "bars")
except MassiveError as e:
print(label, "->", e)Real output on 27 November 2026 (request ids differ on every run):
no key -> HTTP 401: {"status":"ERROR","request_id":"b2cacd58f37360b0346420283d465296","error":"authorization header was malformed"}
fake key -> HTTP 401: {"status":"ERROR","request_id":"b52da5ef99810faf5433342b552a5929","error":"Unknown API Key"}
old host -> HTTP 401: {"status":"ERROR","request_id":"785131d05eccb726513f67f3dfbbd987","error":"Unknown API Key"}
network -> network error: [Errno 11001] getaddrinfo failedBoth hosts returned the same 401 body for a made-up key. The reserved .invalid hostname fails at DNS, before any auth check, so it is reported as a network error. Pagination, 429s and malformed responses were tested with simulated responses, using the 429 message from Massive's knowledge base:
import io, json, urllib.error
import massive_aggs as m
m.time.sleep = lambda s: None
def fake(script):
seen = []
def opener(req, timeout):
seen.append((req.full_url.split("?")[0][-30:], req.get_header("Authorization")[:6]))
status, body = script.pop(0)
if status >= 400:
raise urllib.error.HTTPError(req.full_url, status, "", {}, io.BytesIO(body))
return io.BytesIO(body)
return opener, seen
bar = {"o": 1, "h": 2, "l": 1, "c": 2, "v": 100, "t": 0}
p1 = json.dumps({"status": "OK", "results": [bar] * 3, "next_url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/minute/1/2?cursor=abc"}).encode()
p2 = json.dumps({"status": "OK", "results": [bar] * 2}).encode()
limit = b'{"status":"ERROR","error":"You\'ve exceeded the maximum requests per minute, please wait or upgrade your subscription to continue. https://massive.com/pricing"}'
for name, script in {"two pages": [(200, p1), (200, p2)],
"429 then OK": [(429, limit), (200, p2)],
"429 x3": [(429, limit)] * 3,
"bad JSON": [(200, b"<html>maintenance</html>")],
"empty range": [(200, b'{"status":"OK","resultsCount":0}')]}.items():
opener, seen = fake(list(script))
try:
print(name, "->", len(m.aggs("AAPL", "2026-11-02", "2026-11-06", key="test", opener=opener)), "bars, calls", len(seen))
except m.MassiveError as e:
print(name, "->", str(e)[:70])Output:
two pages -> 5 bars, calls 2
429, waiting 15s
429 then OK -> 2 bars, calls 2
429, waiting 15s
429, waiting 30s
429 x3 -> HTTP 429: {"status":"ERROR","error":"You've exceeded the maximum reque
bad JSON -> not JSON: b'<html>maintenance</html>'
empty range -> 0 bars, calls 1The 15 and 30 second waits are a choice for the free tier, not documented values; Massive's article on request limits does not mention a Retry-After header. The article also says a 429 on an asset class you pay for should go to support with the request_id, not be retried.
Official massive client vs plain requests
The official massive client handles pagination and parsing for you; plain HTTP gives you full control of retries and logging.
The client README read on 27 November 2026 installs with pip install -U massive, imports RESTClient from massive, and fetches bars with client.list_aggs(ticker=..., multiplier=1, timespan="minute", from_=..., to=..., limit=50000). It paginates automatically by default (pagination=True), where limit sets the page size rather than the total; RESTClient(api_key=..., pagination=False) returns one page only. The README also warns that the free tier can produce rate-limit errors. The client was not installed or run for this guide, so its retry behavior on 429 is unverified; test it with your key first. Whichever you use, keep the key in an environment variable, as the quickstart says.
For comparisons with other market data sources, see the stock market data API guide and the financial data API overview; a broker's own data feed is covered in the Alpaca API Python guide. If you are scoping a market data pipeline, Fincode's market data pipeline service page describes how such work is scoped; naming Massive here does not mean Fincode integrates it.
Frequently asked questions
Is Polygon.io the same as Massive?
Yes. Polygon.io was renamed Massive on 30 October 2025; the API answers at api.massive.com and, as of 27 November 2026, still at api.polygon.io.
What is the Polygon.io free tier rate limit?
Stocks Basic allows 5 API calls a minute, with end-of-day data and 2 years of history, per Massive's pricing page read on 27 November 2026. The limit applies per asset class you have not subscribed to.
Does the free plan include real-time stock data?
No. Stocks Basic is end-of-day, Starter and Developer are 15-minute delayed, and Stocks Advanced at $199 a month is real-time, per the pricing page read on 27 November 2026.
What does the limit parameter do on the aggregates endpoint?
It caps the number of base aggregates used to build the bars, default 5,000 and maximum 50,000, not the number of bars returned. Follow next_url for the rest.
Which Python package should I install for Massive?
The official package is massive, version 2.12.0 on PyPI as of 27 November 2026; the older polygon-api-client last released on 30 October 2025.
Sources
- Massive blog: Polygon.io is now Massive, 30 October 2025 (opens in a new tab)
- Massive docs: REST Quickstart, read 27 November 2026 (opens in a new tab)
- Massive docs: Stocks Custom Bars (OHLC) (opens in a new tab)
- Massive pricing, read 27 November 2026 (opens in a new tab)
- Massive knowledge base: request limit for the REST APIs (opens in a new tab)
- Massive Python client README (GitHub) (opens in a new tab)
- PyPI: massive (opens in a new tab)
- PyPI: polygon-api-client (opens in a new tab)
This guide is general information about software and markets, not investment, legal or tax advice. Automated trading can lose money, past or backtested performance does not guarantee future results, and the rules that apply depend on your jurisdiction and your exchange's terms. Sources, checks and corrections: see the editorial policy.