@PitaJ said in How to call API from client side.:

require(['api', 'translator'], (api, translator) => {
// Your code here
});

genius! and fast reply!