add api to get trees by votes