{"id":14067451,"url":"https://github.com/gojiplus/tuber","last_synced_at":"2025-07-30T01:31:06.326Z","repository":{"id":2319330,"uuid":"38137840","full_name":"gojiplus/tuber","owner":"gojiplus","description":":sweet_potato: Access YouTube from R","archived":false,"fork":false,"pushed_at":"2025-07-08T15:36:40.000Z","size":9140,"stargazers_count":185,"open_issues_count":28,"forks_count":54,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-07-08T16:47:27.186Z","etag":null,"topics":["access-youtube","caption","video","youtube","youtube-api","youtube-oauth"],"latest_commit_sha":null,"homepage":"http://gojiplus.github.io/tuber","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gojiplus.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-06-26T22:55:16.000Z","updated_at":"2025-07-08T15:36:44.000Z","dependencies_parsed_at":"2023-07-05T20:31:29.388Z","dependency_job_id":"c528592f-0107-497c-91bd-d0696fb68885","html_url":"https://github.com/gojiplus/tuber","commit_stats":{"total_commits":389,"total_committers":19,"mean_commits":"20.473684210526315","dds":"0.34704370179948585","last_synced_commit":"4ccf5879b6a3017e88588e65d53ab1e1afce4769"},"previous_names":["soodoku/tuber"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gojiplus/tuber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gojiplus%2Ftuber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gojiplus%2Ftuber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gojiplus%2Ftuber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gojiplus%2Ftuber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gojiplus","download_url":"https://codeload.github.com/gojiplus/tuber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gojiplus%2Ftuber/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267792592,"owners_count":24144929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["access-youtube","caption","video","youtube","youtube-api","youtube-oauth"],"created_at":"2024-08-13T07:05:36.099Z","updated_at":"2025-07-30T01:31:06.314Z","avatar_url":"https://github.com/gojiplus.png","language":"R","readme":"\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n## :sweet\\_potato: tuber: Access YouTube API via R\n\n[![CRAN\\_Status\\_Badge](http://www.r-pkg.org/badges/version/tuber)](https://cran.r-project.org/package=tuber)\n![](http://cranlogs.r-pkg.org/badges/grand-total/tuber)\n\nAccess YouTube API via R. Get comments posted on YouTube videos, get\ninformation on how many times a video has been liked, search for videos\nwith particular content, and much more. You can also get closed captions\nof videos you own. To learn more about the YouTube API, see\n\u003chttps://developers.google.com/youtube/v3/\u003e.\n\n### Installation\n\nTo get the current development version from GitHub:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"soodoku/tuber\", build_vignettes = TRUE)\n```\n\nTo get a quick overview of some important functions in tuber, check out\n[this article](https://soodoku.github.io/tuber/articles/tuber-ex.html).\nFor a fun vignette about how to analyze emojis in YouTube comments, see\n[here](https://soodoku.github.io/tuber/articles/emoji_vignette.html).\n\n### Using tuber\n\nTo get going, get the application id and password from the Google\nDeveloper Console (see\n\u003chttps://developers.google.com/youtube/v3/getting-started\u003e). Enable all\nthe YouTube APIs. Then set the application id and password via the\n`yt_oauth` function. For more information about YouTube OAuth, see\n[YouTube OAuth\nGuide](https://developers.google.com/youtube/v3/guides/authentication).\n\n``` r\nyt_oauth(\"app_id\", \"app_password\")\n```\n\nIf your session cannot open a browser window for authentication, pass\n`use_oob = TRUE` to `yt_oauth()` so that authentication can be completed\nvia an out-of-band code.\n\nTo force re-authentication at any time, delete the `.httr-oauth` file in\nyour working directory.\n\n**Note:** If you are on ubuntu, you may have to run the following before\ndoing anything:\n\n    httr::set_config(httr::config( ssl_verifypeer = 0L ) )\n\n**Get Statistics of a Video**\n\n``` r\nget_stats(video_id = \"N708P-A45D0\")\n```\n\n**Get Information About a Video**\n\n``` r\nget_video_details(video_id = \"N708P-A45D0\")\n```\n\n**Get Captions of a Video**\n\n``` r\nget_captions(video_id = \"yJXTXN4xrI8\")\n```\n\n**Note**: It was previously possible to get captions for all videos that\nhad “Community contributions” enabled. However, since [*YouTube* removed\nthat option in September\n2020](https://support.google.com/youtube/answer/2734796?hl=en\u0026visit_id=638791335311528098-9183701\u0026rd=1), the\n`get_captions` function now only works for videos created with the same\naccount as the API credentials you use. An alternative for collecting\n*YouTube* video captions is the [*youtubecaption*\npackage](https://github.com/jooyoungseo/youtubecaption).\n\n**Search Videos**\n\n``` r\nyt_search(\"Barack Obama\")\n```\n\n**Get All the Comments Including Replies**\n\n``` r\nget_all_comments(video_id = \"a-UQz7fqR3w\")\n```\n\n### License\n\nScripts are released under the [MIT\nLicense](https://opensource.org/licenses/MIT).\n\n### Contributor Code of Conduct\n\nThe project welcomes contributions from everyone! In fact, it depends on\nit. To maintain this welcoming atmosphere, and to collaborate in a fun\nand productive way, we expect contributors to the project to abide by\nthe [Contributor Code of\nConduct](https://www.contributor-covenant.org/version/1/0/0/).\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgojiplus%2Ftuber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgojiplus%2Ftuber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgojiplus%2Ftuber/lists"}