Need El Capitan installer. Any Apple official link won't work. Need alternatives
If you visit https://itunes.apple.com/app/os-x-el-capitan/id1147835434?mt=12 on a newer macOS version, you should be able to download it via the App Store.

Source: MacPaw: Download old macOS versions