Skip to main content

Publish YouTube Shorts to TikTok with RSS, RapidAPI and TikTok API

Workflow preview

Workflow preview
100%
Publish YouTube Shorts to TikTok with RSS, RapidAPI and TikTok API preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow polls a YouTube Shorts playlist RSS feed, deduplicates videos using an n8n Data Table, downloads each new Short via the YouTube Media Downloader API (RapidAPI), and upl...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.rssfeedreadtrigger, n8n-nodes-base.datatable, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Salman Mehboob.

Original n8n.io source

1.1 Workflow description

Title
Publish YouTube Shorts to TikTok with RSS, RapidAPI and TikTok API
Workflow name
Publish YouTube Shorts to TikTok with RSS, RapidAPI and TikTok API

Quick overview

This workflow polls a YouTube Shorts playlist RSS feed, deduplicates videos using an n8n Data Table, downloads each new Short via the YouTube Media Downloader API (RapidAPI), and uploads it to TikTok using the TikTok Content Posting API in either draft or direct publish mode.

How it works

  1. Runs every hour and checks the YouTube RSS feed for new videos in the configured Shorts playlist.
  2. Looks up the video ID in an n8n Data Table and stops if the Short was already processed.
  3. Stores the new video ID in the Data Table and maps the RSS fields (title, link, author, publish date) into a clean payload.
  4. Calls the YouTube Media Downloader API on RapidAPI to retrieve stream details, selects an MP4 with audio, and downloads the video file.
  5. Exchanges the TikTok refresh token for a new access token via TikTok’s OAuth endpoint.
  6. Initializes a TikTok upload as either an inbox draft or a direct post (using the configured privacy level) and uploads the MP4 binary to the returned TikTok upload URL.

Setup

  1. Update the YouTube RSS feed URL with your playlist ID and set your preferred polling interval.
  2. Create and select an n8n Data Table for deduplication and ensure it has a string column named short_id.
  3. Add your RapidAPI key for youtube-media-downloader.p.rapidapi.com in the request headers.
  4. Create a TikTok developer app with the Content Posting API, generate a refresh token, and set your client_key, client_secret, and refresh_token in the TikTok OAuth request.
  5. Choose whether to upload as draft or publish by setting the mode and privacy_level values, and ensure your TikTok app/account meets TikTok’s publishing and privacy requirements (for unaudited apps, use SELF_ONLY).

Requirements

  • RapidAPI Account: You need an active RapidAPI account subscribed to the "YouTube Media Downloader" API to fetch the video files.
  • TikTok Developer Account: You must create an app on developers.tiktok.com, add the "Content Posting API" product, and add your TikTok account as a sandbox tester.
  • n8n Data Tables Feature: Your n8n instance must support and have Data Tables enabled to handle the deduplication process.
  • YouTube Playlist ID: The 34-character ID of the YouTube Shorts playlist you want to monitor.

Customization

  • Dynamic Hashtags: You can easily modify the TikTok Init Publish node to automatically append specific hashtags to your YouTube descriptions before posting.
  • AI Caption Generation: You can insert an OpenAI or Anthropic node before the upload steps to rewrite your YouTube title into an engaging, viral-style TikTok caption.
  • Success Notifications: Add a Slack, Discord, or Telegram node at the very end of the workflow to notify your team when a new Short has been successfully published to TikTok.
  • Schedule adjustments: Change the RSS trigger from everyHour to everyDay or trigger on a specific cron schedule depending on your upload frequency.

Additional info

ro-Tip for Setup: This workflow includes a standalone Get Refresh Token (One Time Setup) node. You only need to use this node once to generate your initial refresh token. Once you have the token, paste it into the main workflow, and n8n will handle the daily access token renewals automatically! Contact: LinkedIn: linkedin.com/in/salman-mehboob-pro Email: [email protected]

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - RSS Feed Trigger

Type / Role
n8n-nodes-base.rssFeedReadTrigger - rssFeedReadTrigger
Config choices
Version 1

Block 2 - If row does not exist

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1.1

Block 3 - Add Row

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1.1

Block 4 - Arrange Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Get Download Link

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 6 - Download Link Parser

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Download Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 8 - Get TikTok Token

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 9 - Config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Draft or Publish?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 11 - TikTok Init Draft

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 12 - TikTok Init Publish

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 13 - Upload Video to TikTok

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Get Refresh Token (One Time Setup)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 21 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Publish YouTube Shorts to TikTok with RSS, RapidAPI and TikTok API
Complexity advanced
Nodes 21
Categories Social Media, Multimodal AI
Author Salman Mehboob
Published 08 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16171/16171.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Publish YouTube Shorts to TikTok with RSS, RapidAPI and TikTok API do?

Quick overview This workflow polls a YouTube Shorts playlist RSS feed, deduplicates videos using an n8n Data Table, downloads each new Short via the YouTube Media Downloader API (RapidAPI), and upl...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.