https://github.com/luciopaiva/youtube-list-channel-videos
Simple script to fetch the list of all videos uploaded to a given YouTube channel.
https://github.com/luciopaiva/youtube-list-channel-videos
axios scraper youtube youtube-api youtube-api-v3
Last synced: 9 days ago
JSON representation
Simple script to fetch the list of all videos uploaded to a given YouTube channel.
- Host: GitHub
- URL: https://github.com/luciopaiva/youtube-list-channel-videos
- Owner: luciopaiva
- Created: 2020-05-06T23:39:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T04:07:12.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T20:33:11.370Z (7 months ago)
- Topics: axios, scraper, youtube, youtube-api, youtube-api-v3
- Language: JavaScript
- Homepage: https://luciopaiva.com/youtube-list-channel-videos/
- Size: 48.8 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# List YouTube channel videos
Simple script to fetch the list of all videos uploaded to a given YouTube channel.
To run it, first make sure you have `nvm` installed and then:
nvm install
npm installYou need to obtain a developer key in order to be able to call YouTube APIs. The full instructions can be seen [here](https://developers.google.com/youtube/v3/getting-started). You needs just an API key, not OAuth authorization. Once you have a project with YouTube API access, this is where you create a key:
https://console.cloud.google.com/apis/credentials
Click the "Create credentials" and add a new API key.
Copy the new key and paste it into a new file named `config.json` in this folder. Here's how it should look like:
{
"apiKey": "your-key-goes-here"
}Finally, run it:
node list-videos UUQRPDZMSwXFEDS67uc7kIdg
The string `UUQRPDZMSwXFEDS67uc7kIdg` is a sample YouTube channel. You'll want to replace it with some other channel's id.
If everything goes well, an output file will be created with the name `.tsv`.
References:
- https://stackoverflow.com/a/27872244/778272
- https://developers.google.com/youtube/v3