Channel Processing
On-demand pipeline for ingesting a single YouTube channel into Algrow's database. Submit a job, then poll for the result. A dedicated worker picks the job up within seconds and runs the appropriate shorts or longform processor.
3 endpoints on this page
| POST /api/process-channel | Queue a single YouTube channel for on-demand ingestion |
| GET /api/process-channel/:job_id | Retrieve the current status and result of a channel processing job |
| POST /api/download-video | Download a YouTube video |
POST/api/process-channel
Queue a single YouTube channel for on-demand ingestion. Resolves the input (UC… ID, @handle, channel URL, or video URL) to a canonical channel ID and inserts a row in the processing queue. A dedicated worker picks the job up within seconds and runs the appropriate shorts or longform processor. Returns immediately with a job_id — poll GET /api/process-channel/:job_id for the result.
No daily limit.
Headers
| Authorizationstring · required | Bearer token: Bearer YOUR_API_KEY |
| Content-Typestring · required | application/json |
Request Body (JSON)
| channelstring · required | Channel identifier — UC... ID, @handle, channel URL, or any video URL from that channel. |
| typestring · required | Which processor to run: shorts or longform. The caller must choose — there is no auto-detection. |
| idempotency_keystring · optional | If a job with this key already exists, that existing job is returned instead of a new one being queued. Use this to safely retry on network errors. |
Response Fields
| job_idinteger | Unique job identifier. Use this to poll for status. |
| statusstring | One of: queued, running, completed, failed. |
| typestring | Echo of the submitted type (shorts or longform). |
| channel_inputstring | Echo of the raw input passed in the request. |
| resolved_channel_idstring | Canonical UC... channel ID we resolved the input to. |
| requested_atstring | ISO-8601 timestamp of when the job was enqueued. |
| idempotentboolean | Present and true when an existing job was returned instead of inserting a new one. |
| 200 | Queued |
| 400 | Validation error / could not resolve channel |
| 401 | Auth failed |
| 429 | Rate limit |
GET/api/process-channel/:job_id
Retrieve the current status and result of a channel processing job. Supports server-side long-polling via ?wait_seconds=N (max 30) — pass it and the server holds the connection open until the job finishes or N seconds elapse, so you get the result in one call instead of polling in a loop. Typical processing time is 30 seconds to 2 minutes depending on channel size.
No daily limit.
Path Parameters
| job_idinteger · required | The job_id returned from POST /api/process-channel. |
Query Parameters
| wait_secondsinteger · default 0 | Server-side long-poll. 0 = return current state immediately. 1–30 = hold the connection open until the job hits a terminal state (completed/failed) or this many seconds pass, whichever comes first. Capped at 30 server-side regardless of input. Recommended: wait_seconds=30 for typical polling. |
Response Fields
| idinteger | Job ID. |
| statusstring | One of: queued, running, completed, failed. |
| elapsed_secondsinteger | Seconds since the worker claimed the job. Only present while status=running. |
| duration_secondsinteger | End-to-end processing time. Present once completed or failed. |
| eligibleboolean | Whether the channel passed Algrow's inclusion rules (size, language, content type, etc.). Present once completed. |
| resultobject | Worker payload — the scraped channel data. Shape depends on type (shorts vs longform). |
| errorstring | Failure message. Only present when status=failed. |
| 200 | Success |
| 401 | Auth failed |
| 404 | Job not found |
POST/api/download-video
Download a YouTube video, audio track, or subtitle file to Algrow’s storage and return a stable public URL the caller can hand to a browser. Each unique (video, format, quality, time-range) tuple is cached for ~30 days; repeat downloads are instant from cache. Requires the generations scope. The limits are per user: Starter 5 downloads an hour and 1 at a time, Professional 100 an hour and 3 at a time, Ultimate no hourly limit and 6 at a time. Every plan gets full quality up to 1080p. Capped at 3 hours of downloaded media and 500 MB output. That cap applies to the section you request rather than the length of the source, so pass start / end to pull a clip out of a video longer than 3 hours. Subtitles have no length limit.
5 an hour on Starter, 100 on Professional, no limit on Ultimate.
Request Body (JSON)
| video_urlstring · required | YouTube video URL. Accepts watch links, youtu.be short links, and Shorts URLs. TikTok / Instagram are not supported here. |
| formatstring · optional | What to produce: video (mp4, default), audio (mp3), or subtitles (srt — English; human-authored when available, auto-generated otherwise). |
| qualitystring · optional | Video height: 360p, 480p, 720p (default), or 1080p. Ignored when format is audio or subtitles. |
| startstring | number · optional | Clip start timestamp. Accepts "1:30", "00:01:30", "90", "90s", or a raw number of seconds. Omit for the start of the video. |
| endstring | number · optional | Clip end timestamp. Same formats as start. Omit for the end of the video. Ignored when format is subtitles (always returns the full transcript). |
| 200 | Ready |
| 400 | Validation / unsupported video |
| 401 | Auth failed |
| 429 | Hourly download cap reached |
Performance. Cold downloads typically run ~60–120s for a full video. Clipped video / audio downloads scale with clip length — a 30s slice of a long video lands in ~15s. Subtitle fetches finish in ~10–15s regardless of source length. Cached hits return in <1s.
Hourly cap by plan. Counted per user (not per API key) and ticked only on successful 200 responses — cached repeats count, but a 400 like “video unavailable” does not. Limits: Starter 5 an hour, Professional 100 an hour, Ultimate no hourly limit. Downloads at the same time are also limited by plan: Starter 1, Professional 3, Ultimate 6. A request past that returns 429 immediately (nothing queues), so wait for a running download to finish and retry. When you hit either cap the endpoint returns 429 with the wait guidance and a link to Subscription settings to upgrade.
Returned URL. The download_url points at Algrow’s R2 bucket (audio.algrow.online) and ships with Content-Disposition attachment so browsers trigger a save instead of inline playback. URLs are public and stable for the lifetime of the cache (~30 days); safe to share or embed.
