{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vidwords-com/json-schema/vidwords-com-channels-response-schema.json",
  "title": "ChannelsResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vidwords-com-openapi.json#/components/schemas/ChannelsResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChannelResult"
      }
    }
  },
  "$defs": {
    "ChannelResult": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The channel identifier you sent, echoed back verbatim (handle, URL, or UC… id)."
        },
        "channelId": {
          "type": "string",
          "description": "The resolved canonical channel id, always in UC… form."
        },
        "title": {
          "type": "string",
          "description": "Channel title."
        },
        "videoCount": {
          "type": "integer",
          "description": "Number of videos returned in `videos` — not the channel total."
        },
        "truncated": {
          "type": "boolean",
          "description": "True when the channel has more uploads than the 500-video ceiling and the list was cut short."
        },
        "videos": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Video id, usable directly as an entry in `ids` for POST /api/transcripts."
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Video title, or null when unavailable."
              },
              "author": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Channel name, or null when unavailable."
              }
            }
          },
          "description": "Uploads newest first, capped at 500 (see `truncated`). Absent when `error` is set."
        },
        "error": {
          "type": [
            "string",
            "null"
          ],
          "description": "Present instead of `videos` when a channel could not be fetched. `invalid_id` not a handle/URL/UC… id · `channel_not_found` no such channel · `tier_limit` exceeded your per-call batch cap and was not processed · `fetch_failed` upstream fetch failed, retryable · `service_paused` temporarily paused by the cost breaker, retryable · `internal` unexpected server error.",
          "enum": [
            "invalid_id",
            "channel_not_found",
            "tier_limit",
            "fetch_failed",
            "service_paused",
            "internal"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "Human-readable detail accompanying `error`."
        }
      }
    }
  }
}