Need private packages and team management tools?Check out npm Teams »

youtube-suggest

1.1.0 • Public • Published

youtube-suggest

get youtube search suggestions for a query, in node.js and the browser

Install - Usage - License: Apache-2.0

npm travis standard

Install

npm install youtube-suggest

Usage

var youtubeSuggest = require('youtube-suggest')
var assert = require('assert')
 
youtubeSuggest('query').then(function (results) {
  assert(Array.isArray(results))
  assert(typeof results[0] === 'string')
})

API

youtubeSuggest(query: string): Promise<string[]>

Do a network request for suggestions, returning the suggested completion strings as an array.

In Node.js it uses node-fetch. In the browser it uses JSONP.

License

Apache-2.0

Install

npm i youtube-suggest

DownloadsWeekly Downloads

216

Version

1.1.0

License

Apache-2.0

Unpacked Size

8.67 kB

Total Files

10

Last publish

Collaborators

  • avatar