{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-live-stream-schema.json",
  "title": "LiveStream",
  "description": "A live stream describes a live ingestion point.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtube-youtube-live-streams-api-openapi.yml#/components/schemas/LiveStream",
  "properties": {
    "cdn": {
      "$ref": "#/$defs/CdnSettings",
      "description": "The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube."
    },
    "status": {
      "$ref": "#/$defs/LiveStreamStatus",
      "description": "The status object contains information about live stream's status."
    },
    "contentDetails": {
      "$ref": "#/$defs/LiveStreamContentDetails",
      "description": "The content_details object contains information about the stream, including the closed captions ingestion URL."
    },
    "id": {
      "description": "The ID that YouTube assigns to uniquely identify the stream.",
      "type": "string"
    },
    "kind": {
      "default": "youtube#liveStream",
      "type": "string",
      "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#liveStream\"."
    },
    "etag": {
      "description": "Etag of this resource.",
      "type": "string"
    },
    "snippet": {
      "$ref": "#/$defs/LiveStreamSnippet",
      "description": "The snippet object contains basic details about the stream, including its channel, title, and description."
    }
  },
  "type": "object",
  "$defs": {
    "CdnSettings": {
      "properties": {
        "ingestionInfo": {
          "$ref": "#/$defs/IngestionInfo",
          "description": "The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube."
        },
        "format": {
          "type": "string",
          "description": "The format of the video stream that you are sending to Youtube. ",
          "deprecated": true
        },
        "ingestionType": {
          "description": " The method or protocol used to transmit the video stream.",
          "type": "string",
          "enum": [
            "rtmp",
            "dash",
            "webrtc",
            "hls"
          ]
        },
        "resolution": {
          "enum": [
            "240p",
            "360p",
            "480p",
            "720p",
            "1080p",
            "1440p",
            "2160p",
            "variable"
          ],
          "description": "The resolution of the inbound video data.",
          "type": "string"
        },
        "frameRate": {
          "enum": [
            "30fps",
            "60fps",
            "variable"
          ],
          "description": "The frame rate of the inbound video data.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Brief description of the live stream cdn settings."
    },
    "IngestionInfo": {
      "type": "object",
      "properties": {
        "backupIngestionAddress": {
          "description": "The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.",
          "type": "string"
        },
        "rtmpsBackupIngestionAddress": {
          "type": "string",
          "description": "This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams."
        },
        "rtmpsIngestionAddress": {
          "type": "string",
          "description": "This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams."
        },
        "streamName": {
          "description": "The stream name that YouTube assigns to the video stream.",
          "type": "string"
        },
        "ingestionAddress": {
          "description": "The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL. Depending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or you may need to concatenate them in the following format: *STREAM_URL/STREAM_NAME* ",
          "type": "string"
        }
      },
      "description": "Describes information necessary for ingesting an RTMP, HTTP, or SRT stream."
    },
    "LiveStreamConfigurationIssue": {
      "properties": {
        "description": {
          "description": "The long-form description of the issue and how to resolve it.",
          "type": "string"
        },
        "type": {
          "enum": [
            "gopSizeOver",
            "gopSizeLong",
            "gopSizeShort",
            "openGop",
            "badContainer",
            "audioBitrateHigh",
            "audioBitrateLow",
            "audioSampleRate",
            "bitrateHigh",
            "bitrateLow",
            "audioCodec",
            "videoCodec",
            "noAudioStream",
            "noVideoStream",
            "multipleVideoStreams",
            "multipleAudioStreams",
            "audioTooManyChannels",
            "interlacedVideo",
            "frameRateHigh",
            "resolutionMismatch",
            "videoCodecMismatch",
            "videoInterlaceMismatch",
            "videoProfileMismatch",
            "videoBitrateMismatch",
            "framerateMismatch",
            "gopMismatch",
            "audioSampleRateMismatch",
            "audioStereoMismatch",
            "audioCodecMismatch",
            "audioBitrateMismatch",
            "videoResolutionSuboptimal",
            "videoResolutionUnsupported",
            "videoIngestionStarved",
            "videoIngestionFasterThanRealtime"
          ],
          "description": "The kind of error happening.",
          "type": "string"
        },
        "severity": {
          "type": "string",
          "description": "How severe this issue is to the stream.",
          "enum": [
            "info",
            "warning",
            "error"
          ]
        },
        "reason": {
          "description": "The short-form reason for this issue.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "LiveStreamContentDetails": {
      "properties": {
        "closedCaptionsIngestionUrl": {
          "description": "The ingestion URL where the closed captions of this stream are sent.",
          "type": "string"
        },
        "isReusable": {
          "description": "Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times. If you set this value to false, then the stream will not be reusable, which means that it can only be bound to one broadcast. Non-reusable streams differ from reusable streams in the following ways: * A non-reusable stream can only be bound to one broadcast. * A non-reusable stream might be deleted by an automated process after the broadcast ends. * The [`liveStreams.list`](https://developers.google.com/youtube/data/live/reference/rest/v3/liveStreams/list) method does not list non-reusable streams if you call the method and set the mine parameter to true. The only way to use that method to retrieve the resource for a non-reusable stream is to use the id parameter to identify the stream.",
          "type": "boolean"
        }
      },
      "description": "Detailed settings of a stream.",
      "type": "object"
    },
    "LiveStreamHealthStatus": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "The status code of this stream",
          "enum": [
            "good",
            "ok",
            "bad",
            "noData",
            "revoked"
          ]
        },
        "configurationIssues": {
          "items": {
            "$ref": "#/$defs/LiveStreamConfigurationIssue"
          },
          "description": "The configurations issues on this stream",
          "type": "array"
        },
        "lastUpdateTimeSeconds": {
          "type": "string",
          "description": "The last time this status was updated (in seconds)",
          "format": "uint64"
        }
      }
    },
    "LiveStreamSnippet": {
      "type": "object",
      "properties": {
        "title": {
          "description": "The stream's title. The value must be between 1 and 128 characters long.",
          "type": "string"
        },
        "channelId": {
          "description": "The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.",
          "type": "string"
        },
        "isDefaultStream": {
          "type": "boolean"
        },
        "publishedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the stream was created."
        },
        "description": {
          "type": "string",
          "description": "The stream's description. The value cannot be longer than 10000 characters."
        }
      }
    },
    "LiveStreamStatus": {
      "description": "Brief description of the live stream status.",
      "properties": {
        "streamStatus": {
          "type": "string",
          "enum": [
            "created",
            "ready",
            "active",
            "inactive",
            "error"
          ]
        },
        "healthStatus": {
          "$ref": "#/$defs/LiveStreamHealthStatus",
          "description": "The health status of the stream."
        }
      },
      "type": "object"
    }
  }
}