GET /v1/youtube/video_thumbnails

YouTube thumbnail API: every thumbnail size of a video by ID

Returns every thumbnail a video's watch page names, each with its URL, width and height. Send video_id as an 11-character id or a video URL.

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_thumbnails?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_thumbnails",
    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.
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 YouTubeThumbnail[]. Default false.

Example response

The example response of the API reference.

json
{
  "data": [
    {
      "url": "https://i.ytimg.com/vi/0e3GPea1Tyg/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLAhlks90rgUnxrHv_-nmRqcAP5Apw",
      "width": 168,
      "height": 94
    },
    {
      "url": "https://i.ytimg.com/vi/0e3GPea1Tyg/hqdefault.jpg?sqp=-oaymwEmCMQBEG5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLA_equnQIAwRdbpvLLAIKn9KPTdmw",
      "width": 196,
      "height": 110
    }
  ],
  "meta": {
    "source": "db",
    "fetched_at": "2026-07-21T13:47:03.099132+00:00",
    "cost": "$0.0005",
    "balance": "$3.3537",
    "request_id": "req_da8d11576c2d5b767242fbaf3675686d"
  }
}

How it works

Every thumbnail size the watch page names. Returns YouTubeThumbnail[] 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.

YouTube API guide