My favorites | English | Sign in

More personalization in Google Friend Connect New!

YouTube APIs and Tools

YouTube logo

Developer's Guide: Data API Protocol – Retrieving Data for a Single Video

To retrieve information about a single video, you can submit an HTTP GET request to the following URL. (You need to replace the text videoid with the video's actual video ID.)

http://gdata.youtube.com/feeds/api/videos/videoid

Note: The video ID for a video is identified in feed entries by the <yt:videoid> tag. This tag appears in video feed entries – including standard feeds, search results, user-uploaded video feeds, etc. – as well as in favorite video feed entries, playlist feed entries, inbox feed entries and several types of activity feed entries.

The API response to a request for a single video feed entry is an Atom entry that contains information about the video. The root tag of the response is <entry>. The entry itself contains the same tags as the sample feed entry in the Understanding video feeds and entries section.

Retrieving information about the currently logged-in user's videos

To retrieve the most up-to-date information for a video uploaded by the currently logged-in user, you need to submit an authenticated HTTP GET request to the following URL:

http://gdata.youtube.com/feeds/api/users/USER_ID/uploads/videoid

You can also retrieve the most up-to-date information for the currently logged-in user by requesting the user's uploaded videos feed from the following URL. Note that your request can use the start-index or max-results parameters but cannot use any other request parameters.

http://gdata.youtube.com/feeds/api/users/default/uploads

For more information, please see the Checking the status of an uploaded video section.