Repackage
API

GET /channels/:id/transcripts

Fetch transcripts for the most recent uploads from a YouTube channel. Pro plan required.

Pulls a channel's recent uploads (newest first) and returns transcripts for each.

GET https://api.repackage.app/channels/:id/transcripts

Requires the Pro plan. Free orgs receive 403 feature_not_in_plan.

Path parameters

NameDescription
idYouTube channel handle (@channelName), channel ID (UC...), or full channel URL.

Query parameters

NameTypeDefaultDescription
limitnumber25Max videos to fetch from the channel's recent uploads. Capped at 100 for Pro.

Example

curl "https://api.repackage.app/channels/@MIT/transcripts?limit=5" \
  -H "Authorization: Bearer rpk_your_key_here"

Response

200 OK

{
  "channel": {
    "id": "UCMITOpenCourseWare",
    "name": "MIT OpenCourseWare",
    "handle": "@MIT"
  },
  "results": [
    {
      "videoId": "...",
      "ok": true,
      "metadata": { "...": "..." },
      "transcript": { "en": [] },
      "cached": false
    }
  ],
  "summary": {
    "total": 5,
    "succeeded": 5,
    "failed": 0,
    "cached": 0,
    "fetched": 5
  }
}

Pagination

This endpoint is intentionally simple — it returns the most recent limit videos. For systematic backfills of an entire channel's archive, contact us; large-scale historical pulls are better served by a job queue (coming soon).

Quota

One quota count per successful, non-cached transcript.

Errors

  • 404 channel_not_found — Handle / ID can't be resolved.
  • 402 plan_limit_exceeded — Quota would be exceeded.
  • 403 feature_not_in_plan — Free plan.

On this page