title: Youtube API - Extract video ID
body: <p>I am coding a functionality that allows users to enter a Youtube video URL. I would like to extract the video ID from these urls.</p>
  
  <p>Does Youtube API support some kind of function where I pass the link and it gives the video ID in return. Or do I have to parse the string myself?</p>
  
  <p>I am using PHP ... I would appreciate any pointers / code samples in this regard.</p>
  
  <p>Thanks</p>