Check If prototype link is password protected

I am creating an application where I want to know if prototypelink is not password protected and to check size of the prototype.

Is there a way through which I can these values through REST API ?