Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ytsearcher

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytsearcher

A nodejs package that provides an easy-to-use promise-based system of getting youtube search results

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
88
decreased by-37.59%
Maintainers
1
Weekly downloads
 
Created
Source

YTSearcher

A nodejs package that provides an easy-to-use promise-based system of getting youtube search results.

Installing via NPM.

$ npm install ytsearcher

Quick Start Guide

Creating the object:

const { YTSearcher } = require('ytsearcher');
const searcher = new YTSearcher(apikey);

For details on how to obtain an API key and create a project visit this link

To Perform Searches

// result will be a YTSearch object.
let resultA = await searcher.search('A Search Query');

// You can customize your search with like so:
let resultB = await searcher.search('Another Query', searchOptions)

A list of options is available here

// For example, to grab only video results from a search query:
let resultC = await searcher.search('A Third Query', { type: 'video' });


// This will log the first search result.
console.log(result.first);

// This will log the url of the first search result.
console.log(result.first.url);

The Search Query can be anything, including a youtube link itself.

Full docs are available here: http://ytsearcher.willyz.cf

Keywords

FAQs

Package last updated on 10 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc