GET /v1/youtube/videos

YouTube stored videos API: a channel's videos and views by handle

Returns the videos we have stored for one channel, newest first, up to 100 a page: video id, title, description, views, likes, comments, publish time, duration, Shorts and live flags, category, keywords and thumbnail. Send q as an @handle or UC… channel id, and send next_cursor back as cursor for the next page. It reads our database only; walk the channel live with the YouTube channel videos API.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/youtube/videos?q=mkbhd' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

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

Parameters

NameInTypeDescription
q requiredquerystringYouTube @handle (case-sensitive), UC… channel id, or a youtube.com/@handle / /channel/UC… URL. Example mkbhd.
limit queryintegerHow many videos to return (1–100). Flat price regardless of count. Default 30.
cursor querystringOpaque next_cursor from the previous page.

Example response

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

json
{
  "data": {
    "videos": [
      {
        "youtube_video_id": "eWKY0OnPByg",
        "title": "Apple Lost the AI Race",
        "description": "Apple lost the AI race. Actually, Apple won the AI race. Wait.\n\nThat shirt: http://shop.MKBHD.com\n\nPlaylist of MKBHD Intro music: https://goo.gl/B3AWV5\n\n~\nhttp://twitter.com/MKBHD\nhttp://instagram.com/MKBHD\nhttp://facebook.com/MKBHD",
        "views": 2223253,
        "likes": 93340,
        "comments": null,
        "posted_at": "2026-07-08T19:44:58Z",
        "length_seconds": 423,
        "is_short": false,
        "is_live_content": false,
        "category": "Science & Technology",
        "keywords": [
          "Apple",
          "AI race",
          "new siri"
        ],
        "thumbnail_url": "https://api.virev.ai/v1/media/youtube_video/729/video_thumbnail?e=1793750400&s=23c8532b5d52077f48c21e40d1a8f47b"
      }
    ],
    "next_cursor": null,
    "has_more": false
  },
  "meta": {
    "cost": "$0.0005",
    "balance": "$4.9945",
    "request_id": "req_8d22e0902491c6dc0cb94df937f22f1b"
  }
}

How it works

A channel's tracked videos, newest first, with video id, title, description, views, likes, comments, publish time, duration, Shorts/live flags, category, keywords, and thumbnail when observed. Videos with no publish time come last. DB read over the tracked corpus — flat price for up to 100 videos a page. next_cursor is null on the last page; send it back as cursor for the next one. For a live walk of a channel's tab, use /v1/youtube/channel_videos.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404Channel not in the tracked corpus.
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