How to Build a Social Data Pipeline in 5 Steps
Build a social data pipeline in five steps: collect, schedule, normalise, store and cap spend, with working API calls and a free planner that prices it first.
To build a social data pipeline, you collect posts or profiles through an API, run that collection on a schedule, keep the response in one shape, store it under stable IDs, and cap what each run can spend. With SocialCrawl the collection is plain HTTP calls with one x-api-key header, and a free planner tells you the calls and credit cost before you run anything.
What does a social media data pipeline consist of?
A social media data pipeline has five stages: collect the data, schedule the collection, normalise the responses, store the rows, and control cost. Each stage is a small piece of code or a setting. The table shows what each one needs and where SocialCrawl covers it.
| Stage | What you need | How SocialCrawl helps |
|---|---|---|
| Collect | One call per profile, post list or search | One endpoint per job, same x-api-key header everywhere |
| Schedule | A repeat run and a way to receive results | Monitors run a saved call hourly, daily, weekly or on a cron |
| Normalise | One schema across platforms | Every post comes back as post.id, post.published_at, post.engagement.* |
| Store | A table keyed on a stable ID | You choose the database; post.id is the key |
| Control cost | A price before a run, a ceiling during it | Free planner and estimator, max_credits on paged walks |
How do you plan the API calls for a social data pipeline?
Describe the job in plain words and send it to GET /v1/utility/plan?query=. The response lists the calls the job needs, in order, with the values your sentence filled, the ones still missing, the credit price of each call and a ready-made curl. The planner runs nothing and costs 0 credits.
curl -G "https://www.socialcrawl.dev/v1/utility/plan" \
--data-urlencode "query=a creator's TikTok profile, their recent videos and the comments on them" \
-H "x-api-key: $SOCIALCRAWL_API_KEY"Here is the answer, trimmed to the fields you act on:
{
"recipe": "creator_profile",
"uncertain": false,
"steps": [
{
"id": "tiktok_profile",
"method": "GET",
"path": "/v1/tiktok/profile",
"missing": ["handle"],
"credits": 1,
"run": "blocked"
},
{
"id": "tiktok_posts",
"path": "/v1/tiktok/profile/videos",
"missing": ["handle"],
"binds": { "handle": "tiktok_profile.author.username" },
"credits": 1,
"run": "blocked"
},
{
"id": "tiktok_comments",
"path": "/v1/tiktok/post/comments",
"missing": ["url"],
"binds": { "url": "tiktok_posts.items[].post.url" },
"credits": 1,
"run": "blocked"
}
],
"total": { "calls": 31, "hold": 31, "exact": true }
}The sentence named no account, so handle is missing and each step is blocked. Put a handle in the sentence and the first step comes back ready. binds shows how the steps chain: the video step takes its handle from the profile result, and the comment step takes each video url from the video rows.
total is the number to budget with. It counts the fan-out: one profile call, five video calls, then five comment calls for each video, which is 1 + 5 + 25 = 31 calls. Read total rather than adding up the step labels, because each step label is the price of one call.
The planner never guesses a search term. A placeholder such as "medical keyword", a country name or most of your sentence is left out of query or keywords and listed under missing, so you supply the term yourself. A request that lists several topics carries topics, and each search step runs once per topic. A request that names several markets carries markets as ISO codes, such as KR and JP, comes back uncertain, and notes that each market should be planned on its own.
It has ready plans for monitoring a brand, one creator's profile and posts, a topic search, a saved search on a monitor, reactions to a brand in a past window, the accounts behind a topic, what is trending, where a topic is discussed, the official accounts of a list of names, and finding creators in a niche. A question that one endpoint answers comes back as that one call. Write the sentence in any language. See the utility endpoint docs for every field.
How do you collect social media data with one set of API calls?
Collect with one GET per job. A profile, a post list and a comment list are separate endpoints, and every response uses the same envelope, so one client works for all of them. For a topic across platforms, GET /v1/search/everywhere searches several sources in one call.
curl -G "https://www.socialcrawl.dev/v1/search/everywhere" \
--data-urlencode "query=Nike" \
--data-urlencode "sources=tiktok,reddit" \
-H "x-api-key: $SOCIALCRAWL_API_KEY"That search costs 20 credits. Each item in a keywords list is billed as its own search. For the same pattern in more depth, see how to search TikTok and Reddit in one call and what a social search engine returns.
For lists longer than one page, send max_items and the endpoint walks pages for you. Stop on has_more: false, not on an empty page. Pagination covers the walk, and Twitter API pagination shows the same loop on X.
How do you schedule a social data pipeline?
Create a monitor with POST /v1/monitors. A monitor runs one saved call on a schedule and sends each result to your webhook. Pick hourly, daily, weekly or a cron expression. Each run costs the saved call's price plus 1 credit for scheduling.
curl -X POST "https://www.socialcrawl.dev/v1/monitors" \
-H "x-api-key: $SOCIALCRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipe": "search/everywhere",
"params": { "query": "acme corp" },
"cadence": "daily",
"webhook_url": "https://example.com/hooks/socialcrawl"
}'Your endpoint receives a signed JSON body each time a run completes, with the result, any alerts and the change since the last run. Verify the signature before you trust a delivery; Monitor webhooks has the verification code. The social media monitoring API post walks through alert rules.
Identical calls inside the cache window are served from cache for 0 credits, so a monitor that repeats a call does not pay twice for data that has not aged out. See caching for the windows.
How do you normalise and store social data?
You mostly do not have to normalise. Posts come back with the same field names on every platform: post.id, post.published_at, post.content.text, post.engagement.likes, post.author.username. Store each post under post.id plus the platform, and upsert on that key so a repeated run updates a row instead of duplicating it.
Three habits keep the table useful:
- Keep the raw response next to the columns you query, so a field you ignore today is still there tomorrow.
- Write
engagementcounts as a new row per run, not an overwrite, if you want growth over time. - Treat a missing field as missing. Not every platform fills every field;
GET /v1/utility/endpoint?id=tiktok/profilereturns aquality.fill_rateper field so you know which ones to rely on before you build on them.
The API stores no history and each call returns today's number, so a follower chart exists only if your pipeline saves a snapshot on every run. Scheduled collection is how you get that series.
How do you keep the cost of a pipeline predictable?
Price it before it runs and cap it while it runs. The plan and the GET /v1/utility/estimate endpoint quote a job for free. On a paged walk, max_credits is a ceiling: a page starts only while the total spent plus that page's price still fits, so the call never goes past it.
curl "https://www.socialcrawl.dev/v1/instagram/profile/posts?handle=natgeo&max_items=200&max_credits=20" \
-H "x-api-key: $SOCIALCRAWL_API_KEY"Cache hits cost 0 credits and the utility endpoints (plan, estimate, endpoint guide) are free to poll. Endpoint pricing lists the price of each endpoint, so a monthly figure is the per-run price times your runs.
What does the planner not do?
- It runs no calls. You run the steps, or an agent does.
- It plans a closed list of jobs. A question outside them, or one it is not sure of, comes back
uncertain: truewith areason, never a guessed chain. - Follower history is out of reach. The request comes back with a
cannotnote telling you to re-run the call on a schedule and keep your own series. - It does not plan alerts on new posts. For those, a listener sends each new mention of a keyword once, and a monitor with
webhook_rows: "new"sends only the rows it has not seen before. - Plan and find requests share a limit of 30 a minute and 1,000 a day per key. Past that, the answer is
uncertainwith no steps.
FAQ
Is the social data pipeline planner free?
Yes. GET /v1/utility/plan costs 0 credits and runs none of the calls it lists. Each call in the plan is billed at its own price when you make it, and the plan's total shows what the whole job holds.
What does the plan endpoint return?
A steps list where each step has a method, a path, the parameters your sentence filled, the ones still missing, a credit price, a run state of ready, after_approval or blocked, and a curl. It also returns a total for the job, and a cannot list for any part of the ask the API does not do.
How often can a social data pipeline run?
A monitor runs hourly, daily, weekly or on a cron schedule you set. Each run bills the saved call's price plus 1 credit. Repeat calls inside the cache window are free, so a short cadence on slow-moving data costs less than the run count suggests.
Do I need to normalise data from different platforms?
No, field names already match. Posts use the same names on every platform, such as post.id and post.engagement.likes. You still decide how to store them and how to treat fields a platform does not fill; the endpoint guide shows a fill rate per field.
Can the planner handle languages other than English?
Yes. The query can be written in any language, so a Korean sentence works as well as an English one.
Run this request yourself
GET /v1/instagram/profile/posts?handle=natgeo&max_items=200&max_credits=20It opens with the request filled in, and nothing runs or costs credits until you press Run. Without an account you sign up first, then land on the same request.
Related posts
Everything We Shipped in November 2026: 311 Upgrades
SocialCrawl November 2026: 26 new platforms, 142 more endpoints, and 311 upgrades to calls you already make, with more data per row and faster answers.
Everything We Shipped in October 2026: 55 API Upgrades
SocialCrawl October 2026: the Discover engine, date windows on 150 lists, 1,000 Reddit posts a call, cheaper TikTok search, and 48 more API endpoints.
Download Facebook Comments: Every Reply in One Call
One call now downloads Facebook comments with every reply at every depth, up to 5,000 rows at 1 credit per 4 rows. Reply lists and reel comments work again.
