npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

test-youtube-api

v2.0.1

Published

Test Youtube API NodeJS module

Readme

YouTube API Test Application

PayPal AMA Version Downloads Get help on Codementor

Test Youtube API NodeJS module

This is an example application how to use the youtube-api library and explore the YouTube API resources.

Before you start

  1. You need a Google Account to access the Google APIs Console, request an API key, and register your application.

  2. Register your application with Google so that it can submit API requests:

  3. After registering your application, select YouTube Data API as one of the services that your application uses.

    • Go to the APIs Console and select the project that you just registered.
    • Click on APIs & auth on the left side. Then a dropdown will be opened.
    • Select APIs.
    • Search for YouTube Data API v3, click it and click Enable API

Installation and usage

  1. Download this repository by running:

    git clone http://github.com/IonicaBizau/test-youtube-api
  2. Enter in the downloaded directory and run npm install:

    cd test-youtube-api
    npm install
  3. Go back in your Google app and click again on APIs & auth and then select Credentials.

  4. Click Create new Client ID. This will create new OAuth 2.0 credentials:

    • Select Web application

    • Click Configure consent screen

    • Complete the required fields:

      • Product name: what ever you want (e.g. "Youtube API Test")
      • Product logo is optional
      • Home page is optional
      • Save the changes
    • Now you will have to set the auth urls. This test application uses the following urls:

      • Authorized JavaScript origins: http://localhost:5000/ (paste it in the first textarea)
      • Authorized redirect URIs: http://localhost:5000/oauth2callback (paste it in the second textarea)
    • Finally, click Create Client ID

OK, at this step you have the credentials (in your Google app). Now you have to use them in this test application:

  1. Rename credentials.templ.json into credentials.json.
  2. Open credentials.json and replace yourClientId with the client id and yourSecretKey with client secret generated previously.
  3. Now you are ready. Start the script (npm start) and open http://localhost:5000.

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.

:scroll: License

MIT © Ionică Bizău