get data from api instead of filesystem