node-ytt

YouTube Trends, get YouTube trending videos without GoogleAPI Key

Usage no npm install needed!

<script type="module">
  import nodeYtt from 'https://cdn.skypack.dev/node-ytt';
</script>

README

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