Hello HariKrishna-7067,
I see an API called "Office 365 Management Activity API" to collect data from Microsoft 365 Activity Explorer.
The Office 365 Management Activity API allows you to retrieve information about user, admin, system, and policy actions and events from Office 365 and Microsoft Entra activity logs.
To access the API from your application, you'll need to first register it in Microsoft Entra ID and configure it with appropriate permissions. This will enable your application to request the OAuth2 access tokens it needs to call the API. For more information, see Get started with Office 365 Management APIs.
Please see the below Microsoft official documentation page
https://learn.microsoft.com/en-us/office/office-365-management-api/
I hope this helps.