I want to run an API call multiple times and then store the API response in an array/observable. public getProgramNamesList() { for (let i = 0; i < this.totalPages; i++) { this.accountAdminApiService.getAccountAdminProgramsBySearch((i)).subscribe((programResults: ProgramSearchResults) => { if (programResults?.data?.length) { this.totalPages = Math.ceil(programResults.totalCount / this.pageSize); this.programResults$.next(programResults.data); } }); } return this.programResults$; } I tried the above code. It is only returning the first set of results and the API is not running multiple times. Continue reading...