youtube-autocomplete

0.0.1 • Public • Published

youtube-autocomplete

Get autocomplete search queries for YouTube without API keys!

Usage

  1. Install module using npm i youtube-autocomplete

  2. Require the module

const AutoComplete = require('youtube-autocomplete');
  1. AutoComplete(query, callback) - function

    • query - String : Search query for which you want suggestions

    • callback(err, queries) - function : Callback function

      • err - Error : Error message if an error occurs, null if successful
      • queries - Object : Suggestion queries in JSON format
  2. Example code:

const AutoComplete = require('youtube-autocomplete');
 
AutoComplete('quer', (err, queries) => {
  if (err) throw err;
  console.log(queries);
});

License

MIT Copyright © 2018 Akash Rajendra

Package Sidebar

Install

npm i youtube-autocomplete

Weekly Downloads

5

Version

0.0.1

License

MIT

Unpacked Size

2.21 kB

Total Files

4

Last publish

Collaborators

  • akashrajendra