Wrap api in a function to allow server side access