Upload, tag and share your videos worldwide!
Sign Up | Log In | Help
  My Videos | My Favorites | My Messages | My Subscriptions | My Playlists | My Profile  
Developer API: Introduction
Getting Started

First, you must have a developer ID. If you do not have one, you can request one by creating a developer profile.

As a sneak preview of the ease-of-use of the API, request the following URL in your web browser to request your own user profile:

You should see results like the following:

<?xml version="1.0" encoding="utf-8"?>
<ut_response status="ok">
                <about_me>YouTube rocks!!</about_me>
                .... and more ....

To maintain backward-compatibility, we have retained the older XML-based API. The older documentation can be found here.

Result Format

All API calls return an XML document. Successful API calls return an XML document of the following form:

<ut_response status="ok">
    ... response XML document ...

Failed API calls return an XML document as follows:

<ut_response status="fail">
                <description>Missing dev_id parameter.</description>

The code element provides the machine-friendly error code that your application can use to determine the error type and handle it appropriately. The description element provides you with a human-readable description of the error.

API Call Interfaces

There are two styles of API calls that you can mix-and-match at your convenience, REST and XML-RPC

What's New | About Us | Help | Developers | Terms of Use | Privacy Policy | Jobs

Copyright © 2005 YouTube, LLC™ |