Recovering data from a webmail calendar

Hello, I am currently working and I am stuck on a project that requires retrieving the data (events, appointments) of an agenda (calendar) from a famous webmail (email account) (Gmail, Yahoo, Outlook ) or a website host webmail (Ionos).
I am taker of any idea (api or others) which will be able to unblock me.