Zapier Social Media Automation: Schedule Posts to 9 Networks From One Zap

By Andrei Last updated: November 22, 2026 7 min read

Zapier social media automation with SchedPilot is a two-step Zap: your trigger (a new Google Sheets row, a new RSS item, a new Shopify product, a schedule), then one Code by Zapier step that sends the caption, the accounts and a time to SchedPilot’s API. SchedPilot publishes it to Instagram, TikTok, LinkedIn, X, Facebook, YouTube, Pinterest, Threads or Bluesky. The code is below, ready to paste, and it uploads an image or video too if you give it a link.

Why a code step instead of Zapier’s own social apps? Zapier’s Facebook, Instagram and LinkedIn apps each post to one network, so covering five networks means five actions and five connections to maintain. One SchedPilot request covers all of them. And why code instead of Webhooks by Zapier? Because Webhooks drops your mapped caption into the JSON as-is, so the first quotation mark in a caption breaks the request. A short Code by Zapier step avoids that, and you can paste it as-is.

Post in 10 Platforms at once

Free trial · Start with $0 · 10+ platforms
Social media management tool. Instagram, TikTok, Facebook, Twitter, LinkedIn and more. Great for influencers, marketers, agencies.

Get started for free

Check your Zapier plan first

Zapier’s free plan is fine for trying a trigger, but expect to need a paid Zapier plan for this to run for real: Webhooks by Zapier is a premium app, and anything beyond the simplest two-step Zap needs a paid plan too. Each Zap run uses one task per action step, so the setup below costs one task per post no matter how many networks the post goes to. Check Zapier’s pricing page for the current limits, because they change.

On the SchedPilot side, API access works on every plan, including the 7-day trial ($0 today, card required, nothing charged during the trial).

Step 1: Get your API key and account IDs

In SchedPilot, connect your social accounts on the Social Accounts page and generate a key under API Access. Then list your accounts once, from a terminal:

curl https://api.schedpilot.com/developers/v1/accounts -H "X-API-KEY: YOUR_KEY"

Each account comes back with an id and a type such as instagram, linkedin, linkedin_page or twitter. Write down the ones you want in the format type:id, for example linkedin:17, twitter:23, threads:41. That string goes straight into the Zap.

Step 2: Pick the trigger

Woman working on a laptop with spreadsheets open in a modern office

Google Sheets, New Spreadsheet Row is the content-calendar version: one row per post, with columns for the caption, date, time and an optional image link. RSS by Zapier, New Item in Feed posts every new blog article. Shopify, New Product announces products as you add them. Schedule by Zapier fires daily or weekly if you post from a fixed list.

Want AI to write the caption? Add a ChatGPT or AI by Zapier step between the trigger and the code step, ask for one post with a hard character limit, and map its output into the caption field below. Tell it to use only facts from the source text, or it will cheerfully invent a statistic.

Step 3: Add the Code by Zapier step

Add an action, choose Code by Zapier, then Run JavaScript. In the Input Data section, create these fields and map them from your trigger:

Input fieldWhat goes in it
apiKeyYour SchedPilot API key
captionThe post text (sheet column, RSS title and link, or the AI step’s output)
dateThe publish date as YYYY-MM-DD
timeThe publish time as 24-hour HH:mm
timezoneYour timezone, for example America/New_York
accountsThe type:id list from Step 1
mediaUrlOptional: a direct link to an image or video file

Then paste this into the code box:

const API = 'https://api.schedpilot.com/developers/v1';
const headers = { 'X-API-KEY': inputData.apiKey };

// Optional: upload the image or video first
let attachments = [];
if (inputData.mediaUrl) {
  const file = await (await fetch(inputData.mediaUrl)).blob();
  const form = new FormData();
  form.append('file', file, inputData.mediaUrl.split('/').pop().split('?')[0]);
  const up = await fetch(API + '/media/upload', { method: 'POST', headers: headers, body: form });
  const media = await up.json();
  if (!up.ok) throw new Error('Upload failed ' + up.status + ': ' + JSON.stringify(media));
  attachments = [media.media_id];
}

// Schedule the post
const res = await fetch(API + '/post', {
  method: 'POST',
  headers: { ...headers, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    content: inputData.caption,
    date: inputData.date,
    time: inputData.time,
    timezone: inputData.timezone || 'UTC',
    accounts: inputData.accounts.split(',').map((pair) => {
      const [type, id] = pair.trim().split(':');
      return { id: Number(id), type: type };
    }),
    attachments: attachments,
  }),
});
const body = await res.json();
if (!res.ok) throw new Error('SchedPilot ' + res.status + ': ' + JSON.stringify(body));
return { post_id: body.post_id, status: body.status };

Click Test. A post_id and "status": "scheduled" in the output means the post is sitting in your SchedPilot calendar, where you can still edit or delete it before it goes out. If something’s wrong, the step fails with SchedPilot’s error message, which usually names the field.

Two notes on media. The link has to return the file itself, so Google Drive share pages and Dropbox preview pages won’t work; use a direct download link. And Code by Zapier steps have a time limit, so for large videos it’s more reliable to upload them to the SchedPilot media library once and put the media ID (like video-7) in the post instead.

Step 4: Write the post ID back

If your trigger is a spreadsheet, add a Google Sheets, Update Spreadsheet Row step that writes the returned post_id into a column. It’s your record of what went out, and it’s how you avoid double posts: Zapier replays a failed run if you ask it to, and every request to SchedPilot creates a new post. Add a Filter step before the code step that only continues when that column is empty.

What breaks Zapier social media automations

Home office desk with two monitors and a laptop

Dates are the most common problem. Google Sheets often hands Zapier a date like “12/1/2026”, which isn’t the YYYY-MM-DD the API expects. Format the column as plain text in that format, or add a Formatter by Zapier, Date / Time step to convert it before the code step.

Media requirements come second. Instagram, Pinterest, TikTok and YouTube won’t accept a text-only post, so if your accounts list includes them, every row needs a mediaUrl. One post can carry images or a single video, not both.

Then the networks’ own limits: X stops at 280 characters and Bluesky at 300, so a LinkedIn-length caption needs a shorter version for them. The simplest fix is two rows (or two code steps) with different accounts, one short caption and one long.

One opinion to finish: if you’re posting more than a few hundred times a month, Zapier’s task pricing gets expensive compared with Make or a self-hosted n8n. For a content calendar of a post or two a day, Zapier is the easiest of the three to set up and leave alone.

Other ways to build this

The same request works from any workflow tool. Our n8n social media automation guide has importable workflows, including dedicated ones for Instagram, TikTok and LinkedIn, and the Make.com social media automation guide covers the Make version. If you’d rather not build anything, connect Claude to social media and ask it to schedule your posts, or call the SchedPilot social media API from your own code. For a ready-made seasonal schedule, see our Black Friday social media posts.

Zapier social media automation FAQ

Is there a SchedPilot app on Zapier?

No. Use a Code by Zapier step (or Webhooks by Zapier) to call SchedPilot’s REST API, as shown above.

Can Zapier post to TikTok and Instagram?

Through SchedPilot, yes. Include a mediaUrl with a video for TikTok or an image or video for Instagram, since neither accepts text-only posts.

Why does my Zap fail with a 400 error?

Usually a date that isn’t YYYY-MM-DD, a missing account in the accounts field, or a text-only post to a network that needs media. The error message from SchedPilot shows up in the failed step.

Does posting to five networks cost five Zapier tasks?

No. One code step sends one request with all five accounts, so it’s one task per post.

Ready to build the Zap? Start SchedPilot for $0, connect your accounts and generate an API key. The trial lasts 7 days, a card is required, and nothing is charged if you cancel before it ends. Plans start at $29 a month, or $21 a month billed yearly.

Related posts

Grow your social presence with the best tool for creating content

Schedule posts, find your best time to publish, and keep your calendar full — without the chaos. SchedPilot makes consistency simple across every channel.

Start for free

Free trial available. Cancel anytime.