{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vidwords-com/json-schema/vidwords-com-transcripts-response-schema.json",
  "title": "TranscriptsResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vidwords-com-openapi.json#/components/schemas/TranscriptsResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TranscriptResult"
      }
    },
    "creditsRemaining": {
      "type": "number",
      "description": "Deprecated compatibility alias for Cloud Requests remaining. Only present for direct API calls."
    },
    "cloudRequestsRemaining": {
      "type": "number",
      "description": "Cloud Requests available to this API token, including its one-time Developer Requests."
    },
    "aiUnitsRemaining": {
      "type": "number",
      "description": "AI Processing Units available on the account."
    }
  },
  "$defs": {
    "TranscriptResult": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The video id, echoed back. For a successful item this is the resolved 11-character YouTube id; for `invalid_id` it is the raw string you sent."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Video title, or null when metadata could not be fetched."
        },
        "author": {
          "type": [
            "string",
            "null"
          ],
          "description": "Channel name, or null when metadata could not be fetched."
        },
        "language": {
          "type": "string",
          "description": "Human-readable caption language, e.g. \"English\"."
        },
        "languageCode": {
          "type": "string",
          "description": "BCP-47 language tag for the returned captions, e.g. \"en\" or \"pt-BR\"."
        },
        "isGenerated": {
          "type": "boolean",
          "description": "True when these are YouTube auto-generated captions rather than human-authored ones."
        },
        "text": {
          "type": "string",
          "description": "Full transcript as one string"
        },
        "segments": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string",
                "description": "Cue text."
              },
              "start": {
                "type": "number",
                "description": "Cue start offset from the beginning of the video, in seconds.",
                "format": "float"
              },
              "duration": {
                "type": "number",
                "description": "How long the cue is displayed, in seconds.",
                "format": "float"
              }
            }
          },
          "description": "Timed caption cues in playback order. Absent when `error` is set."
        },
        "error": {
          "type": "string",
          "description": "Present instead of `segments` when a video was not returned. `invalid_id` not a video id/URL · `no_transcript` no captions exist · `transcripts_disabled` owner disabled captions · `video_unavailable` private/deleted/region-blocked · `age_restricted` needs sign-in · `tier_limit` exceeded your RapidAPI per-call batch cap and was not processed · `insufficient_credits` balance ran out mid-batch · `fetch_failed` upstream fetch failed, retryable · `service_paused` extraction temporarily paused by the cost breaker, retryable · `ip_blocked`/`request_blocked` upstream blocked the request, retryable · `internal` unexpected server error.",
          "enum": [
            "invalid_id",
            "no_transcript",
            "transcripts_disabled",
            "video_unavailable",
            "age_restricted",
            "tier_limit",
            "insufficient_credits",
            "fetch_failed",
            "service_paused",
            "ip_blocked",
            "request_blocked",
            "internal"
          ]
        },
        "message": {
          "type": "string",
          "description": "Human-readable detail accompanying `error`."
        },
        "source": {
          "type": "string",
          "enum": [
            "captions",
            "auto_captions",
            "transcribed",
            "browser_capture"
          ],
          "description": "Optional provenance of the returned text; use this instead of method. It describes the text, not the implementation."
        },
        "method": {
          "type": "string",
          "deprecated": true,
          "description": "Legacy extraction marker retained for existing clients. Use source for provenance; method does not identify the active model or provider."
        },
        "audioTranscriptionStatus": {
          "type": "object",
          "description": "On a captionless or audio-refused item: what happened to audio transcription. `state` is `not_requested` (transcribeAudio was false), `not_available` (`reason`: plan_required, insufficient or anonymous), `refused` (`reason`: the error code, e.g. asr_over_cap or asr_insufficient — decided before anything ran) or `failed` (`stage`: where it failed).",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "not_requested",
                "not_available",
                "refused",
                "failed"
              ]
            },
            "reason": {
              "type": "string"
            },
            "stage": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        }
      }
    }
  }
}