Social Media
YouTube Video Details
Get structured details for a YouTube video — title, channel, view count, length, description, keywords, chapters, and available captions — as JSON. The legacy /api/v1/youtube/metadata path and youtube.metadata() method remain as deprecated aliases of this endpoint.
POST/api/v1/youtube/video
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonvideo_idstringrequiredThe YouTube video id (11 characters), or a full watch URL (the id is extracted server-side).
Example: n61ULEU7CO0
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.youtube.video(video_id="n61ULEU7CO0")
print(results)Response
"video_id": "n61ULEU7CO0",
"title": "Best of lofi hip hop 2021 [beats to relax/study to]",
"author": "Lofi Girl",
"channel_id": "UCSJ4gkVC6NrvII8umztf0Ow",
"channel_url": "https://www.youtube.com/channel/UCSJ4gkVC6NrvII8umztf0Ow",
"published_at": "2021-12-31",
"description": "Listen on Spotify, Apple Music and more. The new Lofi Girl compilation Best of 2021 is out now.",
"length_seconds": 22258,
"view_count": 55696608,
"thumbnail": "https://i.ytimg.com/vi/n61ULEU7CO0/maxresdefault.jpg",
"playability_status": "OK",
"chapters": [],
},
"response_time": 1204,
"credits_used": 1,
"credits_remaining": 4755
}