The Developers Guide for the YouTube API is located at http://code.google.com/apis/youtube/developers_guide_protocol.html.
The Developers Guide contains information on both the protocol used by the API as well as language-specific examples for performing the major operations. Also see the Google data API client libraries.