Api returns correct data