Move api call server side