Skip to content

Latest commit

 

History

History

youtube

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

YouTube API code samples

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:

  1. Create a new developer project (or reuse an existing one)
  2. Create an API key in the developer console
  3. Save the API key into .env (Node.js) or settings.py (Python)

The scripts won't run otherwise; see the posts for more specifics.

Code samples

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)