To vet a social media scraping API, ask how it gets the data, what it keeps, what it charges for and whether your credits expire. Then spend an hour running it against 20 accounts you already know, because the problems that hurt later (rounded counts, missing posts, charges for failed calls, IDs that lose digits) nearly all show up in that first hour.
Most teams skip the second part. They try three famous profiles in the vendor's playground, the numbers look right, and they buy the plan. The trouble starts a month later on the accounts nobody tested: the private one, the creator who deleted half her posts, the TikTok that turns out to be a photo carousel and not a video.
This is the checklist we'd use if we were the ones buying. It includes the questions where our own answers aren't perfect.
The questions to ask before you pay
Ask these in writing. A vendor that answers them plainly is usually one you can work with. A vague answer to either of the first two is a reason to walk away.
1. Do you log in to get this data?
This is the big one. There are two ways to collect social data at scale. One is as a logged-out visitor, seeing what anyone can see. The other is through logged-in accounts, which see more: full follower lists on platforms that hide them from visitors, and content that isn't public at all.
The extra data comes at a price. Logged-in scraping runs on accounts that break the platform's rules, so it can stop working the day those accounts get banned. And the data you're buying wasn't public in the first place, which matters if anyone ever asks where it came from.
Ask it directly: "Do any of your endpoints use logged-in accounts, session cookies or access tokens?" If the answer is "only some," ask which ones.
There's a simple tell, too. If a vendor can show you posts from a private account, it's logged in. Logged-out visitors can't see them.
2. Will I need to give you my account or a session cookie?
Some tools work by acting as you. You connect your account or paste a cookie from your browser, and the tool browses as you. That's fine for a handful of profile views a day. At volume it's your account that gets restricted, and a third party now holds a working login to it.
A scraping API shouldn't need either. You should get an API key and nothing else.
3. What do you store, and for how long?
Two questions hide in this one.
First, is the data live or cached? A cache is fine if you know how old it can get. A follower count from last Tuesday is a different product from one fetched when you asked. Ask for the maximum age, then check it during the test.
Second, what do they keep about you? Your queries say a lot: which creators you're vetting, which competitors you watch. Ask how long request logs are kept and who can see them.
4. What exactly do you charge for?
Every API charges for a successful response. The differences are at the edges:
- a deleted post or a banned account
- a private account
- an empty search
- a timeout or an error from the platform
- an automatic retry
Get the rule in writing, then check it in the test below. Ours is simple: errors are free, and anything that comes back as a successful response costs credits, even when the list inside it is empty. That second part surprises people, so test the empty cases you care about before you build on them.
5. Do my credits expire?
"Pay as you go" means different things depending on who's selling it. Some plans give you a monthly allowance that resets at renewal whether you used it or not. Others sell packs that last until you spend them. If your usage is lumpy, say a research project in March and nothing in April, expiring credits quietly raise what you pay per result. Our pay-as-you-go comparison lists which vendors reset and which don't.
6. Do IDs come back as strings?
TikTok and X IDs are 19 digits long, which is too long for a JavaScript number. If an API only returns them as numbers, any JavaScript client rounds them without an error, and you end up storing IDs that point to nothing. Check that every ID you plan to keep has a string version. We wrote up which TikTok and X ID fields are safe, including the rounded numeric copies some of our own list endpoints still include.
7. What happens when I send 50 requests at once?
Rate limits rarely show up in a trial, because trials are small. Ask what the limit is per second and per minute, and what comes back when you hit it: a 429 you can retry, or a slow, half-empty response. We don't rate limit, and you should still send a burst during the test to see how response times hold up.
The one-hour test
The questions tell you what the vendor intends. The test tells you what you'll actually get. It takes about 30 requests, so it fits in most free trials, including our 50 free credits.
Pick 20 accounts you know
Use accounts where you know the right answer or can check it in a logged-out browser. A mix works best:
- 8 large accounts with over a million followers, where rounding shows up
- 8 small or mid-size accounts, which are most of what you'll query in real life
- 1 private account
- 1 account that was renamed or banned recently
- 2 accounts in a language or region you care about
Note each account's follower count, post count and latest post date from the logged-out page while the test runs. Counts on big accounts move by the minute, so compare within a few minutes of each other.
Check the numbers themselves
Small differences on big accounts are normal. You're looking for anything systematic:
- Rounded numbers. TikTok's own profile data carries a rounded follower count next to an exact one. For MrBeast,
stats.followerCountcame back as 146,900,000 andstatsV2.followerCountas "146937331". An API that only gives you the first one is giving you an estimate. Our exact follower count guide shows which field to read on each platform. - Impossible numbers. Charli D'Amelio's
stats.heartCountcomes back as -499,343,871. That's her 12.4 billion likes overflowing a 32-bit integer, and it's how TikTok sends it. A good API also gives you the correct value somewhere. A careful one tells you which field that is. - Stale numbers. If the latest post date is days behind the live page, you're reading a cache.
Try the awkward cases
These are the inputs that break pipelines in month two. One request each:
- A deleted post. You want a clear error. A 200 with empty fields gets counted as zero views by any code that isn't expecting it.
- A private account's posts. You want a clear "private" answer. Real posts here mean the vendor is logged in (see question 1).
- A TikTok photo post. Plenty of tools assume every TikTok is a video and return nothing useful. Here's what a photo post looks like in the data.
- A short link, like the
vm.tiktok.comURL the share button gives you. Your users will paste these. - A search with a date filter. Check
create_timeon every result. A filter that wasn't applied looks exactly like one that was until you look.
Page through one search
Run a keyword search and fetch three pages. Then check:
- Did page 2 repeat videos from page 1? Some overlap is normal on TikTok, because each page is a fresh request against results that keep moving. Dedupe by ID.
- Did
has_moreand the cursor behave, or did page 3 come back empty while claiming there was more? - Did the date filter and the sort order survive past page 1?
Don't expect the same search to match itself twice, whoever you're testing. TikTok reshuffles results between calls made minutes apart, so judge a search endpoint on whether the results are relevant and correctly filtered. We measured how much TikTok search changes over a few minutes.
Send a burst and check the bill
Run the profile lookups 10 at a time instead of one by one. Note how many fail and how long the slowest one takes. A trial that's quick one request at a time can fall over at the concurrency you'll run in production.
Then read your credit balance before and after the whole test and compare the drop with what each response said it cost. If the two don't match, find out why before you buy. It's also how you learn whether that deleted post or empty search cost you anything.
A script for the profile part
This runs a list of TikTok accounts through our profile endpoint 10 at a time, records what came back and what it cost, and reads your balance before and after. Point it at another platform's endpoint, or another vendor, by changing the path and the fields it reads.
// vet-test.mjs (Node 18+). Run: SV_API_KEY=sk_live_... node vet-test.mjs
import fs from "node:fs";
const BASE = "https://api.sociavault.com/v1";
const headers = { "x-api-key": process.env.SV_API_KEY };
const handles = ["nasa", "mrbeast", "charlidamelio"]; // add the rest of your 20
async function get(path) {
const t0 = Date.now();
const res = await fetch(BASE + path, { headers });
const body = await res.json().catch(() => null);
return { status: res.status, ms: Date.now() - t0, body };
}
async function profile(handle) {
const r = await get(`/scrape/tiktok/profile?handle=${encodeURIComponent(handle)}`);
const d = r.body?.data ?? {};
return {
handle,
status: r.status,
ms: r.ms,
credits: r.body?.credits_used ?? 0,
followers: d.statsV2?.followerCount ?? d.stats?.followerCount ?? "",
videos: d.statsV2?.videoCount ?? d.stats?.videoCount ?? "",
private: d.user?.privateAccount ?? "",
};
}
const before = (await get("/credits")).body?.credits;
const rows = [];
for (let i = 0; i < handles.length; i += 10) {
rows.push(...(await Promise.all(handles.slice(i, i + 10).map(profile))));
}
const after = (await get("/credits")).body?.credits;
const cols = Object.keys(rows[0]);
const csv = [cols.join(","), ...rows.map((r) => cols.map((c) => r[c]).join(","))];
fs.writeFileSync("vet-test.csv", csv.join("\n"));
const reported = rows.reduce((sum, r) => sum + r.credits, 0);
console.log(`balance ${before} -> ${after}, responses reported ${reported} credits`);
console.log(`slowest ${Math.max(...rows.map((r) => r.ms))} ms, non-200: ${rows.filter((r) => r.status !== 200).length}`);
The same thing in Python:
# vet_test.py. Run: SV_API_KEY=sk_live_... python vet_test.py
import csv, os, time
from concurrent.futures import ThreadPoolExecutor
import requests
BASE = "https://api.sociavault.com/v1"
HEADERS = {"x-api-key": os.environ["SV_API_KEY"]}
handles = ["nasa", "mrbeast", "charlidamelio"] # add the rest of your 20
def get(path, params=None):
t0 = time.time()
r = requests.get(BASE + path, headers=HEADERS, params=params, timeout=90)
try:
body = r.json()
except ValueError:
body = {}
return r.status_code, round((time.time() - t0) * 1000), body or {}
def profile(handle):
status, ms, body = get("/scrape/tiktok/profile", {"handle": handle})
d = body.get("data") or {}
v2, v1 = d.get("statsV2") or {}, d.get("stats") or {}
return {
"handle": handle,
"status": status,
"ms": ms,
"credits": body.get("credits_used", 0),
"followers": v2.get("followerCount", v1.get("followerCount", "")),
"videos": v2.get("videoCount", v1.get("videoCount", "")),
"private": (d.get("user") or {}).get("privateAccount", ""),
}
before = get("/credits")[2].get("credits")
with ThreadPoolExecutor(max_workers=10) as pool:
rows = list(pool.map(profile, handles))
after = get("/credits")[2].get("credits")
with open("vet-test.csv", "w", newline="") as f:
writer = csv.DictWriter(f, fieldnames=list(rows[0].keys()))
writer.writeheader()
writer.writerows(rows)
reported = sum(r["credits"] for r in rows)
print(f"balance {before} -> {after}, responses reported {reported} credits")
/v1/credits returns your balance in a credits field. If the drop in balance doesn't match the sum of credits_used, something was charged that the responses didn't report. Our dashboard's activity page also lists every request with its status and the credits it used, so you can check the awkward cases there one by one.
What an hour of testing won't tell you
- Whether it still works in six months. Platforms change their apps and pages all the time, and scrapers break when they do. Ask how fast the vendor fixed the last breakage, and whether there's a status page or changelog you can watch.
- Rare failures. Twenty accounts won't surface a bug that hits one request in a thousand. If you're planning millions of calls, run a bigger sample over a week before you commit.
- Your legal risk. Logged-out, public data is the safer side of the line, but it isn't a free pass. In hiQ v. LinkedIn, hiQ won the argument that scraping public profiles wasn't "unauthorized access" under the CFAA, then lost on LinkedIn's user agreement, which the court found it had broken, partly by using fake accounts that logged in. Our roundup of the court cases goes deeper. None of this is legal advice, so if your use case is sensitive, ask a lawyer.
How we answer these ourselves
It seems only fair to answer our own checklist:
- Logins: none. We collect public data a logged-out visitor can see, with no accounts, session cookies or tokens.
- Your account: never needed. You get an API key.
- Billing: errors are free. A successful response costs credits (1 for most endpoints), even when it's empty.
- Expiry: credits don't expire, and there's no monthly reset.
- IDs: TikTok and X IDs come as strings. Some list endpoints also carry rounded numeric copies, so read the string fields.
- Rate limits: no rate limits.
- Coverage: 25+ platforms, including TikTok, Instagram, YouTube, X, LinkedIn, Facebook, Threads, Reddit and Pinterest.
Frequently Asked Questions
How do I test a social media scraping API before buying?
Run it against about 20 accounts you already know, plus a few awkward cases: a deleted post, a private account, a photo post, a short link and a filtered search. Compare the counts with the logged-out page, page through one search, run the lookups 10 at a time and check your balance before and after. It takes about an hour and 30 requests.
What questions should I ask a scraping API provider?
Ask whether any endpoint uses logged-in accounts or session cookies, whether you'll need to hand over your own account, what they store and for how long, what they charge for (errors, deleted posts, empty results), whether credits expire, whether IDs come back as strings, and what the rate limits are.
Is it safe to give a scraping tool my session cookie?
It's a real risk. A session cookie lets the tool act as you, so any restriction or ban lands on your account, and a third party now holds a working login. A scraping API that collects public data shouldn't need one.
Should a scraping API charge for failed requests?
It shouldn't charge for errors. The gray area is a successful response with nothing useful in it, like an empty search or a private account. Ask for the vendor's rule, then check it against your balance during the test.
Why do two scraping APIs return different follower counts?
Usually one reads a rounded field and the other reads an exact one, or one is serving cached data. On TikTok, stats.followerCount is rounded for big accounts while statsV2.followerCount is exact. Small gaps on big accounts are also normal, since the count changes while you compare.
How many credits does a proper test take?
About 30 requests: 20 profiles run 10 at a time, which doubles as the burst test, 5 awkward cases and 3 search pages. Add 5 more if you repeat a few lookups an hour later to check consistency.
Run the test on us first. Get 50 free credits, no card needed, and put your 20 accounts through it. If something comes back wrong, tell us. That's exactly the kind of thing we want to hear about.
Found this helpful?
Share it with others who might benefit
Ready to Try SociaVault?
Start extracting social media data with our powerful API. No credit card required.