api for getting view(s)