refactoring download dataset
cases when get the data
with real api url