https://github.com/johncoene/youtubedatar
▶️ Integrates R and the YouTube Data API
https://github.com/johncoene/youtubedatar
Last synced: 16 days ago
JSON representation
▶️ Integrates R and the YouTube Data API
- Host: GitHub
- URL: https://github.com/johncoene/youtubedatar
- Owner: JohnCoene
- License: other
- Created: 2016-02-07T04:55:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T19:57:57.000Z (almost 7 years ago)
- Last Synced: 2025-04-12T00:42:38.994Z (16 days ago)
- Language: R
- Homepage:
- Size: 226 KB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/JohnCoene/youTubeDataR)
[](https://ci.appveyor.com/project/JohnCoene/youTubeDataR)
[](https://codecov.io/github/JohnCoene/youTubeDataR?branch=master)
[](https://coveralls.io/github/JohnCoene/youTubeDataR?branch=master)# youTubeDataR
Integrates R and the [YouTube Data API](https://developers.google.com/youtube/v3/).
See [site](http://john-coene.com/packages/youTubeDataR/) for docs and details.
## Install
```R
devtools::install_github("JohnCoene/youTubeDataR")
```## OAuth
Get your credentials
1. Sign in at [https://console.developers.google.com](https://console.developers.google.com)
2. Click "Credentials" in the sidebar
3. Hit "Create credentials"
4. In the dropdown menu select "OAuth client ID"
5. On the next page select "Web application"
6. Fill in your "Authorized redirect URIs" as returned by `httr::oauth_callback()` as "Authorized redirect URIs" (generally `http://localhost:1410/`).```R
token <- youOAuth("something.apps.googleusercontent.com", "XXxxXxxXXxxXxxXX")
```### Versions ###
* Some variable names were changed in `v0.2` please use `v0.1` for backward compatibility
- `snippet.` prefix removed in `v0.2`
- code cleanup### Functions ###
##### OAuth #####
Authenticate
* `youOAuth`
##### Find-family #####
Helper functions
* `findParams`
* `findParts`##### Search #####
Search `channel`, `video`, `playlist` or `any` (see example below)
* `searchTube`
##### GET-family #####
Get data
* `getVideos`
* `getActivities`
* `getCaptions`
* `getChannels`
* `getChannelSections`
* `getComments`
* `getCommentThreads`
* `getVideoCateogries`
* `getGuideCategories`
* `getLanguages`
* `getRegions`
* `getSubscriptions`
* `getPlaylists`
* `getPlaylistItems`#### See [this post](http://john-coene.com/post/youtube/) for examples ####