← YouTube (Data API) + SWAPI - Star Wars integrations

Get Film with SWAPI - Star Wars API on New Subscriber from YouTube (Data API) API

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

Trigger workflow on
New Subscriber from the YouTube (Data API) API
Next, do this
Get Film with the SWAPI - Star Wars 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 SWAPI - Star Wars 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 Subscriber trigger
    1. Connect your YouTube (Data API) account
    2. Configure Polling interval
  3. Configure the Get Film action
    1. Connect your SWAPI - Star Wars account
    2. Select a film
  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 subscriber to user Channel.
Version:0.0.3
Key:youtube_data_api-new-subscriber

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-subscriber",
  name: "New Subscriber",
  description: "Emit new event for each new Youtube subscriber to user Channel.",
  version: "0.0.3",
  dedupe: "unique",
  props: {
    youtubeDataApi,
    ...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.
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

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:Get a film
Version:0.0.13
Key:swapi-get-film

Action Code

const swapi = require("../../swapi.app.js");
const axios = require("axios");

module.exports = {
  key: "swapi-get-film",
  name: "Get Film",
  version: "0.0.13",
  description: "Get a film",
  type: "action",
  props: {
    swapi,
    film: {
      propDefinition: [
        swapi,
        "film",
      ],
    },
  },
  async run() {
    return (await axios({
      url: `https://swapi.dev/api/films/${this.film}`,
    })).data;
  },
};

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
SWAPI - Star WarsswapiappThis component uses the SWAPI - Star Wars app.
filmfilmstringSelect a value from the drop down menu.

Action Authentication

The SWAPI - Star Wars API does not require authentication.

About SWAPI - Star Wars

The Star Wars API

More Ways to Connect SWAPI - Star Wars + YouTube (Data API)

Get Film with SWAPI - Star Wars API on New Videos in Subscribed Channels from YouTube (Data API) API
YouTube (Data API) + SWAPI - Star Wars
 
Try it
Get Film with SWAPI - Star Wars API on New Videos by Location from YouTube (Data API) API
YouTube (Data API) + SWAPI - Star Wars
 
Try it
Get Film with SWAPI - Star Wars API on New Videos by Search from YouTube (Data API) API
YouTube (Data API) + SWAPI - Star Wars
 
Try it
Get Film with SWAPI - Star Wars API on New Videos by Username from YouTube (Data API) API
YouTube (Data API) + SWAPI - Star Wars
 
Try it
Get Film with SWAPI - Star Wars API on New Videos in Channel from YouTube (Data API) API
YouTube (Data API) + SWAPI - Star Wars
 
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