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

@dofiltra/youtube

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dofiltra/youtube

Search videos on YouTube without API key

  • 1.1.25
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
0
Weekly downloads
 
Created
Source

dofiltra/youtube-search: Node.js

Search videos on youtube without API key

Using the library


/**
 * Given a search query, searching on youtube
 * @param {string} searchQuery (string or videoId).
 */
const videos = await yt.search({
  searchQuery: 'hello world',
  lang: 'en',
  sp: `CAASBAgCEAE%253D`,
});
const videos = await yt.search({
  searchQuery: 'RQ7bQ2YOdkc',
  lang: 'en',
  sp: `CAASBAgCEAE%253D`,
});
console.log('Videos:');
console.log(videos);

[{ kind: 'youtube#searchResult',
     channel: {
       id: 'UCFzpTuxdolZ_EaZr-emNgbg',
        name: 'David Koller',
        url: 'https://www.youtube.com/channel/UCFzpTuxdolZ_EaZr-emNgbg' 
    },
     id:{
       videoId: 'y5kIrbG2gRc',
        channelId: 'UCFzpTuxdolZ_EaZr-emNgbg' 
    },
     snippet: { 
        url: 'https://www.youtube.com/watch?v=y5kIrbG2gRc',
        thumbnails: {
            "url":"https://i.ytimg.com/vi/y5kIrbG2gRc/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLA-pk9HLDSz4VelSFZ01ceyeIpBSw",
            "width":"246",
            "height":"138"
        },
        publishedAt: '',
        duration: '0:01',
        title: 'CATNAP HUNTING MR DELIGHT..! | Poppy Playtime 3 Animation | CATNAP & MR DELIGHT LOVE STORY',
        views: '51',
        description:'..'
      }
},...]

Keywords

FAQs

Package last updated on 21 Jul 2024

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