How can i get last online activity of zoom room and status (online and offline) / Remove license based on activity

How can i get last online activity(date and time) of zoom room and status (online and offline) of all zoom rooms so that I can remove license automatically of unused zoom rooms automatically via script?

Hi @pvarde
thanks for reaching out to the Zoom Developer forum and welcome to our community! I am happy to help here!
Here is a link to our Rest API that you can use for Zoom Rooms
https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#tag/Zoom-Rooms