{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiopod-ai/json-schema/audiopod-ai-video-info-response-schema.json",
  "title": "VideoInfoResponse",
  "description": "Response with video information",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiopod-ai-media-extraction-api-openapi.yml#/components/schemas/VideoInfoResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Video ID"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title",
      "description": "Video title"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "Video description"
    },
    "uploader": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Uploader",
      "description": "Channel name or username"
    },
    "duration": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration",
      "description": "Duration in seconds"
    },
    "is_live": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Live",
      "description": "True when the source is a live stream"
    },
    "upload_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Upload Date",
      "description": "Upload date (YYYYMMDD)"
    },
    "view_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "View Count",
      "description": "View count"
    },
    "thumbnail_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Thumbnail Url",
      "description": "Thumbnail URL"
    },
    "platform": {
      "$ref": "#/$defs/VideoPlatform",
      "description": "Video platform"
    },
    "webpage_url": {
      "type": "string",
      "title": "Webpage Url",
      "description": "Original webpage URL"
    },
    "available_formats": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/VideoFormatInfo"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Available Formats",
      "description": "Available formats"
    },
    "estimated_credits": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Estimated Credits",
      "description": "Estimated credits for download"
    }
  },
  "type": "object",
  "required": [
    "id",
    "platform",
    "webpage_url"
  ],
  "$defs": {
    "VideoFormatInfo": {
      "properties": {
        "format_id": {
          "type": "string",
          "title": "Format Id",
          "description": "Identifier for this format, as returned in the format list"
        },
        "format_note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Format Note",
          "description": "Human readable format description"
        },
        "ext": {
          "type": "string",
          "title": "Ext",
          "description": "File extension"
        },
        "resolution": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resolution",
          "description": "Video resolution (e.g., 1920x1080)"
        },
        "fps": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fps",
          "description": "Frames per second"
        },
        "tbr": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tbr",
          "description": "Total bitrate"
        },
        "vbr": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vbr",
          "description": "Video bitrate"
        },
        "abr": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Abr",
          "description": "Audio bitrate"
        },
        "asr": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Asr",
          "description": "Audio sample rate"
        },
        "vcodec": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vcodec",
          "description": "Video codec"
        },
        "acodec": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Acodec",
          "description": "Audio codec"
        },
        "filesize": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Filesize",
          "description": "File size in bytes"
        },
        "quality": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Quality",
          "description": "Quality score"
        },
        "has_video": {
          "type": "boolean",
          "title": "Has Video",
          "description": "Has video stream",
          "default": false
        },
        "has_audio": {
          "type": "boolean",
          "title": "Has Audio",
          "description": "Has audio stream",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "format_id",
        "ext"
      ],
      "title": "VideoFormatInfo",
      "description": "Information about a specific video format"
    },
    "VideoPlatform": {
      "type": "string",
      "enum": [
        "youtube",
        "tiktok",
        "instagram",
        "vimeo",
        "spotify",
        "twitter",
        "facebook",
        "twitch",
        "dailymotion",
        "other"
      ],
      "title": "VideoPlatform",
      "description": "Supported video platforms"
    }
  }
}