api to get and save scores