List a stock's dividends
curl --request GET \
--url https://api.darvas.app/v1/dividends \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/dividends"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/dividends', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "AAPL",
"dividends": [
{
"ex_date": "2020-08-07",
"amount": 0.82,
"adjusted_amount": 0.205,
"currency": "USD"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Stocks & Short Interest
Stock Dividend History & Ex-Dividend Date API
Query historical stock dividend payouts, ex-dividend dates, cash amounts and currency for US equities to compute total return and dividend yield.
List a stock's dividends
curl --request GET \
--url https://api.darvas.app/v1/dividends \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/dividends"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/dividends', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "AAPL",
"dividends": [
{
"ex_date": "2020-08-07",
"amount": 0.82,
"adjusted_amount": 0.205,
"currency": "USD"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
Every cash dividend a US stock has paid since its first session, oldest first.amount is what one share received on the ex_date, in currency. adjusted_amount divides it by every split since then, so it compares with today’s share and with split-adjusted prices: Apple’s $0.82 of August 2020 is $0.205 after the 4-for-1 split that followed.
A new dividend appears after its ex-dividend session closes. A stock that has never paid one answers an empty list. Amounts from before a split come back from split-scaled values, so the oldest can differ from the declared figure in their last digit.
| Coverage | Details |
|---|---|
| Stocks | US equities covered by Historical Stock Prices |
| Fields | Ex-dividend date ex_date, cash amount in currency and split-adjusted adjusted_amount |
| Filters | Required ticker; optional start_date and end_date (YYYY-MM-DD), oldest first |
| MCP tool | list_dividends on the data API MCP server |
Example
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
dividends = requests.get(
"https://api.darvas.app/v1/dividends",
headers=headers,
params={"ticker": "AAPL", "start_date": "2025-01-01"},
).json()["dividends"]
print(sum(row["amount"] for row in dividends))
Authorizations
apiKeybearerKey