{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mediacaption-api/json-schema/mediacaption-api-transcript-request-schema.json",
  "title": "TranscriptRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mediacaption-api-transcripts-api-openapi.yml#/components/schemas/TranscriptRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "YouTube video URL. Required when videoId is omitted."
    },
    "videoId": {
      "type": "string",
      "description": "YouTube video ID. Required when url is omitted."
    },
    "language": {
      "$ref": "#/$defs/LanguageTag"
    }
  },
  "anyOf": [
    {
      "required": [
        "url"
      ]
    },
    {
      "required": [
        "videoId"
      ]
    }
  ],
  "$defs": {
    "LanguageTag": {
      "type": "string",
      "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
    }
  }
}