← YouTube (Data API) + Go integrations

Run Go Code with Go API on New Videos by Search from YouTube (Data API) API

Pipedream makes it easy to connect APIs for Go, YouTube (Data API) and 1000+ other apps remarkably fast.

Trigger workflow on
New Videos by Search from the YouTube (Data API) API
Next, do this
Run Go Code with the Go API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a YouTube (Data API) trigger and Go action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Videos by Search trigger
    1. Connect your YouTube (Data API) account
    2. Configure Maximum Results
    3. Configure Polling interval
    4. Configure Search Query
  3. Configure the Run Go Code action
    1. Connect your Go account
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event for each new YouTube video matching a search query.
Version:0.0.8
Key:youtube_data_api-new-videos-by-search

YouTube (Data API) Overview

There are lots of things you can build using the YouTube API! Here are just a
few examples:

  • A YouTube video player
  • A YouTube search engine
  • A tool to help you find popular videos on YouTube
  • A way to keep track of your favorite YouTube videos
  • A way to find new and interesting YouTube channels to watch

Trigger Code

import youtubeDataApi from "../../youtube_data_api.app.mjs";
import common from "./common.mjs";

export default {
  ...common,
  type: "source",
  key: "youtube_data_api-new-videos-by-search",
  name: "New Videos by Search",
  description: "Emit new event for each new YouTube video matching a search query.",
  version: "0.0.8",
  dedupe: "unique",
  props: {
    youtubeDataApi,
    maxResults: {
      propDefinition: [
        youtubeDataApi,
        "maxResults",
      ],
    },
    ...common.props,
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
YouTube (Data API)youtubeDataApiappThis component uses the YouTube (Data API) app.
Maximum ResultsmaxResultsinteger

The maximum number of results in a channel to return. Should be divisible by 5 (ex. 5, 10, 15).

N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
Polling intervaltimer$.interface.timer

Pipedream will poll the YouTube API on this schedule

Search Queryqstring

Search for new videos that match these keywords.

Trigger Authentication

YouTube (Data API) uses OAuth authentication. When you connect your YouTube (Data API) account, Pipedream will open a popup window where you can sign into YouTube (Data API) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any YouTube (Data API) API.

Pipedream requests the following authorization scopes when you connect your account:

emailprofilehttps://www.googleapis.com/auth/youtube.readonlyhttps://www.googleapis.com/auth/youtube.uploadhttps://www.googleapis.com/auth/youtube

About YouTube (Data API)

Online video platform

Action

Description:Run any Go code and use any Go package available with a simple import. Refer to the [Pipedream Go docs](https://pipedream.com/docs/code/go) to learn more.
Version:0.0.2
Key:go-run-go-code

Action Code

import go from "../../go.app.mjs";

export default {
  name: "Run Go Code",
  version: "0.0.2",
  key: "go-run-go-code",
  description: "Run any Go code and use any Go package available with a simple import. Refer to the [Pipedream Go docs](https://pipedream.com/docs/code/go) to learn more.",
  props: {
    go,
  },
  type: "action",
  methods: {},
  async run({ $ }) {
    // Placeholder action for Go code app
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
GogoappThis component uses the Go app.

Action Authentication

The Go API does not require authentication.

About Go

Anything you can do in Go, you can do in a Pipedream Workflow. You can use any of Go packages available with a simple import.

More Ways to Connect Go + YouTube (Data API)

Run Go Code with Go API on New Videos by Location from YouTube (Data API) API
YouTube (Data API) + Go
 
Try it
Run Go Code with Go API on New Videos by Username from YouTube (Data API) API
YouTube (Data API) + Go
 
Try it
Run Go Code with Go API on New Videos in Channel from YouTube (Data API) API
YouTube (Data API) + Go
 
Try it
Run Go Code with Go API on New Videos in Subscribed Channels from YouTube (Data API) API
YouTube (Data API) + Go
 
Try it
Run Go Code with Go API on New Videos from YouTube (Data API) API
YouTube (Data API) + Go
 
Try it
New Liked Videos from the YouTube (Data API) API

Emit new event for each new Youtube video liked by the authenticated user.

 
Try it
New Subscriber from the YouTube (Data API) API

Emit new event for each new Youtube subscriber to user Channel.

 
Try it
New Subscription from the YouTube (Data API) API

Emit new event for each new subscription from authenticated user.

 
Try it
New Videos from the YouTube (Data API) API

Emit new event for each new Youtube video the user posts.

 
Try it
New Videos by Location from the YouTube (Data API) API

Emit new event for each new YouTube video tied to a location.

 
Try it
Channel Statistics with the YouTube (Data API) API

Returns statistics from my YouTube Channel or by id. See the docs for more information

 
Try it
List Activities with the YouTube (Data API) API

Returns a list of channel activity events that match the request criteria. See the docs for more information

 
Try it
List Playlists with the YouTube (Data API) API

Returns a collection of playlists that match the API request parameters. See the docs for more information

 
Try it
List Videos with the YouTube (Data API) API

Returns a list of videos that match the API request parameters. See the docs for more information

 
Try it
Update Playlist with the YouTube (Data API) API

Modifies a playlist. For example, you could change a playlist's title, description, or privacy status. If you are submitting an update request, and your request does not specify a value for a property that already has a value, the property's existing value will be deleted. See the docs for more information

 
Try it