YouTube
YouTube Channel Videos
List a channel's uploaded videos — video id, title, thumbnail, duration, view count, publish time, and live flag — with pagination, as JSON.
POST/api/v1/youtube/channel/videos
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/jsonchannel_idstringrequiredThe channel id (UC...), an @handle, or a channel URL. Each page holds up to 30 videos, newest first. view_count and published_time are null on collaboration uploads, which YouTube lists without them; view counts are rounded the way YouTube displays them ("9.9M views" reads as 9900000).
Example: UCBJycsmduvYEL83R_U4JriQ
cursorstringPagination cursor from a previous response (next_cursor). Keep passing it while has_more is true.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.youtube.channel_videos(channel_id="UCBJycsmduvYEL83R_U4JriQ")
print(results)Response
"channel_id": "UCBJycsmduvYEL83R_U4JriQ",
"next_cursor": "4qmFsgLZCRIYVUNCSnljc21kdXZZRUw4M1JfVTRKcmlR",
"has_more": true
},
"response_time": 1054,
"credits_used": 1,
"credits_remaining": 4752
}