working with an api endpoint