How do you post a video to X (twitter) on n8n?

I can not for the life of me figure out how to post a tweet with a video that I own and have downloaded.

The llm research that I have done says to do it in these steps, but I can not figure out how to properly chunk the video.

  1. Download video
  2. INIT HTTP
  3. APPEND
  4. FINALIZE

^^All with http nodes.

  1. and then finally use n8n designated X node to post with the attached video.
  1. INIT → get media_id

  2. APPEND → upload video

  3. FINALIZE → complete upload, poll STATUS if needed

  4. Post Tweet → use X node with media_ids=[media_id]

    Hope this helps

are you uploading the video all at once? I thought you had to chunk it.

Can you show me the exact node wirings?

Hey @Matt_Matchett welcome to n8n community.
Checkout this post.
https://community.n8n.io/t/post-media-to-x-twitter-via-api-new/90997

1 Like

yea, that’s about how to upload an image to Twitter. I am trying to upload videos that are longer than 140 seconds - which is a completely different process.

@Zion_Gonet was close - but his method only works for videos that are 140 seconds or shorter. To upload a video longer than 140 seconds, Twitter requires you to upload in CHUNKS - which is the entire problem that I am having.

How to upload video in chunks. Seems like this has never been done before on n8n.

apparently videos longer than 140 seconds are not allowed to be posted with api - dont waste your time. something to do with a ‘whitelist’ - X gives access to upload long videos with api to specific people. no application process available to the public.

1 Like