0

I am working on ASP>Net site and my client wants when any user insert a youtube URL in his/her profile at that time my c# code or any JQuery Code or any youtube API code check this URL that it is exist on youtube.com or not. I have found many things but most of them give us string matcher or URL pattern checker code but my requirement is check this URL i.e. exist on youtube.com and this video is show for public video.

Can anyone help me out.....

Gaurav Agrawal
  • 4,355
  • 10
  • 42
  • 61

1 Answers1

1
  1. Match pattern of URL against known pattern of YouTube video See Stack Overflow example
  2. Use AJAX call to your server to screen scrape the entered URL and check for 404 header or typical text resulting in "The video you have requested is not available." using the HTML Agility pack for c#.

I can write this for you but it will cost you. :)

Community
  • 1
  • 1
King Friday
  • 25,132
  • 12
  • 90
  • 84