Youtube Data API retrieve channel subscribers coun

2019-09-09 01:41发布

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?

Thanks!

1条回答
狗以群分
2楼-- · 2019-09-09 02:20

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.

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}

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

查看更多
登录 后发表回答