Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ionic-youtube-search
Advanced tools
Search videos on YouTube without API key in ionic apps
Table of contents:
ionic cordova plugin add cordova-plugin-advanced-http
npm install ionic-youtube-search --save
import * as yt from 'ionic-youtube-search';
/**
* Given a search query, searching on youtube
* @param {string} search value (videoId).
*/
const videos = await yt.search('Hello World');
const videos = await yt.search('y5kIrbG2gRc');
console.log('Videos:');
console.log(videos);
[
{
"id":{
"videoId":"y5kIrbG2gRc"
},
"snippet":{
"url":"https://www.youtube.com/watch?v=y5kIrbG2gRc",
"publishedAt":"3 months ago",
"thumbnails":{
"default":{
"url":"https://i.ytimg.com/vi/y5kIrbG2gRc/default.jpg",
"width":120,
"height":90
},
"high":{
"url":"https://i.ytimg.com/vi/y5kIrbG2gRc/hq720.jpg?sqp=-oaymwEhCK4FEIIDSFryq4qpAxMIARUAAAAAGAElAADIQj0AgKJD&rs=AOn4CLC9c-4JI285aXTlg99bne9V224hVw",
"width":686,
"height":386
}
},
"duration":{
"runs":[
{
"text":"2:01"
}
],
"accessibility":{
"accessibilityData":{
"label":"2 minutes, 1 second"
}
}
},
"title":"How to Download Free Music On Your iPhone (OFFLINE) 2020",
"views":{
"runs":[
{
"text":"51 views"
}
]
}
}
}
]
const yt = require('ionic-youtube-search');
/**
* Given a search query, searching on youtube
* @param {string} search value.
*/
const video = await yt.info('My Search Query');
console.log('Videos:');
console.log(videos);
Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js.
Apache Version 2.0
See LICENSE
FAQs
Search videos on YouTube without API key in ionic apps
We found that ionic-youtube-search demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.