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
dataandmetafields 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,
};
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?
Where should I keep the API key in Zapier?
Related
Instagram and TikTok data in Google Sheets
Paste one Apps Script file, add your key as a script property, and a HandleHaul menu fills follower counts for a list of Instagram accounts and views, likes and saves for a list of TikTok videos.
Read more →Instagram and TikTok data in n8n
n8n’s HTTP Request node can page through HandleHaul lists on its own: set one header credential, point it at a route, and tell it where the next cursor is.
Read more →Instagram and TikTok data in Make
Make’s HTTP “Make a request” module calls any HandleHaul route.
Read more →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.