Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
youtube-search-google-api
Advanced tools
Changelog
0.6.0
package.json
to update dependenciesReadme
YouTube Search Google API for Node.js. Search for YouTube videos, channels, playlists and live events via Google API for Node.js.
This module is designed to be usable via server-side for Node.js or in a browser client-side.
npm install youtube-search-google-api
There are 2 HTTP clients provided request and xhr. They handle the server-side and client-side respectively.
For Browserify, add a browser field to your package.json
:
"browser": {
"request": "xhr"
}
For Webpack, add a resolve.alias field to your configuration:
"resolve": {
"alias": {
"request$": "xhr"
}
}
Authorization via Google API Key or OAuth 2.0 token is required by Google. More information regarding Google authentication can be found at Calling the API. All other parameters are optional.
import { YouTube, SearchRequest } from 'youtube-search-google-api'
const youtube = new YouTube()
youtube.search(new SearchRequest(
{
query: {
key: 'AlzaSydu39i6-bseHDgCfG_SNE_hQwuGdc53Vws',
maxResults: 50,
order: 'viewCount',
type: 'video',
publishedAfter: '2017-10-01T00:00:00Z',
q: 'pumpkin|halloween+dog -cat'
}
}, function(error, response, body) {
// Handle the response...
}))
This module depends on the following.
Please read Contributing. Feel free to submit pull requests, issues and comments! Thank you. Participants will be added to the list of Contributors.
There is also a light weight alternative to this module Youtube Search.
YouTube Search Goggle API is Free and Open Source Software. It is licensed by the MIT License.
FAQs
YouTube Search Google API for Node.js. Search for YouTube videos, channels, playlists and live events via Google API for Node.js.
The npm package youtube-search-google-api receives a total of 10 weekly downloads. As such, youtube-search-google-api popularity was classified as not popular.
We found that youtube-search-google-api 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.