---
title: "Get Dividend History"
method: GET
path: "/api/dividends/{symbol}"
tags: ["dividends"]
---

# Get Dividend History

`GET /api/dividends/{symbol}`

## Request

- Base URL: `https://api.halalterminal.com`
- URL: `https://api.halalterminal.com/api/dividends/{symbol}`
- Auth: API key in header `X-API-Key`

Retrieve the dividend payment history for a stock.

Returns every recorded dividend payment for the given symbol, including
the payment date and per-share amount in USD, ordered chronologically.

**curl example:**

    curl -X GET "http://localhost:8000/api/dividends/MSFT"

**Python requests example:**

```python
import requests
resp = requests.get("http://localhost:8000/api/dividends/MSFT")
data = resp.json()
print(f"{data['symbol']}: {data['count']} dividends")
for d in data["dividends"][-4:]:
    print(f"  {d['date']}: ${d['amount']:.4f}")
```

## Path parameters

- `symbol` string, required: Ticker symbol, e.g. AAPL.

## Response `200`

Chronological list of historical dividend payments.

- DividendHistoryResponse: Historical dividend payments for a stock.
  - `symbol` string, required: Ticker symbol (e.g. 'MSFT').
  - `count` integer, required: Total number of dividend payments returned.
  - `dividends` DividendPayment[], required: Chronological list of dividend payments.
    - `date` string, required: Payment date in YYYY-MM-DD format.
    - `amount` number, required: Dividend amount per share in USD.

## Other responses

- `404`: Symbol not found or has no dividend history.
- `422`: Validation Error

---

[API](https://skmtc.dev/halalterminal/apis/halal-terminal-api.md) · [All operations](https://skmtc.dev/halalterminal/apis/halal-terminal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/halalterminal/apis/halal-terminal-api/revisions/78768b250943?raw)
