These are the code samples that are found in the blog post on API keys and introducing the YouTube APIs. In order to use any of these files, you must:
- Create a new developer project (or reuse an existing one)
- Create an API key in the developer console
- Save the API key into
.env
(Node.js) orsettings.py
(Python)
The scripts won't run otherwise; see the posts for more specifics.
App | Description | Language |
---|---|---|
yt_video_query.py |
Video search | Python 2 or 3 |
yt_video_query.js |
Video search | Node.js/JavaScript (CommonJS) |
yt_video_query.mjs |
Video search | Node.js (modern JS/ECMAScript module) |