title: How do I check if a youtube video is blocked/restricted/deleted
body: <p>I have a website that stores users playlists, but sometimes the videos that were once usable get removed due to copyright violations, or get deleted. 
  I would like my website to automatically detect when this happens, so it can delete the video, or replace it.
  I'v done a lot of research trying to figure this out but nothing is working.
  for example, the api data request for the youtube video ID IcmTyiVkhGk (which is unavailable due to copyright) doesn't have a yt:state variable (which would indicate it is restricted), under access control, it does not say restricted or anything similar. How do you check for this type of data?</p>
  
  <p><a href="http://gdata.youtube.com/feeds/api/videos/IcmTyiVkhGk?v=2&amp;prettyprint=true">http://gdata.youtube.com/feeds/api/videos/IcmTyiVkhGk?v=2&amp;prettyprint=true</a></p>
  
  <p>basically using this to get the data, but no relevant data is there I don't think.</p>
  
  <p>this site is able to detect what regions the site is available in:
  <a href="http://polsy.org.uk/stuff/ytrestrict.cgi?ytid=IcmTyiVkhGk">http://polsy.org.uk/stuff/ytrestrict.cgi?ytid=IcmTyiVkhGk</a>
  Does anyone know how this works?</p>