As the time of writing, Confluence does not have an API that allows user to get events from the team calendar. As a workaround, I wrote a Python script that downloads and parses the ics file (choose subscribe the calendar, then you will see the URL) of the team calendar so to get the events. The source code can be found here.
Here is how it looks: