问题
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:
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
来源:https://stackoverflow.com/questions/21176432/youtube-data-api-retrieve-channel-subscribers-count-for-past-dates