readdata using api