{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transcriptapi-com/json-schema/transcriptapi-com-app-api-v2-youtube-schemas-video-info-response-schema.json",
  "title": "VideoInfoResponse",
  "description": "Response for `GET /info` — metadata + available languages (non-billable).",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transcriptapi-com-openapi.json#/components/schemas/app__api__v2__youtube__schemas__VideoInfoResponse",
  "properties": {
    "video_id": {
      "type": "string",
      "title": "Video Id",
      "description": "YouTube video ID"
    },
    "metadata": {
      "anyOf": [
        {
          "$ref": "#/$defs/app__api__v2__youtube__schemas__Metadata"
        },
        {
          "type": "null"
        }
      ]
    },
    "available_languages": {
      "items": {
        "$ref": "#/$defs/AvailableLanguage"
      },
      "type": "array",
      "title": "Available Languages",
      "description": "Available transcript languages (includes 'asr' if auto-generated captions exist)"
    }
  },
  "type": "object",
  "required": [
    "video_id"
  ],
  "$defs": {
    "AvailableLanguage": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code",
          "description": "Normalized language code, or 'asr' for auto-generated"
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Human-readable language name"
        },
        "kind": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "manual",
                "auto"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Kind",
          "description": "What this code returns: 'manual' = human-made captions, 'auto' = YouTube's auto-generated captions. A plain code (e.g. `ru`) returns the manual track when one exists, otherwise the auto track, so it can be 'auto' too; `asr-<code>` is always 'auto'."
        }
      },
      "type": "object",
      "required": [
        "code",
        "name"
      ],
      "title": "AvailableLanguage",
      "description": "A language available for a video (PRD §5.2).\n\n`code` is a normalized base code (`en`, `de`, `zh`) or the reserved `asr`\npseudo-code for auto-generated captions."
    },
    "app__api__v2__youtube__schemas__Metadata": {
      "properties": {
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "author_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author Name"
        },
        "author_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author Url"
        },
        "thumbnail_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Thumbnail Url"
        }
      },
      "type": "object",
      "title": "Metadata"
    }
  }
}