Tutorial · No code · Zapier

Instagram and TikTok data in Zapier

Two ways to call HandleHaul from a Zap: the Webhooks by Zapier GET action for a single request, or a Code by Zapier step when you want retries and only the fields you need.

Short answer. Add Webhooks by Zapier → GET, URL https://api.handlehaul.com/v1/instagram/users/natgeo, header X-Api-Key. Zapier flattens the JSON, so Data Counts Followers is ready to map into the next step.

Facts checked 2 December 2026. Prices change: follow the links before you decide.

Webhooks by Zapier (GET)

  • Action: Webhooks by Zapier → GET. Webhooks by Zapier is available on Zapier’s paid plans.
  • URL: the route; insert a value from an earlier step for the username or video link. Query String Params: optional, e.g. sort | views. Headers: X-Api-Key | your key.
  • Test the step: the result shows data and meta fields flattened (for example Data Username, Data Counts Followers, Meta Credits Charged).

Code by Zapier (JavaScript)

Use it when you want a retry on 429 or a smaller output. Add Code by Zapier → Run JavaScript, define Input Data handle and apiKey, and paste the code. It returns one flat object for the next steps.

Code steps have a short time limit, so keep them to one or a few calls per run; long lists belong in a script or n8n.

Code by ZapierRun: Test step

// Code by Zapier (Run JavaScript). Input Data: handle = the Instagram username, apiKey = your HandleHaul key.
// Returns the profile's counts for the next steps (a Sheets row, a Slack message, a CRM field).
const url = "https://api.handlehaul.com/v1/instagram/users/" + encodeURIComponent(inputData.handle.replace(/^@/, ""));
let res;
for (let attempt = 0; attempt < 3; attempt++) {
  res = await fetch(url, { headers: { "X-Api-Key": inputData.apiKey } });
  if (res.status !== 429) break;
  const wait = Number(res.headers.get("retry-after")) || 1; // 429s are free; wait and try again
  await new Promise((r) => setTimeout(r, wait * 1000));
}
const body = await res.json();
if (!res.ok) throw new Error(`${res.status} ${body.error?.code}: ${body.error?.message}`);
const p = body.data;
return {
  username: p.username,
  full_name: p.full_name,
  followers: p.counts.followers,
  following: p.counts.following,
  posts: p.counts.posts,
  is_verified: p.is_verified,
  credits_charged: body.meta.credits_charged,
};
Tested 2026-12-02 against a local mock serving the documented API responses (retry on 429, cursor paging, a private-account error).

Which route to call

The setup above works with every HandleHaul route; only the URL changes. The ones people use most in automations:

  • Instagram profile: GET /v1/instagram/users/{user}. Profile by username or id.
  • Instagram followers: GET /v1/instagram/users/{user}/followers. Followers, newest first.
  • Instagram comments: GET /v1/instagram/posts/{post}/comments. Comments on a post.
  • TikTok profile: GET /v1/tiktok/users/{user}. TikTok profile: bio, verified and private flags, follower, following, like and video counts.
  • TikTok video or photo post: GET /v1/tiktok/posts/{post}. One TikTok video or photo post by id or URL.
  • TikTok transcript: GET /v1/tiktok/posts/{post}/transcript. Transcript of a TikTok video from its auto-captions.

All 49 routes, with parameters and sample responses: tutorials and the API docs.

Zapier: questions

Can a Zap trigger when an account gets a new follower?
Not by itself: there is no webhook from HandleHaul. Use Schedule by Zapier to run every hour or day, call the followers route, and compare with the last run in Storage by Zapier or a sheet. Instagram lists are newest first, so page one holds the newest rows.
Where should I keep the API key in Zapier?
In the header field or Input Data of the step. Anyone who can edit the Zap can see it, so use a key with a monthly credit cap from the dashboard for automations.

Connect Zapier today

One key for Instagram and TikTok. $1.40 to $0.80 per 1,000 calls; failed calls and cache hits are free.

Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.