title: YouTube error HTTP 429 - Too Many Requests
body: <p>I have some php code that fetches a youtube link and then gets its thumbnail. For that I am using this:</p>
  
  <pre><code>$str = file_get_contents(youtubelink);
  </code></pre>
  
  <p>But I am getting this error sometimes:</p>
  
  <pre><code>Warning: file_get_contents(https://www.youtube.com/watch?v=urA28s-OGW0):     failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests in /home/mps/public_html/ajax/file.php on line 34
  </code></pre>
  
  <p>What is causing this error? How can I get rid of it? What's the limit I can access?</p>