How to Get Dividends, Splits & Bonus Issues for Any NSE/BSE Stock via API
GET /v1/stocks/{ticker}/corporate-actions lists dividends, bonus issues, splits, rights issues and buybacks, most recent ex-date first. Filter with action_type: dividend, bonus, split, rights, buyback or other.
import httpx
API = "https://bharatstockapi.com"
HEADERS = {"X-API-Key": "bsk_live_..."} # your key from the dashboard
r = httpx.get(f"{API}/v1/stocks/RELIANCE/corporate-actions", headers=HEADERS,
params={"action_type": "bonus"})
r.raise_for_status()
for a in r.json()["data"]:
print(a["ex_date"], a["subject"], a["ratio_from"], a["ratio_to"])Reading a row
ex_dateis the first day the stock trades without the entitlement.ratio_from/ratio_tocarry the split or bonus ratio.subjectis the exchange's wording, kept for reference.
These rows drive the adjustment in adjusted_close. Concepts: corporate actions, stock splits, bonus issues.