Api code used for Sweetch