Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

barotube

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barotube

BaroTube Module is a Node.js module used to interact with the BaroTube API.

  • 2.2.0
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

BaroTube Module

BaroTube Module is a Node.js module used to interact with the BaroTube API.

Installation

To add the module to your project, you can use the following command:

npm install barotube-module

Usage

const BaroTube = require('barotube-module');

const myBaroTube = new BaroTube('my-api-key');

// Example of YouTube Video search
myBaroTube.searchVideos('YouTube URL', (err, videos) => {
  if (err) {
    console.error(err);
  } else {
    console.log(videos);
  }
});

// Example of getting a YouTube Playlist
myBaroTube.getPlaylist('YouTube URL', (err, playlist) => {
  if (err) {
    console.error(err);
  } else {
    console.log(playlist);
  }
});

Example searchVideo DATA

[
  {
    title: '',
    videoId: '',
    url: '',
    duration: '',
    durationMs: 0,
    views: 0,
    author: {
      name: '',
      url: ''
    },
    thumbnail: ''
  },
  {
    title: '',
    videoId: '',
    url: '',
    duration: '',
    durationMs: 0,
    views: 0,
    author: {
      name: '',
      url: ''
    },
    thumbnail: ''
  },
  and 8 more...
]

Example getPlaylist DATA

[
  {
    id: '',
    url: '',
    title: '',
    videos_size: '',
    views: 0,
    last_updated: '',
    author: {
      id: '',
      name: '',
      avatar: '',
      url: ''
    }
  },
  videos: [
    {
      title: '',
      videoId: '',
      url: '',
      duration: '',
      durationMs: 0,
      views: 0,
      author: {
        name: '',
        url: ''
      },
      thumbnail: ''
  },
  and more...
  ]
]

API Key

When creating an instance of the BaroTube class, you need to provide an API key. This key is used to authenticate with the BaroTube API.

To obtain your API key, you need to sign up on the BaroTube API website and generate a key.

License

This project is licensed under the MIT License. For more information, see the LICENSE file.

Keywords

FAQs

Package last updated on 29 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc