Might want to explore something along these lines with an API call:
GET /api/users?filters[$or][0][wasBetaUser]=true&filters[$or][0][is_sub_user]=false&filters[$or][1][wasBetaUser]=true&filters[$or][1][Subscription.ID]=4
Also make sure the api call for users is available in your Roles settings.