Function getSuggestionsApi