I've been working with Youtube API for the last couple days and now I stumbled upon a problem which I cannot solve.
I'm 'leeching' videos off channels and inserting some data into my SQL database, The problem is PlaylistItems
' property publishedAt
.
It gives me the date of when the video was uploaded - as you know some channels keep their videos private upon release date - I want just the release date, as it shows ordinary users.
Any way to get it?
Eventually I turned up using Youtube API v2, Because using Youtube API v3 for this was a fresh hell.
Usage: http://gdata.youtube.com/feeds/api/users/ID/uploads or if you want it in JSON: http://gdata.youtube.com/feeds/api/users/ID/uploads?alt=jsonc&v=2
Docs: https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds#User_Uploaded_Videos
:)
If I'm not mistaken, the publishedAt attribute you're discussing does not represent upload time but instead represents when a video was added to the playlist -- which, of course, makes sense, given that you're looking at the playlistItem object.
If instead you mean you're looking at the video->list object, then yes ... the publishedAt attribute represents the upload date.
As far as I know, there is no way to get the date that a video was made public.