get data via api instead of filesystem