# Financials Dividends Calendar

> Use the following API endpoints to obtain dividends data.

Source: https://docs.tradingeconomics.com/financials/dividends/

Dividends are distributions of a portion of a company's profits to its shareholders, typically according to a schedule disclosed by the company. We provide the calendar of dividend payments for various companies.

**PYTHON**
_Using Requests:_

```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/dividends?d1=2023-01-01&d2=2024-01-01&c={your_api_key}'
data = requests.get(url).json()
print(data)
```

_Or using our package:_

```python
te.getDividends(startDate='2023-01-01', endDate='2024-01-01')
```

**JS**
_Using Requests:_

```js
const axios = require("axios");
(async () => {
  const your_api_key = "your_api_key";
  const response = await axios.get(
    `https://api.tradingeconomics.com/dividends?d1=2023-01-01&d2=2024-01-01&c=${your_api_key}`
  );
  console.log(response.data);
})();
```

_Or using our package:_

```javascript
data = te
  .getDividends((start_date = "2023-01-01"), (end_date = "2024-01-01"))
  .then(function (data) {
    console.log(data);
  });
```

**C#**
_Using Requests:_

```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/dividends?d1=2023-01-01&d2=2024-01-01&c=your_api_key");
```

**JSON**
```text
https://api.tradingeconomics.com/dividends/d1=yyyy-mm-dd&d2=yyyy-mm-dd&f=json?c={your_api_key}
```

```json
[
  {
    "DateEx": "2023-01-03",
    "Symbol": "CMCSA:US            ",
    "Name": "Comcast",
    "Actual": 0.27,
    "DatePayment": "2023-01-25",
    "Currency": "USD",
    "LastUpdate": "2023-09-27T19:03:00"
  },
  {
    "DateEx": "2023-01-04",
    "Symbol": "CPB:US              ",
    "Name": "Campbell Soup",
    "Actual": 0.37,
    "DatePayment": "2023-01-30",
    "Currency": "USD",
    "LastUpdate": "2023-09-27T19:15:00"
  },
  {
    "DateEx": "2023-01-04",
    "Symbol": "CSCO:US             ",
    "Name": "Cisco Systems",
    "Actual": 0.38,
    "DatePayment": "2023-01-25",
    "Currency": "USD",
    "LastUpdate": "2023-09-27T19:20:00"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/dividends/d1=yyyy-mm-dd&d2=yyyy-mm-dd&f=csv?c={your_api_key}
```

```bash
DateEx,Symbol,Name,Actual,DatePayment,Currency,LastUpdate
2023-01-03,CMCSA:US            ,Comcast,0.27,2023-01-25,USD,9/27/2023 7:03:00 PM
2023-01-04,CPB:US              ,Campbell Soup,0.37,2023-01-30,USD,9/27/2023 7:15:00 PM
2023-01-04,CSCO:US             ,Cisco Systems,0.38,2023-01-25,USD,9/27/2023 7:20:00 PM
```

**HTML**
```text
https://api.tradingeconomics.com/dividends/d1=yyyy-mm-dd&d2=yyyy-mm-dd?c={your_api_key}
```

| DateEx     | Symbol   | Name          | Actual | DatePayment | Currency | LastUpdate |
| ---------- | -------- | ------------- | ------ | ----------- | -------- | -------------------- |
| 2023-01-03 | CMCSA:US | Comcast       | 0.27   | 2023-01-25  | USD      | 9/27/2023 7:03:00 PM |
| 2023-01-04 | CPB:US   | Campbell Soup | 0.37   | 2023-01-30  | USD      | 9/27/2023 7:15:00 PM |
| 2023-01-04 | CSCO:US  | Cisco Systems | 0.38   | 2023-01-25  | USD      | 9/27/2023 7:20:00 PM |

## By date and symbol

**PYTHON**
_Using Requests:_

```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/dividends/symbol/aapl:us?d1=2023-01-01&d2=2024-01-01&c={your_api_key}'
data = requests.get(url).json()
print(data)
```

_Or using our package:_

```python
te.getDividends(symbols = 'aapl:us', startDate='2023-01-01', endDate='2024-01-01')
```

**JS**
_Using Requests:_

```js
const axios = require("axios");
(async () => {
  const your_api_key = "your_api_key";
  const response = await axios.get(
    `https://api.tradingeconomics.com/dividends/symbol/aapl:us?d1=2023-01-01&d2=2024-01-01&c=${your_api_key}`
  );
  console.log(response.data);
})();
```

_Or using our package:_

```javascript
data = te
  .getDividends(
    (symbol = "aapl:us"),
    (start_date = "2023-01-01"),
    (end_date = "2024-01-01")
  )
  .then(function (data) {
    console.log(data);
  });
```

**C#**
_Using Requests:_

```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/dividends/symbol/aapl:us?d1=2023-01-01&d2=2024-01-01&c=your_api_key");
```

**JSON**
```text
https://api.tradingeconomics.com/dividends/symbol/{symbol}?c={your_api_key}&d1=yyyy-mm-dd&d2=yyyy-mm-dd&f=json
```

```json
[
  {
    "DateEx": "2023-02-10",
    "Symbol": "AAPL:US             ",
    "Name": "Apple",
    "Actual": 0.23,
    "DatePayment": "2023-02-16",
    "Currency": "USD",
    "LastUpdate": "2023-09-27T17:21:00"
  },
  {
    "DateEx": "2023-05-12",
    "Symbol": "AAPL:US             ",
    "Name": "Apple",
    "Actual": 0.24,
    "DatePayment": "2023-05-18",
    "Currency": "USD",
    "LastUpdate": "2023-09-27T17:21:00"
  },
  {
    "DateEx": "2023-08-11",
    "Symbol": "AAPL:US             ",
    "Name": "Apple",
    "Actual": 0.24,
    "DatePayment": "2023-08-17",
    "Currency": "USD",
    "LastUpdate": "2023-09-27T17:21:00"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/dividends/symbol/{symbol}?c={your_api_key}&d1=yyyy-mm-dd&d2=yyyy-mm-dd&f=csv
```

```bash
DateEx,Symbol,Name,Actual,DatePayment,Currency,LastUpdate
2023-02-10,AAPL:US             ,Apple,0.23,2023-02-16,USD,9/27/2023 5:21:00 PM
2023-05-12,AAPL:US             ,Apple,0.24,2023-05-18,USD,9/27/2023 5:21:00 PM
2023-08-11,AAPL:US             ,Apple,0.24,2023-08-17,USD,9/27/2023 5:21:00 PM
```

**HTML**
```text
https://api.tradingeconomics.com/dividends/symbol/{symbol}?c={your_api_key}&d1=yyyy-mm-dd&d2=yyyy-mm-dd
```

| DateEx     | Symbol  | Name  | Actual | DatePayment | Currency | LastUpdate           |
| ---------- | ------- | ----- | ------ | ----------- | -------- | -------------------- |
| 2023-02-10 | AAPL:US | Apple | 0.23   | 2023-02-16  | USD      | 9/27/2023 5:21:00 PM |
| 2023-05-12 | AAPL:US | Apple | 0.24   | 2023-05-18  | USD      | 9/27/2023 5:21:00 PM |
| 2023-08-11 | AAPL:US | Apple | 0.24   | 023-08-17   | USD      | 9/27/2023 5:21:00 PM |

## Response fields

| Field       | Type   | Description                                                                                        | Example               |
| ----------- | ------ | -------------------------------------------------------------------------------------------------- | --------------------- |
| DateEx      | string | Ex-dividend date — the date on or after which buyers are **not** entitled to the upcoming dividend | "2023-01-03"          |
| Symbol      | string | Unique Trading Economics symbol identifying the company                                            | "CMCSA:US"            |
| Name        | string | Company name                                                                                       | "Comcast"             |
| Actual      | number | Dividend per share declared by the company                                                         | 0.27                  |
| DatePayment | string | Payment date — the date the dividend is actually paid to shareholders                              | "2023-01-25"          |
| Currency    | string | Currency in which the dividend is paid                                                             | "USD"                 |
| LastUpdate  | string | Timestamp of the latest data update in UTC                                                         | "2023-09-27T19:03:00" |

