Dividends and total return
Each cash payment by ex-date, on the daily bars' split basis.
bash
curl -G "https://api.gloom.sh/v1/dividends" \
-d symbols=AAPL \
-d from=2014-01-01 \
-d to=2014-12-31 \
-H "Authorization: Bearer $GLOOM_DATASETS_KEY"json
{
"data": [
{
"symbol": "AAPL",
"exDate": "2014-05-08",
"amount": 0.1175,
"unadjustedAmount": 3.29,
"currency": "USD",
"payDate": null,
"recordDate": null,
"declaredDate": null,
"frequency": "quarterly",
"special": false,
"announced": false
},
{
"symbol": "AAPL",
"exDate": "2014-08-07",
"amount": 0.1175,
"unadjustedAmount": 0.47,
"currency": "USD",
"payDate": null,
"recordDate": null,
"declaredDate": null,
"frequency": "quarterly",
"special": false,
"announced": false
}
],
"meta": {
"dataThrough": "2014-11-06",
"historyStart": "1987-05-11"
}
}Trimmed from a real answer: two of 2014's four rows, and some of meta left out.
What the amounts are on
amountis cash per share on today's shares: the amount as declared, divided by every split since itsexDate. That is the basis/v1/market/barsprices are on, so a payment and a bar's close divide as they did on the day: AAPL's 3.29 of May 2014 reads 0.1175, after its 7-for-1 split of June 2014 and its 4-for-1 of August 2020, as its close of 592.33 the day before reads 21.15.amountis adjusted for splits only. Bar prices are usually adjusted for spin-offs too, so around a spin-off a payment and the bars are on different bases.unadjustedAmountis the amount as declared, before any split since. It is null where the listing's splits sinceexDateare not all on record, and apartialnotice says from when they are.- Default bars do not adjust for cash dividends. For a US stock or ETF, opt in to a dividend-adjusted daily close and split history on
/v1/market/bars. To calculate the return on an ex-date from the default bars, use(close + amount) / previous close − 1with the day's total cash.
The rows
- One row per payment, oldest first, from the first payment Gloom holds: AAPL's in 1987, SPY's in 1993, KO's in 1970, QQQ's and AGG's in 2003. Without
fromandtoa call reads the whole history at once; with them, only the ex-dates between. - A history is served whole or says it is not. When a listing's earlier payments are still being read as the call answers, it gives the rows it holds, a
partialnotice naming the day they run from,meta.historyStartnull and aRetry-After: 30header. That answer is free, has no ETag and is not cached; the call sent again 30 seconds later reads the whole history and is charged. Store a listing's history once it comes without that notice. - An empty answer means no payment only without a
partialnotice. When none of a listing's payments could be read as the call answers, it holds none of them, or only those declared ahead, with apartialnotice saying they are still being read and the same free, uncached answer withRetry-After: 30. If they still cannot be read some minutes later, the notice says so instead, and the answer stays free. - A payment declared and not yet in the paid history is
announced, with its dates. It may still change. frequencyis the cadence the listing's regular payments show up to that row:daily,weekly,semi-monthly,monthly,quarterly,semi-annualorannual. A daily payer, such as STRC since November 2026, goes ex each business day, and a row holds each calendar day's payment since the row before: a Friday's three days', the day before Christmas four.specialmarks a one-off beside them, such as Costco's 10.00 of December 2020 beside its 0.70 a quarter; a daily payer's larger rows are not. A day that paid a regular and a special dividend is two rows.payDate,recordDateanddeclaredDateare given when published and matched to the payment. Dates that are missing, tentative or ambiguous are null; they are not estimated.currencyis the ISO 4217 currency both amounts are in, in its main unit: a London listing whose prices are in pence (GBp) has its payments in pounds,GBP. Divide a bar's close by 100 before comparing a payment with it.- With
asOf, a payment counts once it has gone ex, or once declared wheredeclaredDateis held. Dates added to historical payments are included only when the evidence was known by the cutoff. Amounts are still on today's shares. - A US company that changed its symbol is served its payments up to the change, under the symbol asked, on the shares of the symbol it trades as now, with a
delistednotice naming that symbol: LANC's, from 1986 to June 2025, before it became MZTI. One that no longer trades is served its payments from 2016 on, as its bars are, through its last session, on that session's shares: adelistednotice gives the session, and ahistory_cutnotice andmeta.historyStartnull say its earlier payments are not held.
Cost
A listing costs 4 credits a call, as a daily bars call does, on the plans that read market data. A listing with no payment in the window, such as an index, is empty and free, and a symbol Gloom has no prices for is a free 404.