Fetching data from API using lazy loading