get department list from API