Skip to content

Youtube API client written in typescript (only for searching).

License

Notifications You must be signed in to change notification settings

LacticWhale/node-youtube-search

Repository files navigation

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[]>

About

Youtube API client written in typescript (only for searching).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published