Youtube · Schema

VideoInsertRequest

Request body for uploading a video

GoogleMediaSocialStreamingVideoVideos

Properties

Name Type Description
snippet object
status object
View JSON Schema on GitHub

JSON Schema

youtube-videoinsertrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/VideoInsertRequest",
  "title": "VideoInsertRequest",
  "type": "object",
  "description": "Request body for uploading a video",
  "required": [
    "snippet",
    "status"
  ],
  "properties": {
    "snippet": {
      "type": "object",
      "required": [
        "title",
        "categoryId"
      ],
      "properties": {
        "title": {
          "type": "string",
          "description": "Title for the video",
          "example": "My New Video"
        },
        "description": {
          "type": "string",
          "description": "Description for the video",
          "example": "This is my new video about..."
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "example": [
            "tutorial",
            "demo"
          ]
        },
        "categoryId": {
          "type": "string",
          "description": "YouTube video category ID",
          "example": "28"
        },
        "defaultLanguage": {
          "type": "string",
          "description": "Default language of the video",
          "example": "en"
        }
      }
    },
    "status": {
      "type": "object",
      "properties": {
        "privacyStatus": {
          "type": "string",
          "enum": [
            "private",
            "public",
            "unlisted"
          ],
          "example": "public"
        },
        "embeddable": {
          "type": "boolean",
          "example": true
        },
        "license": {
          "type": "string",
          "enum": [
            "creativeCommon",
            "youtube"
          ],
          "example": "youtube"
        }
      }
    }
  }
}