Get video's privacy settings using Youtube API -
in youtube video manager, have option set video a) public b) private , c) unlisted.
using youtube api, possible find out setting of video currently?
thanks
it depends.
i'm going answer in context of youtube data api v3, recent release. there analogous methods in older v1 , v2 of api.
if you're authenticated owner of video, can make videos.list(part=status, id=video_id)
call, , video's status returned in video.status.privacystatus
property.
if you're not authenticated owner of video, can make same videos.list()
call, if video private
won't response. if video public
or unlisted
video resource, , check video.status.privacystatus
see exact privacy level is.
Comments
Post a Comment