How to get info on dividends paid to my account via API?

I trade live and I can see dividends paid to me in the end-of-month PDF statements. Is there a way to request this info using API? I do it in python but any information would be helpful. I just need to know the endpoint and the request’s format. Thanks!

@arrow107 The account_activities endpoint can be used to fetch dividends. Enter DIV for the activity type. Unfortunately, I don’t think this endpoint is supported directly in some of the SDKs (including alpaca-py). You will need to use a base get method and explicitly provide the endpoint and parameters. There’s info in the docs here.