2.2.2 • Published 11 months ago

barotube v2.2.2

Weekly downloads
1
License
MIT
Repository
-
Last release
11 months ago

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.

2.2.1

11 months ago

2.2.0

11 months ago

2.2.2

11 months ago

2.1.16

11 months ago

2.1.17

11 months ago

2.1.14

11 months ago

2.1.15

11 months ago

2.1.12

11 months ago

2.1.13

11 months ago

2.1.10

11 months ago

2.1.11

11 months ago

2.1.18

11 months ago

2.1.19

11 months ago

2.1.20

11 months ago

2.1.8

2 years ago

2.1.9

2 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.7

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.12

4 years ago

1.1.13

4 years ago

1.1.9

4 years ago

1.1.10

4 years ago

1.1.8

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago