get_channel_stats: Get statistics of a Channel

Description Usage Arguments Value References Examples

View source: R/get_channel_stats.R

Description

Get statistics of a Channel

Usage

1
2
3

Arguments

channel_id

Character. Id of the channel

mine

Boolean. TRUE if you want to fetch stats of your own channel. Default is NULL.

...

Additional arguments passed to tuber_GET.

Value

nested named list with top element names: kind, etag, id, snippet (list of details of the channel including title), statistics (list of 5)

If the channel_id is mistyped or there is no information, an empty list is returned

References

https://developers.google.com/youtube/v3/docs/channels/list

Examples

1
2
3
4
5
6
7
8
## Not run: 

# Set API token via yt_oauth() first

get_channel_stats(channel_id="UCMtFAi84ehTSYSE9XoHefig")
get_channel_stats(channel_id="UCMtFAi84ehTSYSE9Xo") # Incorrect channel ID

## End(Not run)

tuber documentation built on July 8, 2020, 5:49 p.m.