GET /v1/youtube/channel_videos

YouTube channel videos API: list every upload of a channel by handle

Returns a channel's Videos tab, latest or most popular first, each video with its id, title, views and relative date. Send handle; max_pages=1 answers one page at once, and other values start a job you poll. include_extras=true adds the exact date, likes and description from each watch page, and paid_only=true keeps only videos that disclose a paid promotion.

Price
$0.0005 per 30 results
Billing
$0.0005/30, $0.0005/item with include_extras or paid_only
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/youtube/channel_videos?handle=%40MrBeast&max_pages=1' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/youtube/channel_videos",
    params={
        "handle": "@MrBeast",
        "max_pages": "1",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
handle requiredquerystringA channel @handle, its UC… channel id, or a youtube.com/@handle or /channel/ URL. Handles are case-sensitive. Example @MrBeast.
sort querylatest | popularlatest or popular; omitted is latest.
include_extras querybooleantrue reads each video’s watch page for its exact date, likes and description, and bills $0.0005 per item answered in place of the page price. Default false.
paid_only querybooleantrue reads every listed video’s watch page and answers only the videos that disclose a paid promotion, so it bills $0.0005 per video the page listed. Default false.
since querystringStop at this date. 2025-09-21 means midnight UTC (2025-09-21T00:00:00Z). Datetimes must use RFC3339 with a timezone, for example 2025-09-21T09:00:00+09:00. 365d means 365 days before submission. Invalid calendar dates return 400. With max_pages, the first boundary reached stops the walk. since alone creates a job.
max_pages queryintegerMaximum pages to fetch. -1 walks until exhaustion or since with no page cap, and must be written. Omitted, since alone bounds the walk; with neither, the job stops after 10 pages. Any positive integer is accepted. 1 returns one page synchronously with HTTP 200; any other value creates a durable job with HTTP 202. Example 1.
cursor querystringOpaque next_cursor from an earlier answer of this operation, also with get_raw=true. A native YouTube cursor from a raw page answers 400. Result download cursors belong to the results route.
cached queryauto | cache_only | liveauto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts YouTube (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. cache_only reads one saved page per request: omit max_pages or pass 1, and continue with next_cursor. Default auto.
get_raw querybooleantrue returns the upstream JSON exactly as YouTube answered it instead of the normalized Page[Post]. Default false.
Idempotency-Key headerstringReuse this key with the same inputs to recover a lost job submission. A different input with the same key returns 409.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "items": [
      {
        "id": "q6fgVVmdpgY",
        "shortcode": null,
        "taken_at": null,
        "kind": "video",
        "product_type": "video",
        "caption": null,
        "hashtags": [],
        "mentions": [],
        "accessibility_caption": null,
        "likes": null,
        "comments": null,
        "views": 101000000,
        "counts_hidden": null,
        "comments_disabled": null,
        "is_pinned": null,
        "is_paid_partnership": null,
        "owner": {
          "id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
          "username": "MrBeast",
          "full_name": "MrBeast",
          "is_verified": null,
          "is_private": null,
          "avatar_url": null,
          "latest_story_at": null,
          "extra": {}
        },
        "coauthors": [],
        "sponsors": [],
        "tagged": [],
        "location": null,
        "audio": null,
        "thumbnail_url": "https://i.ytimg.com/vi/q6fgVVmdpgY/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAWSl6qG--LNZJ4QOvxpKtFboWycw",
        "video_duration": 2038,
        "media": [],
        "media_urls": [],
        "extra": {
          "title": "$250,000 Hunger Games In Real Life",
          "url": "https://www.youtube.com/watch?v=q6fgVVmdpgY",
          "published_text": "10 days ago"
        }
      },
      {
        "id": "_c2e1NcI3Sc",
        "shortcode": null,
        "taken_at": null,
        "kind": "video",
        "product_type": "video",
        "caption": null,
        "hashtags": [],
        "mentions": [],
        "accessibility_caption": null,
        "likes": null,
        "comments": null,
        "views": 104000000,
        "counts_hidden": null,
        "comments_disabled": null,
        "is_pinned": null,
        "is_paid_partnership": null,
        "owner": {
          "id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
          "username": "MrBeast",
          "full_name": "MrBeast",
          "is_verified": null,
          "is_private": null,
          "avatar_url": null,
          "latest_story_at": null,
          "extra": {}
        },
        "coauthors": [],
        "sponsors": [],
        "tagged": [],
        "location": null,
        "audio": null,
        "thumbnail_url": "https://i.ytimg.com/vi/_c2e1NcI3Sc/hq720_custom_3.jpg?sqp=CIDKmNgG-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBcLc5omNdyJ-3wXZvY6Z7RhR1RNQ",
        "video_duration": 1348,
        "media": [],
        "media_urls": [],
        "extra": {
          "title": "Beat Professional Athlete, Win $100,000",
          "url": "https://www.youtube.com/watch?v=_c2e1NcI3Sc",
          "published_text": "3 weeks ago"
        }
      }
    ],
    "pages": [
      {
        "cursor": null,
        "fetched_at": "2026-11-25T00:02:43.270658+00:00",
        "count": 30,
        "signed_in": false
      }
    ],
    "next_cursor": "eyJjb250aW51YXRpb24iOiI0cW1Gc2dLOUNoSVlWVU5ZTms5Uk0wUnJZM05pV1U1Rk5rZzRkVkZSZFZaQkdxQUtPR2RpVUVKNGNrMUNNM0pLUW5weVIwSjNiMnRPYlUwMVQwZFplVTVVVlhSTlJFRjNUVU13ZVUxVVVYbE1WR3Q2VFZSSmRFNUVVWGhOUkUxM1RrUkZNbHBFWXpKRmNITklVVmRPVjA5R1dtdFdia3BRVGtZ…",
    "has_more": true,
    "stop_reason": "pages",
    "coverage": {
      "since": null,
      "oldest_at": "2025-11-25T00:02:43.268693+00:00",
      "since_reached": false
    }
  },
  "meta": {
    "source": "db",
    "fetched_at": "2026-11-25T00:02:43.270658+00:00",
    "cost": "$0.0005",
    "balance": "$326.8502",
    "request_id": "req_f312c6727d36a12c0f59f1e5edce5f69"
  }
}

How it works

The channel's Videos tab. A listed video carries its title, views and a relative date (extra.published_text); include_extras=true reads each watch page for the exact date, likes and description, and paid_only=true keeps the videos that disclose a paid promotion. With max_pages=1, returns Page[Post] under data; with get_raw=true returns the upstream JSON.

The default request creates a durable job (202). Use max_pages=1 for one synchronous Page response (200). Poll status_url, then read results_url with its opaque cursor. Acquisition stops at the first of since, max_pages, or exhaustion. Jobs continue after disconnects. Result responses are bounded to 3 MiB; this does not limit the crawl. Supply Idempotency-Key to recover a lost submission response; reuse it with the same inputs. YouTube sets every page’s size, so there is no page_size.

A field YouTube does not carry is null, a list it does not carry is [], and YouTube-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

Billing: $0.0005 per 30 unique returned items (one native page), rounded up to a minimum of one billing unit; a get_raw=true page bills one unit. Jobs settle once after successful completion. Submission, polling and repeat downloads are free. With include_extras=true or paid_only=true, the call reads one more page per item, so each item answered bills $0.0005 in place of the page price. With paid_only=true or get_raw=true as well, it bills every item the page listed ($0.0150 for a full page of 30), and a walk with max_pages other than 1 answers 400.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the YouTube account or item does not exist (not_found). You are not charged.
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.

Guides that use this endpoint