Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
575 views
in Technique[技术] by (71.8m points)

youtube data api - publishedAfter parameter appears to be broken now

I used daily this request to googleapi in my application:

GET https://www.googleapis.com/youtube/v3/search?part=snippet&channelId={CHANNEL_ID}&maxResults=25&order=date&publishedAfter=2019-03-15T18%3A01%3A02.000Z&publishedBefore=2019-03-17T09%3A58%3A15.000Z&type=video&key={API_KEY} 

Timestamps were of course changed each time. This worked fine till yesterday. Today this command did not work properly and returns results from different (much larger) time period.

Their timestamps are 25 and appear random:

"2018-10-04T10:06:56.000Z"
"2015-03-05T16:55:26.000Z"
"2018-09-24T08:05:59.000Z"
"2019-03-10T14:22:14.000Z"
"2018-07-24T19:08:39.000Z"
"2018-10-08T22:34:22.000Z"
"2018-09-10T11:38:37.000Z"
"2019-01-05T18:45:24.000Z"
"2019-02-12T07:00:07.000Z"
"2016-08-20T09:53:44.000Z"
"2018-10-20T21:31:43.000Z"
"2014-04-18T13:05:31.000Z"
"2019-01-24T14:00:30.000Z"
"2018-12-05T11:34:23.000Z"
"2019-03-04T13:59:05.000Z"
"2019-02-18T19:08:52.000Z"
"2018-12-24T11:33:56.000Z"
"2019-02-25T16:30:57.000Z"
"2017-07-07T16:44:59.000Z"
"2019-03-08T17:01:07.000Z"
"2019-02-04T12:49:42.000Z"
"2018-10-01T09:38:39.000Z"
"2015-09-18T22:52:30.000Z"
"2017-05-23T17:43:09.000Z"
"2019-03-13T17:59:24.000Z"

Is something broken?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Seems like it is a global problem. https://support.google.com/youtube/thread/2494861?hl=en


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...