Skip to content
Data & Databases

Publish YouTube videos to Twitter with database logging

16 nodes 444 128 Automatic trigger
Download

Loading workflow…

Workflow Description

Automation that extracts video data from YouTube and posts them to Twitter in batches, while storing complete details in PostgreSQL for tracking, analytics, and campaign management across both platforms.

How it works

  1. 1.Trigger workflow manually or on schedule
  2. 2.Fetch video metadata from YouTube channel
  3. 3.Process and batch the video information
  4. 4.Post updates to Twitter account
  5. 5.Log transaction details in PostgreSQL database

Use cases

  • Automatically share new YouTube videos with Twitter followers
  • Track video performance metrics and social engagement
  • Manage multi-platform content distribution efficiently
  • Generate automated reports linking YouTube uploads to Twitter reach

Requirements

  • Active YouTube channel with API access
  • Verified Twitter/X account with app credentials
  • PostgreSQL database configured and accessible
  • API keys securely stored in n8n credentials

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Split In Batches HTTP Request Manual Trigger Twitter/X Postgres YouTube If Code Set

Details

Trigger Automatic trigger
Nodes 16
Apps 9
Views 444
Downloads 128

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (16)

/

Loop Over Items

Split In Batches

#1

find_video_data1

HTTP Request

#2

When clicking ‘Test workflow’

Manual Trigger

#3

Execute Workflow Trigger

Execute Workflow Trigger

#4

fetch_last_registered

Postgres

#5

get_videos

You Tube

#6

if_is_empty

If

#7

Postgres

Postgres

#8

insert_items

Postgres

#9

remove_shorts

Code

#10

create_query

Code

#11

structure_data

Code

#12

if_empty

If

#13

already_populated

Set

#14

map_data

Set

#15

sanitize_data

Code

#16

Sticky Note

Sticky Note

#17

Sticky Note1

Sticky Note

#18
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime