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

youtube-finder-sync

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-finder-sync

A module for easy connection with Youtube API. Fork from youtube-finder.

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NPM

youtube-finder

A client for connect YOUTUBE API with an application javascript. All promise-based.

Install

$ npm install youtube-finder-sync
$ yarn add youtube-finder-sync
$ pnpm add youtube-finder-sync

Usage

const YTClient = require('youtube-finder-sync');
const client = new YTClient({ key: 'YOUR_API_KEY' });
const params = {
  part: 'snippet',
  q: 'Rick Roll',
  maxResults: 5,
};

client.search(params)
  .then(data => {
    // your code
  })
  .catch(err => {});

Mandatory parameters

part
    The part names that can be included in the parameter value are:
        - snippet
        - id

Filters and additional parameters

* maxResults
    Acceptable values are {0/} a 50, both inclusive. The default is 5.

* q
    The parameter q specifies the query term to be searched

* type
    The acceptable values are:
        * channel
        * playlist
        * video
    default value is: video,channel,playlist

* videoDuration
    Acceptable values are:
        * any: do not filter search results videos by duration. This is the default value.
        * long: Include only videos more than 20 minutes.
        * medium: Include only videos between 4 and 20 minutes (inclusive) in length.
        * short: Include only videos of less than 4 minutes.

more info at website official: https://developers.google.com/youtube/v3/docs/search/list#parmetros

Keywords

FAQs

Package last updated on 14 Jul 2022

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