VideoStats VideoStats
VideoStats Certified

yaml
type: "io.kestra.plugin.youtube.VideoStats"
yaml
id: get_video_stats
namespace: company.team

tasks:
  - id: authenticate
    type: io.kestra.plugin.youtube.auth.OAuth2
    clientId: "{{ secret('YOUTUBE_CLIENT_ID') }}"
    clientSecret: "{{ secret('YOUTUBE_CLIENT_SECRET') }}"
    refreshToken: "{{ secret('YOUTUBE_REFRESH_TOKEN') }}"

  - id: get_stats
    type: io.kestra.plugin.youtube.task.VideoStats
    accessToken: "{{ outputs.authenticate.accessToken }}"
    videoIds:
      - "dQw4w9WgXcQ"
      - "9bZkp7q19f0"
    includeSnippet: true
Properties
SubTypestring
Defaultkestra-yt-plugin
Defaultfalse
Defaultfalse
Default5
Definitions
channelIdstring
channelTitlestring
commentCountinteger
definitionstring
descriptionstring
dimensionstring
dislikeCountinteger
durationstring
favoriteCountinteger
likeCountinteger
publishedAtstring
thumbnailUrlstring
titlestring
videoIdstring
viewCountinteger