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.
gatsby-source-youtube-v3
Advanced tools
Readme
A gatsby source plugin for fetching videos from a list of Youtube channels using their channel IDs (and plays nice with Gatsby v3).
Learn more about Gatsby plugins and how to use them here: https://www.gatsbyjs.org/docs/plugins/
npm install --save gatsby-source-youtube-v3
plugins: [
{
resolve: `gatsby-source-youtube-v3`,
options: {
channelId: ['<< Array of Youtube channelIDs>>', 'UCK8sQmJBp8GCxrOtXWBpyEA'],
apiKey: '<< Add your Youtube api key here>>', // Optional for public requests
maxVideos: 50 // Defaults to 50
},
},
...
]
Get all the videos:
{
allYoutubeVideo {
edges {
node {
id
title
description
videoId
publishedAt
privacyStatus
channelTitle
}
}
}
}
Get videos from a specific channel:
{
allYoutubeVideo(filter: {channelId: {eq: "UCK8sQmJBp8GCxrOtXWBpyEA"}}) {
edges {
node {
id
title
description
videoId
publishedAt
privacyStatus
channelTitle
}
}
}
}
title
: The title of the Youtube video
description
: The description of the Youtube video
videoId
: The id for the video on Youtube, can be used to make a url to the video or to embed it
publishedAt
: The date the video was published.
privacyStatus
: The privacy status of the video, public, private, or unlisted
thumbnail
: The information about the largest thumbnail available on Youtube. Sub-properties: url
, width
, height
localThumbnail
: The information about the locally saved thumbnail. Works with gatsby-image
channelId
: The channel id of the Youtube video
channelTitle
: The title of the channel of the Youtube video
FAQs
Gatsby source to fetch data from Youtube API
The npm package gatsby-source-youtube-v3 receives a total of 1,882 weekly downloads. As such, gatsby-source-youtube-v3 popularity was classified as popular.
We found that gatsby-source-youtube-v3 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.