Social Media
YouTube Related Videos
List the videos YouTube recommends alongside a given video — id, title, url, author, channel, thumbnail, view count, and publish time — as JSON.
POST/api/v1/youtube/related
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
cursorstringPagination cursor from a previous response. Keep passing it to page through more related videos.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.youtube.related(video_id="n61ULEU7CO0")
print(results)Response
"total_count": 20
},
"response_time": 1187,
"credits_used": 1,
"credits_remaining": 4746
}