get-youtube-title

1.0.1 • Public • Published

get-youtube-title

get the title of a youtube video in node.js or the browser.

npm travis standard

Install

npm install get-youtube-title

Usage

var getYoutubeTitle = require('get-youtube-title')
 
getYoutubeTitle('ZjM8Wq5pQ2o', function (err, title) {
  console.log(title) // 'SLCHLD - EMOTIONS (feat. RIPELY) (prod. by GILLA)'
})

API

getYoutubeTitle(id: string, key: string, function(err, title))

id is the YouTube Video ID. If you have a video URL, use the get-youtube-id module to find the video ID. key is the YouTube API key. If one is not provided a default key is used. Note that this key may be disabled by YouTube if other users of this library send what it considers abusive requests.

License

Apache-2.0

Readme

Keywords

Package Sidebar

Install

npm i get-youtube-title

Weekly Downloads

39

Version

1.0.1

License

Apache-2.0

Unpacked Size

5.52 kB

Total Files

7

Last publish

Collaborators

  • goto-bus-stop