

Use the access_token query parameter like this: ?access_token= oauth2-token.You can provide an OAuth 2.0 token in either of the following ways: The API supports the OAuth 2.0 authentication protocol. For example, a request to retrieve a user's uploaded videos may also contain private videos if the request is authorized by that specific user. In addition, some API methods for retrieving resources may support parameters that require authorization or may contain additional metadata when requests are authorized. You must also send an authorization token for any request that retrieves the authenticated user's private data. You must send an authorization token for every insert, update, and delete request.

Your API key is available in the Developer Console's API Access pane for your project. The following requirements apply to YouTube Data API requests:Įvery request must either specify an API key (with the key parameter) or provide an OAuth 2.0 token. The guide also lists one or more supported methods ( LIST, POST, DELETE, etc.) for each resource type and explains how to use those methods in your application. For each resource type, the guide lists one or more data representations, and resources are represented as JSON objects. A resource represents a type of item that comprises part of the YouTube experience, such as a video, a playlist, or a subscription. This reference guide explains how to use the API to perform all of these operations. The API also supports methods to insert, update, or delete many of these resources. The lists below identify the different types of resources that you can retrieve using the API. The YouTube Data API lets you incorporate functions normally executed on the YouTube website into your own website or application.
