ytcf

1.0.5 • Public • Published

ytcf

Codacy Badge

Very simple way to use YouTube Data API V3,

It's not finished yet all. But you can use it.

Usage

Install

npm install ytcf 

Use

Get Video by Video URL

const ytcf = require("ytcf")

ytcf.apiKey("YOUR API KEY")
ytcf.getVideo(videoURL,function(video){
    console.log(`The video's title is ${video.title}`)
})

Get Channel Information by Channel URL

const ytcf = require("ytcf")

ytcf.apiKey("YOUR API KEY")
ytcf.getChannel(channelURL,function(channel){
    console.log(`The channel's title is ${channel.title}`)
})

Search first 15 videos of specified query

const ytcf = require("ytcf")

ytcf.apiKey("YOUR API KEY")
ytcf.searchVideo(query, function(response) {
       console.log(`First video's title is ${response[0].title}!`)
 })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    5
    • latest

Version History

Package Sidebar

Install

npm i ytcf

Weekly Downloads

9

Version

1.0.5

License

ISC

Unpacked Size

9.87 kB

Total Files

5

Last publish

Collaborators

  • rootcf