我一直在使用youtube analytics API来获取不同的报告,但是从几天前开始,该API不会返回完整的数据,而只是返回当前日期之前的三天。
以下是要求从2020-04-20到2020-04-28 的视频观看报告报告 f ,直到2020-04-28 ,但响应仅返回数据,直到 2020-04-25 ,但我在自己的频道中看到在 2020-04-26和2020-04-27 < / em> 。
'https://youtubeanalytics.googleapis.com/v2/reports?dimensions=day%2CinsightTrafficSourceType&endDate=2020-04-28&filters=video%3D%3DoQqVWPfSfe8&ids=channel%3D%3DMINE&metrics=views%2CestimatedMinutesWatched&sort=day%2C-views&startDate=2020-04-20&key=[YOUR_API_KEY]' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--compressed
响应:
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": "day",
"columnType": "DIMENSION",
"dataType": "STRING"
},
{
"name": "insightTrafficSourceType",
"columnType": "DIMENSION",
"dataType": "STRING"
},
{
"name": "views",
"columnType": "METRIC",
"dataType": "INTEGER"
},
{
"name": "estimatedMinutesWatched",
"columnType": "METRIC",
"dataType": "INTEGER"
}
],
"rows": [
[
"2020-04-20",
"ADVERTISING",
23429,
12417
],
[
"2020-04-20",
"NO_LINK_OTHER",
31,
5
],
[
"2020-04-20",
"EXT_URL",
5,
0
],
[
"2020-04-21",
"ADVERTISING",
46469,
24522
],
[
"2020-04-21",
"NO_LINK_OTHER",
54,
9
],
[
"2020-04-21",
"EXT_URL",
5,
1
],
[
"2020-04-22",
"ADVERTISING",
40020,
21132
],
[
"2020-04-22",
"NO_LINK_OTHER",
43,
9
],
[
"2020-04-22",
"EXT_URL",
7,
2
],
[
"2020-04-23",
"ADVERTISING",
22944,
12127
],
[
"2020-04-23",
"NO_LINK_OTHER",
32,
6
],
[
"2020-04-23",
"EXT_URL",
3,
0
],
[
"2020-04-24",
"ADVERTISING",
8549,
4524
],
[
"2020-04-24",
"NO_LINK_OTHER",
42,
9
],
[
"2020-04-24",
"EXT_URL",
7,
3
],
[
"2020-04-25",
"ADVERTISING",
820,
432
],
[
"2020-04-25",
"NO_LINK_OTHER",
30,
3
],
[
"2020-04-25",
"EXT_URL",
8,
1
]
]
}
API中有更改吗?有什么新限制吗?
感谢您的支持。