1.0.5 • Published 4 years ago

node-youtube-search v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Install

Install via npm:

npm i node-youtube-search

Example

CommonJS

const { Youtube, } = require('node-youtube-search');

Typescript

import { Youtube, } from 'node-youtube-search'

Common

const youtubeApi = new Youtube('google api key');

youtubeApi.getPlaylistVideosIdsByPlaylistId('playlistId')	// Promise<string>;
		
youtubeApi.getPlaylistsByIds('playlistsId,playlistsId')		// Promise<Playlist[]>
youtubeApi.getPlaylistsByIds(['playlistsId', 'playlistsId'])	// Promise<Playlist[]>

youtubeApi.getPlaylistVideosByPlaylistId('playlistId')		// Promise<Video[]>

youtubeApi.getChannelsByIds('channelsId,channelsId')		// Promise<Channel[]>
youtubeApi.getChannelsByIds(['channelsId', 'channelsId'])	// Promise<Channel[]>

youtubeApi.getVideosByIds('videosId,videosId')			// Promise<Video[]>
youtubeApi.getVideosByIds(['videosId', 'videosId'])		// Promise<Video[]>

youtubeApi.getRelatedToVideoId('videosId')			// Promise<Video[]>

youtubeApi.search('search')					// Promise<Video[]>
1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago