I need in ability to find nodes by their variables using public rest api. How can I do that?
You can create a custom repo webscript.
In that you can use lucene query to get all nodes of matching properties
Refer this documentation for search apis,
Refer this documentation to create webscript
Web scripts | Alfresco Documentation
Retrieving data ...