Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.43 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.43 KB

NPM version NPM downloads Dependencies Dependencies

NPM info

node-ytt

Simple module to get YouTube trending videos. No need of GoogleAPI key.

Usage

const ytt = require('node-ytt');

ytt((response) => {
    if(response instanceof Error)
        throw response
    console.log(response)
})

API

ytt(callback)

Fetches latest YouTube trending videos from US origin.

  • callback(result)
    • function
    • fires on request completion
    • result can be error or videos response

Related / Works well with

Install

npm install --save node-ytt

License

MIT