为什么Youtube Analytics Api groups.list方法最多只返回20个组?

时间:2015-08-15 18:06:25

标签: python youtube-api youtube-analytics youtube-analytics-api

我在stackoverflow上的第一篇文章:)

我一直在尝试使用YouTube Analytics API列出内容所有者的所有分析组。我试过了两个

  1. 通过API-Explorer网站:https://developers.google.com/apis-explorer/#p/youtubeAnalytics/v1/youtubeAnalytics.groups.list
  2. via python:youtube_analytics.groups()。list(onBehalfOfContentOwner = Content_Owner_Name).execute()
  3. 两者最多只返回20个组(实际的组总数为数百个)。想知道是否有人知道这个问题的原因,或者指定/增加最大结果数的任何其他参数

    非常感谢提前!

    这里简要介绍了python中返回的内容:

    {"etag": "A String", 
     "items": [{"contentDetails": {"itemCount": "A String",
                                   "itemType": "A String",
                                  },
                 "etag": "A String",
                 "id": "A String",
                 "kind": "youtube#group",
                 "snippet": {"publishedAt": "A String",
                             "title": "A String",
                            },
               },
               {"contentDetails": {"itemCount": "A String",
                                   "itemType": "A String",
                                  },
                 "etag": "A String",
                 "id": "A String",
                 "kind": "youtube#group",
                 "snippet": {"publishedAt": "A String",
                             "title": "A String",
                            },
               },
               {"contentDetails": {"itemCount": "A String",
                                   "itemType": "A String",
                                  },
                 "etag": "A String",
                 "id": "A String",
                 "kind": "youtube#group",
                 "snippet": {"publishedAt": "A String",
                             "title": "A String",
                            },
               },
               # ...  20 items in such format
              ],
     "kind": "youtube#groupListResponse"
    }
    

    我没有看到任何表明项目总数的事情,或链接到"下一页"

0 个答案:

没有答案