get category from public api.