Forum Discussion
Unauthorized 401 API powerbi admin activity events
- 1 year ago
Hi Anonymous ,
No, the GetActivityEvents API only supports retrieving one day of data per request.You cannot get multiple days in a single call.
As a Workaround to get more than one day of metrics, you need to call the API repeatedly, once per day, using different startDateTime and endDateTime values for each date.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly.
Thank you.
- Anonymous1 year ago
Hey VE I made a python script to loop over the api call to get all events for the past 30 days as you can make 200 api calls in an hour so I am following that process and ingesting my data into azure sql db! Thank you for your help!
Hi Anonymous ,
Thank you for sharing the working solution.Please accept the helpful solution as answer so that it will he helpful for others in the community to find the solution easily.
Thank you.