viewer api