I am fetching data from YouTube channels using file_get_contents. Some channels, although they exist in reality, have URLs that do not open (404 not found). When accessing the channel using a different username and clicking on the about page, the URL that was previously showing 404 not found becomes active. When directly clicked, it shows 404 not found, but it works when clicking on the other URL. I don't normally know the accessible URLs; I found them on Google. I believe this is a YouTube bug. How can I overcome this issue? My goal is to be able to access those URLs that actually exist but are not opening. Example url, there are 100s of problematic urls like these:
problem url: https://www.youtube.com/@budhasubbamusic/about (Clicking on this will not open.)
active url: https://www.youtube.com/channel/UCNR1KcWXj7zpWQFJtU3ddYg (Click on this and then click on the about page, it will revert to the same state as the unresponsive, 404 not found URL above. So, in reality, the URL above exists.)
p: https://www.youtube.com/@PrettyRomantic/about
a: https://www.youtube.com/channel/UCrvdMsIjkBv5VPUMZjSojaA
p: https://www.youtube.com/@KurulusOsman/about
a: https://www.youtube.com/channel/UCGR1XmkoQedeJMT2ajRHvsw
https://www.youtube.com/@EMHD/about
https://www.youtube.com/c/EkremMontage
https://www.youtube.com/@DrHazemShouman/about
https://www.youtube.com/DrHazemShouman
https://www.youtube.com/@GoalBrasil/about
https://www.youtube.com/c/goalbrasil
https://www.youtube.com/@AFKEER/about
https://www.youtube.com/c/AFKEER/
?