Currently I am working on a project that requires to return unlisted videos for a Oauth 2 logged in user. Because I am trying to get unlisted videos, I have to use ForMine variable. So what I got is
and it is working fine. However, I want to do an incremental load. That requires to get videos only published after a certain time. Once I add the Published After parameter "publishedAfter=1970-01-01T00%3A00%3A00Z", with this url https://www.googleapis.com/youtube/v3/search?part=snippet&forMine=true&maxResults=25&order=date&publishedAfter=1970-01-01T00%3A00%3A00Z&type=video, the API is returning error
"The request contains an invalid combination of search filters and/or restrictions. Note that you must set the
type
parameter tovideo
if you set either theforContentOwner
orforMine
parameters totrue
. You must also set thetype
parameter tovideo
if you set a value for theeventType
,videoCaption
,videoCategoryId
,videoDefinition
,videoDimension
,videoDuration
,videoEmbeddable
,videoLicense
,videoSyndicated
, orvideoType
parameters."
I read it from here Youtube API V3, search , publishedAfter, invalidSearchFilter, looks like ForMine and PublishedAfter do not work together. However, this is exactly what I need.
Is this a bug or intentional design? Is there any walk around of this problem>