YouTube数据API检索频道订阅者计数过去的日期 [英] Youtube Data API retrieve channel subscribers count for past dates

查看:221
本文介绍了YouTube数据API检索频道订阅者计数过去的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我们可以使用数据API拉取youtube频道的当前订阅者数量,但是有没有办法拉我们过去拥有的订阅者?例如7天前?

i know that we can pull the current number of subscribers for a youtube channel using the data API, but is there a way to pull the subscribers we had in the past? for example 7 days back?

谢谢!

推荐答案

没有内置的方法可以对订户进行历史记录.您可以做的是在给定的日期检索订户列表,并将其自己保留在某个地方.然后下周再做一次并进行比较.

There is no built in way to do a historic look at your subscribers. What you could do is retrieve your list of subscribers on a given date, and persist it yourself somewhere. Then do it again next week and compare it.

API返回JSON响应&查找看起来像这样:

The API returns a JSON response & the look up would look like this:

https://www.googleapis.com/youtube/v3/subscriptions?part = snippet& mySubscribers = true& key = {API_KEY_GOES_HERE}

https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&mySubscribers=true&key={API_KEY_GOES_HERE}

您可以在此处详细了解语法&文档中的参数:链接

You can read more here about the syntax & parameters in the docs: Link

这篇关于YouTube数据API检索频道订阅者计数过去的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆