Vincent Leung .NET Tech Clips

The latest tech clips from the .NET community

YouTube Data API – Google Code


 

What is the YouTube Data API?

The YouTube Data API offers a simple and powerful way to access YouTube’s content in the form of Google Data API feeds. Your client application can request a list of videos that match specific search criteria, get access to the most popular YouTube videos, or get public information about YouTube users (such as playlists, subscriptions, or contacts).

The YouTube Data API is based on the Atom 1.0 and RSS 2.0 syndication formats and the Atom Publishing Protocol. Learn more about Google Data APIs.

How do I start?

If you’re new to the YouTube Data API, here’s how we recommend you get started:

  1. Get familiar with the GData Google Data APIs.
  2. Read the YouTube Data API Developer’s Guide.
  3. Refer to the YouTube Data API Reference Guide as needed.
  4. YouTube Data API – Google Code Home Page

GData

  1. Client Libraries 
  2. Sample Code
  3. Batch Processing allows you to execute multiple operations in 1 request.
  4. Authentication - Desktop/Web (ClientLogin/AuthSub) 

.NET

.NET GData Client Library Developer’s Guide

This document provides a set of examples of common uses of the C# version of the client library, followed by other information about writing GData clients. At the end of this document is a link to the reference documentation for the C# client library, in NDoc format. Nothing YouTube Specific inside.

 .NET GData Sample

These samples can be found in the downloadable .NET client library package. For more information, see the .NET client library developer’s guide, or download the .NET client library from google code.

clients/cs/samples/blogger/
GUI application to edit a Blogger feed.
clients/cs/samples/calendar/
GUI application to browse a calendar.
clients/cs/samples/codesearch/
GUI application to query Google Code Search.
clients/cs/samples/gbase/
Command line clients for querying and manipulating a Google Base feed.
clients/cs/samples/insert/
Simple client that inserts a hardwired entry into a calendar.
clients/cs/samples/read/
Simple client that pulls data from a calendar.
clients/cs/samples/spreadsheets/
GUI aplication to manipulate a spreadsheet.
clients/cs/samples/update/
Simple client that modifies some entries in a calendar.

 

Google Data APIs Protocol Basics

About these ads

May 29, 2008 - Posted by | Hobbies

3 Comments »

  1. [...] — vincenthome  Update: Get the latest youtube api .net framework. check out my other post here . This example shows how to use Google Data API to query and obtain videos from YouTube. There is [...]

    Pingback by Querying Youtube API using C# & Google Data APIs Client Libraries « vincenthome’s Software Development | June 19, 2008 | Reply

  2. Thanks for this information :)

    Comment by Sun Location Vacances | October 20, 2008 | Reply

  3. i am new to Youtube API and going through the Youtube Developer’s
    Guide to run the test application:
    i just follow the guide about always some problems came out:

    For instance::
    i am using this code in aspx.cs file

    static void printVideoFeed(YouTubeFeed feed)
    {
    foreach (YouTubeEntry entry in feed.Entries)
    {
    printVideoEntry(entry);
    }
    }

    static void printVideoEntry( Video video)
    {
    ….. just copy from the .net guide..
    }

    But the VS 2008 always says

    Error 4 Argument ’1′: cannot convert from
    ‘Google.GData.Client.Feed’ to
    ‘Google.GData.YouTube.YouTubeFeed’.
    However, how to change the YoutubeEntry to Video?!. Here.?
    Any suggestion. thx in advanced..

    Comment by kimialex92 | April 6, 2009 | Reply


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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: