How to get SRS stats with V2 API?

Not sure which API version does it use, but this script does it plus shows leaches: