read and set API data