Method: validator.validate
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
-
This webpage documents how to use the YouTube Partner API's
validatorto validate a metadata file through aPOSTrequest tohttps://youtubepartner.googleapis.com/youtube/partner/v1/validator. -
The request requires the
onBehalfOfContentOwnerquery parameter to specify the content owner, particularly for users managing multiple content owners. -
The request body must be a
ValidateRequestobject, including the uploader name, the metadata file contents, the locale for error messages, and the resourcekind. -
The response body will include a
statusstring indicating the validation results, an array oferrorsand/orwarningsobjects, and akindstring confirming the response type. -
To use this endpoint, the request must be authorized with the
https://www.googleapis.com/auth/youtubepartnerOAuth scope.
- HTTP request
- Query parameters
- Request body
- Response body
- Authorization scopes
- ValidateRequest
- Try it!
validator.validate a metadata file.
HTTP request
POST https://youtubepartner.googleapis.com/youtube/partner/v1/validator
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
onBehalfOfContentOwner |
The |
Request body
The request body contains an instance of ValidateRequest .
Response body
Response from validation request.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"status": string,
"errors": [
{
object ( |
| Fields | |
|---|---|
status |
The validation status. |
errors[] |
The list of errors and/or warnings. |
kind |
The type of the API resource. For this operation, the value is |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/youtubepartner
For more information, see the OAuth 2.0 Overview.
ValidateRequest
Request to validate content.
| JSON representation |
|---|
{ "uploaderName": string, "content": string, "locale": string, "kind": string } |
| Fields | |
|---|---|
uploaderName |
The uploader name. |
content |
The metadata file contents. |
locale |
The desired locale of the error messages as defined in BCP 47 (http: //tools.ietf.org/html/bcp47). For example, "en-US" or "de". If not specified we will return the error messages in English ("en"). |
kind |
The type of the API resource. For this operation, the value is |