Batches
Many companies in one call: up to 50 on most routes.
bash
curl "https://api.gloom.sh/v1/kpis?symbols=AAPL,brk-b,QQZZX" \
-H "Authorization: Bearer $GLOOM_DATASETS_KEY"json
{
"data": [
{ "symbol": "AAPL", "key": "…", "latest": { … } },
{ "symbol": "AAPL", "key": "…", "latest": { … } },
{ "symbol": "BRK.B", "key": "…", "latest": { … } }
],
"meta": {
"symbols": [
{ "input": "AAPL", "symbol": "AAPL", "status": "ok" },
{ "input": "brk-b", "symbol": "BRK.B", "status": "ok" },
{ "input": "QQZZX", "symbol": "QQZZX", "status": "not_found" }
]
}
}- Up to 50 listings a call, in any notation:
AAPL,BRK-B,BRK/B,AIR.PA,VOD:XLON,7203:TSE. The venue may come first:TYO:7203,NASDAQ:AAPL,HKEX:9988. Taiwan'sXTAIreads as TWSE. A Hong Kong code reads with or without its leading zeros:700.HK,0700.HKand00700.HK, as HKEXnews prints it, are Tencent's0700;80700.HKis its own counter. Reuters codes for US listings read too:AAPL.OandAAPL.OQ(Nasdaq),IBM.N(NYSE).datais one list across the listings read, in the order sent; each row names its listing insymbol. - Each
oklisting costs the route's price: this call, 4 credits.empty,not_foundandunavailableare free: empty: a listing Gloom knows, with no rows in this dataset for what was asked, or one the dataset does not cover: a company listed abroad on the insider routes, which read Form 4s filed with SEC. Anoutside_coveragenotice names the listings not read for that reason. On/v1/companies, a profile with none of thefieldsasked for,symbolaside, isemptytoo.not_found: no listing Gloom knows by that notation, such as a typo. Gloom knows the companies it covers, every ticker SEC lists and the listings delisted since its history starts. One rule on every route that takessymbols./v1/market/barsand/v1/market/snapshotread indexes, funds, coins and other instruments too: a symbol there isnot_foundwhen Gloom has no prices for it, from a listing that trades or a delisted one. Options and perps routes report a listing with no rows asempty.unavailable: not read just now. Retry shortly, as theretry_unavailablenotice says.- On
/v1/filingsand/v1/fundamentals/statements, each listing read also givescik, the SEC Central Index Key of the company whose rows were read, ten digits: withasOf, the company that held the symbol then.DOCread at 2021-01-04 gives Physicians Realty Trust's0001574540, not Healthpeak's. - One symbol alone that is
not_found, or that the route refuses, answers its own4xxwithparam: "symbols"and a hint, also free. One alone that isemptyanswers200with no rows. GET /v1/datasets/costfollows the same rule: a listing Gloom does not know isnot_foundthere too, and not priced. Its price is a ceiling, as itsprice_ceilingnotice says: a listing the dataset holds nothing for is free only when the call is made.limitcounts per listing;meta.nextpages them all.- A batch takes its whole weight, its price times its listings, from the key's per-minute limit when it starts, and gives back the share of its
empty,not_foundandunavailablelistings when it ends. Batches sent at once share the minute at their full weight: on Desk, 1,200 credits a minute, 24 calls of 50 listings at 1 credit start together, and the next waits for the credits to come back (429 rate_limited, withRetry-AfterandRateLimit-Remaining). Basic's 300 hold 6. A batch heavier than the whole minute is a free400. /v1/search(50 listings at most),/v1/insider-trades/changes(50),/v1/market/quotes(10) and/v1/earnings(100) read the list at one price. A list in which no listing is found is free, and so is one in which no listing is Gloom's. A list with one found keeps its price, even when that listing isempty(no report in the window) or read in part (a quote with no price).
Old paths answer 308 to their new ones until 23 January 2027. The changelog maps every one.