Skip to content

TheLD6978/node-ytpl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version NPM downloads Dependencies Dependencies

NPM info

node-ytpl

Simple js only module to resolve YouTube playlist ids Doesn't need any login or GoogleAPI key

Usage

var ytpl = require('ytpl');

ytpl('UU_aEa8K-EOJ3D6gOs7HcyNg', function(err, playlist) {
  if(err) throw err;
  dosth(playlist);
});

API

ytpl(id, [options], [callback])

Attempts to resolve the given playlist id

  • id

    • id of the yt-playlist
    • or playlist link
    • or user link (resolves uploaded playlist)
    • or channel link (resolves uploaded playlist)
  • options

    • object with options
    • possible settings:
    • limit[Number] -> limits the pulled items, defaults to 100
  • callback(err, result)

    • function
    • getting fired after the request is done
    • contains an error or a result
  • returns a Promise when no callback is defined

  • Example response

Related / Works well with

Install

npm install --save ytpl

License

MIT

About

Anonymous YouTube playlist resolver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 97.8%
  • JavaScript 2.2%