API calls for barberry