Social Media
YouTube Metadata
Get structured metadata for a YouTube video β title, channel, view/like/comment counts, duration, description, categories, and tags β as JSON.
POST/api/v1/youtube/metadata
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).
Example: n61ULEU7CO0
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.youtube.metadata(video_id="n61ULEU7CO0")
print(results)Response
"age_limit": 0,
"channel_id": "UCSJ4gkVC6NrvII8umztf0Ow",
"channel_url": "https://www.youtube.com/channel/UCSJ4gkVC6NrvII8umztf0Ow",
"comment_count": 10000,
"description": "πΌ | Listen on Spotify, Apple music and more
β https://fanlink.tv/BestofLofi2021
The new Lofi Girl compilation βBest of 2021β is out now π
This compilation contβ¦",
"duration": 22258,
"is_live": false,
"like_count": 491301,
"title": "Best of lofi hip hop 2021 β¨ [beats to relax/study to]",
"upload_date": 20211231,
"uploader": "Lofi Girl",
"uploader_id": "@LofiGirl",
"uploader_url": "https://www.youtube.com/@LofiGirl",
"video_id": "n61ULEU7CO0",
"view_count": 55696608
},
"response_time": 2000,
"credits_used": 1,
"credits_remaining": 4755
}