SpideyDataAPI Reference
API navigation YouTube

YouTube API

Monitor YouTube channels, collect comments and subtitles, and create video download jobs with SpideyData's YouTube API.

On this page

YouTube API endpoints

15

Find the task you need. Each endpoint includes its parameters, request example, and response reference.

Monitor YouTube channels and video updates

Configure channel monitors, run checks and read the videos and events they have observed.

Download YouTube videos and collect subtitles or comments

Create asynchronous collection jobs for a video, then read saved comments or subtitle artifacts.

Track YouTube collection jobs and download artifacts

Inspect job status, list its output artifacts and download a selected artifact when available.

Quick start

Create channel monitors for updates, then create asynchronous media jobs for videos that need download, subtitles, or comments.

API base https://kieapi.com
curl -X POST "https://kieapi.com/v1/youtube/monitors" \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel_id": "UC123",
    "channel_url": "https://www.youtube.com/@example/videos",
    "strategy": "auto",
    "check_interval_seconds": 900,
    "slow_check_interval_seconds": 43200,
    "quiet_first_check": true
  }'

curl -X POST "https://kieapi.com/v1/youtube/videos/abc123/subtitles" \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Idempotency-Key: youtube-subtitles-abc123-01" \
  -H "Content-Type: application/json" \
  -d '{
    "languages": ["en"],
    "include_auto": true,
    "format": "vtt"
  }'

curl -X POST "https://kieapi.com/v1/youtube/videos/abc123/downloads" \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Idempotency-Key: youtube-download-abc123-01" \
  -H "Content-Type: application/json" \
  -d '{
    "format": "bestvideo*+bestaudio/best",
    "max_spend_credits": 10300,
    "max_download_bytes": 1000000000,
    "max_worker_seconds": 1200
  }'

curl -X GET "https://kieapi.com/v1/youtube/media-jobs/ytjob_01j" \
  -H "Authorization: Bearer $SPIDER_API_KEY"

Authentication

Use a bearer token.

Team administrators manage API keys in Team Settings. Each key keeps its Team and billing scope when its creator leaves or switches Teams. Keys cannot manage members, billing or other keys. Public /v1 requests use Authorization: Bearer $SPIDER_API_KEY only; the Key's fixed Team is the payer. An optional X-Spider-Team-Id must match that Team or the request is denied. Creating, listing, rotating or revoking Keys through the product console (and other non-identity console business routes) requires X-Spider-Team-Id when the Team model is enabled; omitting it returns HTTP 409 team_context_required.

Response shape

Monitor

The durable YouTube monitor, its target, settings, and per-strategy check state.

Strategies

RSS and yt-dlp polling are peer monitoring strategies; auto runs both independently.

Events

New video, updated video, reschedule, and monitor error events for downstream workflows.

Videos

The latest observed video records with first_seen_at and last_seen_at timestamps.

Media jobs

Download, subtitle, and ordinary comment extraction return 202 Accepted with queued media jobs instead of blocking public requests.

Artifacts and records

Completed media jobs expose server-owned artifact URLs plus paged subtitle and comment records under /v1/youtube.

Credits and safety limits

Billable writes reserve bounded Team Credits and capture only trusted successful results. Download bytes and worker seconds round up by 100 MB and 10 minutes; polling, pagination, and artifact reads are free.