GET /v1/youtube/video

YouTube video details API: views, likes and publish date by video ID

Returns one video read from its watch page: title (extra.title), description, publish date, views, likes, duration, mentioned channels and the paid promotion flag. Send video_id as an 11-character id or a watch, Shorts, live, embed or youtu.be URL. A removed or unplayable video answers 404.

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

Example request

curl
curl 'https://api.virev.ai/v1/youtube/video?video_id=0e3GPea1Tyg' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

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

Parameters

NameInTypeDescription
video_id requiredquerystringAn 11-character video id, or a watch, Shorts, live, embed or youtu.be URL. Example 0e3GPea1Tyg.
language querystringThe language YouTube answers in, a BCP-47 code such as en or pt-BR; omitted is en.
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. Default auto.
get_raw querybooleantrue returns the upstream JSON exactly as YouTube answered it instead of the normalized Post. Default false.

Example response

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

json
{
  "data": {
    "id": "0e3GPea1Tyg",
    "shortcode": null,
    "taken_at": "2021-11-24T21:00:01+00:00",
    "kind": "video",
    "product_type": "video",
    "caption": "MAKE SURE YOU WATCH UNTIL GLASS BRIDGE IT'S INSANE!\n\nWatch Beast Games now on Prime Video!!! https://www.beastgames.com\n\nThank you GoPro for supplying us with cameras to get some of these shots. You can get them here: https://prf.hn/l/6bNbQ…",
    "hashtags": [],
    "mentions": [
      "UCX6OQ3DkcsbYNE6H8uQQuVA",
      "UC4-79UOlP48-QNGgCko5p2g",
      "UCIPPMRA040LQr5QPyJEbmXA"
    ],
    "accessibility_caption": null,
    "likes": 20070730,
    "comments": null,
    "views": 942007314,
    "counts_hidden": null,
    "comments_disabled": null,
    "is_pinned": null,
    "is_paid_partnership": false,
    "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/0e3GPea1Tyg/maxresdefault.jpg",
    "video_duration": 1541,
    "media": [],
    "media_urls": [],
    "extra": {
      "title": "$456,000 Squid Game In Real Life!",
      "url": "https://www.youtube.com/watch?v=0e3GPea1Tyg",
      "published_text": null
    }
  },
  "meta": {
    "source": "db",
    "fetched_at": "2026-07-21T14:04:00.789385+00:00",
    "cost": "$0.0005",
    "balance": "$3.3567",
    "request_id": "req_38a875101766a6b44e7d36b875f31fcc"
  }
}

How it works

One video from its watch page: date, counts, description, duration and the paid promotion flag. extra.title is the title. A removed or unplayable video answers 404. Returns Post under data; with get_raw=true returns the upstream JSON.

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.

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