Crowd API for Active and Inactive users status

Searching for crowd API to get Active and Inactive users

I am developing a python application to automate deactivation of users that have not access the platform for over 30days but I can not find the API for that support that function, however I was able to get the API for fetching all users both actives and inactive. hence i needed to filter the users and deactivate the inactive ones.