C# for Searching YouTube

See below code fragment for simple searching on YouTube using the Google Data API.  First get a copy of the Google API .NET Libraries, add a reference to the Google.GData.Client in your Visual Studio project, then use the namespaces Google.GData.Client and Google.GData.Extensions.  Within the WriteResult method I simply use the AtomFeed.SaveToXml(XmlWriter) method to dump the results.

Below is a snippet of the output from AtomFeed.SaveToXml.  Along with other attributes the AtomFeed contains data on who published the clip, when they published it, comments made on the clip, etc…

This entry was posted in .NET. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s