add to_csv method for converting API data