Skip to content

JohnCoene/youTubeDataR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status AppVeyor Build Status codecov.io Coverage Status

youTubeDataR

Integrates R and the YouTube Data API.

See site for docs and details.

Install

devtools::install_github("JohnCoene/youTubeDataR")

OAuth

Get your credentials

  1. Sign in at 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/).
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 for examples