calling api to get scores
frontend