I have the problem that I cannot access a few pages. This is the warning code I get:
Warning: file_get_contents(https://www.youtube.com/watch?v=jNQXAC9IVRw): failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests
in /home/vol15_5/epizy.com/epiz_25970132/htdocs/test.php on line 19
The 429 status code means that something (probably YouTube) is saying that too many requests are coming from the IP address. It could be that your site, or another site on the server, is trying to load too much data from YouTube, and YouTube says it’s enough.
This is not really something that can be fixed with any kind of scripting or library.
Are you trying to access YouTube specifically from your site a lot?