Is there any way to hide the fields on API or Web Service response dynamically?

Is there any way to hide the fields on API or Web Service response dynamically?
You can use $select and state fields you want. A few other commands to be aware of can be seen here: jpearson.blog/.../