The short answer
There are two routes. You can connect each network to n8n yourself, which costs nothing extra but means separate credentials and, for TikTok and Instagram, developer approvals. Or you can send one request to a posting API that already holds those approvals. This guide builds the second route with SOSPosting and covers the first, because it is the better choice in some cases.
If you only need one network, you may not need us
At the time of writing, this is what n8n gives you without any third-party API:
- YouTube: a built-in node with a video Upload operation, using your own Google credential. For YouTube alone, start here.
- Instagram: no dedicated publishing node. You call Meta's API through the Facebook Graph API node: create a media container, then publish it. Meta requires a professional account and an app with publishing access. Community packages wrap those two steps.
- TikTok: no official node, only community packages. They still need a TikTok developer app, and TikTok limits unaudited apps to private posts until they pass its audit.
Vet any community package for recent maintenance, since an unmaintained one breaks when the network changes its API. If you want a ready-made node rather than an HTTP request, Upload-Post offers n8n connectors; we do not.
The workflow: three nodes and a pause
1. A trigger
Anything that produces a row: Schedule, Webhook, Google Sheets or Airtable. It needs to supply a stable ID, a caption, and a public https link to the media file.
2. HTTP Request: create the post
- Create a key in the dashboard under Settings, API access. It is shown once and tied to one business.
- In n8n, create a Header Auth credential. Set the name to
Authorizationand the value toBearer sosp_your_key. - Set the method to
POSTand the URL tohttps://app.sosposting.com/api/v1/posts. - Add a header named
Idempotency-Keyand set its value, in expression mode, topost-{{ $json.id }}. - Under Options, set Timeout to
60000, because this request can take up to 45 seconds. Turn on Include Response Headers and Status and Never Error, so the next step can read the status code. - Send the body with Using JSON, in expression mode:
{
"type": "reel",
"mediaUrl": {{ JSON.stringify($json.videoUrl) }},
"title": {{ JSON.stringify($json.title) }},
"caption": {{ JSON.stringify($json.caption) }},
"providers": ["INSTAGRAM", "TIKTOK", "YOUTUBE"],
"useAi": false
}Three details here cost real money or posts when they go wrong:
- Use JSON mode for
useAi. n8n's field-by-field mode and its Import cURL option send values as text. The API only turns AI off for a realfalse, so the text"false"leaves it on and adds 7 tokens. - Keep
JSON.stringify. A quote mark or line break in a caption otherwise produces invalid JSON. - Check the file extension. The API decides the media kind from the URL. Only
.mp4,.mov,.webmand.m4vcount as video, so a share link with no extension fails a reel.
Leave out useAi and AI writes the captions from your text, for 7 tokens. Leave out providers and the post goes to every eligible connected network, each one charged. Add scheduledAt as an ISO date, up to 60 days ahead, to publish later.
Why the Idempotency-Key matters
If n8n loses the response, it cannot tell whether the post was made. A retry without a key can publish and charge a second time. With a key, the repeat returns the original post with idempotentReplay: true. Build the key from the source row, never from $now or a random value, because a key that changes on each attempt protects nothing. Then branch on {{ $json.statusCode }}:
- 201: created. If
body.skippedProvidersis not empty, a network you named was not queued. - 409
idempotency_in_progress: the first request is still running. Wait a minute and repeat with the same key. - 409
post_already_created: never send it as a new post. Read it back usingbody.postIdwhen present. - 500
post_create_retryable: nothing was charged, so a retry is safe. - 402
insufficient_tokens: top up, then repeat with the same key. Send yourself an alert, because retrying alone will not help. - 429
rate_limited: the limit is 60 posts an hour per business. Slow down.
With Never Error on, n8n's Retry On Fail setting no longer reacts to these responses. It only covers timeouts and dropped connections, which are the cases the key makes safe to repeat.
3. Wait, then HTTP Request: check delivery
A 201 means queued, not published. Add a Wait node of a few minutes, then a GET with the same credential to https://app.sosposting.com/api/v1/posts/{{ $json.body.id }}.
The response has a post-level status and a targets list with each network's status, externalUrl and error. Use an IF node: POSTED is finished, SCHEDULED means it is not due yet, PROCESSING means wait and check again with a capped number of loops, and PARTIAL, FAILED or SKIPPED should alert you. A TikTok target reads PENDING_USER when it has no public URL, so check its externalId: v_inbox_ means the draft fallback ran and the connection needs reconnecting or the video publishing by hand, while v_pub_ or a numeric id is already live. A post with nothing else delivered rolls up to PARTIAL in that case, so read the target before you alert.
No public media URL?
POST /api/v1/media/presign returns an upload URL and a publicUrl to use as mediaUrl. Images can be up to 25 MB and videos up to 250 MB. You must declare the exact size in bytes and send the returned requiredHeaders unchanged, or storage answers 403 with an empty body. If you can host the file yourself, that is simpler in n8n. The full reference is at /developers.
What it costs
A video to Instagram, TikTok and YouTube costs 15 tokens with your own captions and 22 with AI captions. A photo costs 3 per network. New accounts start with 100 free tokens, which is enough to test this workflow on real accounts, and a delivery that fails on the service side is refunded automatically.
What it does not do
- No n8n node. You configure HTTP requests yourself, and there is no webhook for delivery results, so you poll.
- No one post for every network. A video reaches up to five (Instagram, Facebook, YouTube, TikTok, Threads) and a photo up to seven. The cross-posting guide has the detail.
- One media file per API post.
mediaUrltakes a single URL, so carousels are not possible this way. - No edit or delete endpoint. The API creates and reads posts only.
- No TikTok audience setting. The API has no field for it. A TikTok video goes out public, or at a visibility the account does allow if public is not on offer.
- It does not make your media. AI writes captions only; the video or image comes from your workflow.
- Metrics are partial. Views, likes and comments come back for Facebook, Instagram and YouTube targets only.
- Each network must already be connected in the dashboard. The API cannot do that step.
Frequently asked questions
Does n8n have a built-in Instagram or TikTok node?
At the time of writing, n8n has a built-in YouTube node that can upload videos, but no official node for publishing to Instagram or TikTok. Instagram goes through the Facebook Graph API node or a community package, and TikTok through a community package.
Is there a SOSPosting node for n8n?
No. You call the SOSPosting REST API from n8n's standard HTTP Request node with a Bearer key.
How do I stop an n8n retry from publishing the same post twice?
Send an Idempotency-Key header built from something stable, such as the ID of the source row. A repeat with the same key returns the original post instead of publishing and charging again.
What does a post from n8n cost?
The same tokens as a post made in the dashboard: 3 per network for a photo, 5 per network for a video, and 7 once if AI writes the captions. n8n's own costs are separate.