Which Social API

Getting started

Use a scraping API or build your own scraper?

A scraper that works on Monday is the easy part. Keeping it working through signed requests, IP blocks and overnight platform changes is the job, and it’s the job a scraping API sells you.

Researched by Which Social API editorial teamUpdated 30 October 20269 min read

Most teams that need social data start the same way: someone writes a script over a weekend, it pulls a few hundred profiles, and buying an API looks like a waste of money. Then the script starts returning 429s, or empty responses, or nothing at all, and the question becomes whether to keep fixing it.

Our view: for most products, buy. Build only when the official API covers you, the job is small and occasional, or you need something no vendor sells. Here’s why, and how to tell which case you’re in.

In short

  • Every major platform actively breaks scrapers: signed requests on TikTok, rate limits and login walls on Instagram, bot checks on YouTube, account pools on X.
  • The real costs are proxies, accounts and someone on call to fix things when a platform changes overnight, not the first version of the code.
  • Building makes you the one collecting the data, with the legal exposure that brings.
  • Build for official-API work, one-off research or data nobody sells. Otherwise compare scraping APIs on cost per useful record.

What breaks, and how often

The best evidence comes from the issue trackers of the open-source tools many scrapers are built on. They show the same pattern on every platform: things work, then stop, without warning.

Instagram

Instagram answers too many logged-out requests with 429s and “please wait a few minutes” errors, and Instaloader users were still reporting persistent 429s in October 2026. Logged-out visitors hit a login prompt after a few profiles. The web client depends on undocumented endpoints and GraphQL query IDs that change without notice: in September 2026 Instaloader’s follower lists started coming back empty. Media URLs are signed and expire, so you have to download what you need straight away.

TikTok

TikTok’s web endpoints need signed parameters plus device and session tokens that rotate. The popular TikTok-Api library needs a real browser, driven by Playwright, and a browser cookie to keep up. TikTok also returns HTTP 200 with an empty body instead of an error, which TikTok-Api users reported again in July 2026, so a scraper can “succeed” and return nothing. yt-dlp logged a TikTok break that worked on 31 August 2026 and failed on 1 September, and a live-stream protocol change in October.

YouTube

YouTube asks datacenter IPs to “sign in to confirm you’re not a bot”, and proof-of-origin tokens and streaming changes broke yt-dlp repeatedly in September 2026. Its caption endpoint blocks IPs that call it too often or that belong to cloud providers, as youtube-transcript-api’s own error message warns.

X

Since mid-2023 most X content needs a logged-in session, so unofficial tools run pools of real accounts, which X locks, rate-limits and challenges. In July 2026 twikit users reported a palm-liveness scan on login. In October 2026 twscrape users reported that failed requests looked the same as empty results.

It happens to vendors too

Scraping APIs don’t escape any of this; they absorb it. On 14 July 2026 EnsembleData’s status page logged TikTok banning a large batch of its IPs, taking profile and search lookups down for about six and a half hours. An Instagram change in August 2026 briefly wiped post view counts at both ScrapeCreators and EnsembleData. ScrapeCreators’ status page lists 36 incidents, most of them platform-side breaks fixed within hours. That’s a full-time team’s response time. Ask yourself how long the same break would take you.

What each route gives you
What you needOfficial APIScraping APIYour own scraper
Data on accounts you don’t manageSomeYesYes
Platform changes fixed for youYesYesNo
No proxies or accounts to runYesYesNo
Predictable cost per recordYesYesNo
Any field or data type you wantNoSomeYes
Full control of timing and storageSomeSomeYes

The costs a prototype hides

Proxies

At any real volume you need IP addresses the platforms don’t block, which usually means residential proxies. They’re billed by traffic, not by request. As one published example, Apify charges $8 per GB of residential proxy traffic on its Free and Starter plans, falling to $7 on Business, and $1 per datacenter IP beyond the 30 included on Starter. Retries use traffic too, and blocked proxies have to be replaced. Measure your traffic per record before you budget.

Accounts

Logged-out scraping gets you public profiles and posts. Follower lists, stories, some comment threads, age-restricted content and most of X need a logged-in session. That means buying or creating accounts, keeping them alive through checkpoints and challenges, and replacing them when they’re suspended. It’s also where the legal risk climbs, as below.

Detection and parsing

Because platforms return empty 200s and change response shapes, a status code isn’t enough. You need checks on every payload, alerts when the share of empty or malformed responses rises, and tests against live accounts you know.

Engineering time

This is the big one, and it isn’t the first version. It’s the person who drops what they’re doing when TikTok changes its signing overnight, every time, on whatever day it happens. Multiply by the number of platforms you need. If nobody on your team owns that, the scraper will be broken more often than you think.

Instagram, TikTok, X and YouTube all ban automated collection in their terms. Instagram’s prohibit “collecting information in an automated way without our express permission”, and TikTok’s US terms ban extraction by automated systems unless TikTok approves it in writing. When you build, you’re the one breaking those terms. With an API, the vendor does the collecting.

The case law draws lines that matter most to people who build:

  • Logged out is safer. In January 2024 a US court ruled that Meta’s terms didn’t bar Bright Data’s logged-off scraping of public Facebook and Instagram data. It said nothing about logged-in scraping.
  • Fake accounts are a liability. hiQ Labs persuaded an appeals court that scraping public pages likely wasn’t unauthorised access, then lost to LinkedIn on contract, partly over fake accounts, and ended with a $500,000 judgment and an order to delete the data and the code built from it.
  • Beating bot defences is its own risk. In Reddit v. SerpApi (31 July 2026), a New York federal court held that Google’s bot-detection and CAPTCHA system can be an “access control” under the DMCA, letting circumvention claims proceed. A California court dismissed similar claims in Google v. SerpApi the same month. Both are about search results, but the theory applies to anyone who engineers around a platform’s defences.

Personal data doesn’t change hands with the work. Under GDPR, public profiles are still personal data, and the Dutch regulator said in May 2024 that scraping by private companies is almost always unlawful unless it’s very targeted. Whether you build or buy, you need a lawful basis for what you store and should keep only what you need. This is practical guidance, not legal advice; our guide to the law goes further.

A decision checklist

Answer these before you write a line of scraper code.

  1. Does an official API cover it? If yes, use it. See below.
  2. How many platforms? Each one is its own maintenance burden. One platform is a project; four is a team.
  3. Do you need logged-in data? Followers, stories or most of X mean running accounts. That’s the most fragile and riskiest kind of scraping to own.
  4. How long can you be down? If the answer is hours, someone has to be on call for platform changes. If it’s weeks, a script you fix when you get round to it may be fine.
  5. Who owns it in a year? The person who wrote the scraper won’t want to maintain it forever. Plan for whoever inherits it.
  6. What does an API cost for your job? Work out the cost per useful record on your own inputs, using our guide to scraping API costs. Compare it with your proxy bill and the hours above, not with zero.
  7. Does anyone sell what you need? If not, you’re building whatever the other answers say.

When building makes sense

When the official API covers you

This is the best kind of “build”. The YouTube Data API is free and reads any public channel, video and comment, within 10,000 units a day plus 100 searches; at 50 IDs per call, that refreshes stats for about 500,000 videos or channels a day. Its rules are strict, though, including a 30-day limit on storing data about channels that haven’t authorised you. Instagram’s Business Discovery covers other professional accounts if you pass App Review, and TikTok’s Research API serves approved academics and non-profits, not commercial users.

For small or occasional jobs

A one-off research pull of a few thousand public profiles, run from a laptop with an open-source library, doesn’t need a vendor. If it breaks, you fix it or wait. The trouble starts when that script quietly becomes something a product depends on.

For data no one sells

Vendors cover the common data. If you need a platform or a field they don’t, you’ll build. Check first: between them, the APIs in our multi-platform ranking cover a lot more than their homepages suggest.

When you already run scrapers

A team with proxy contracts, monitoring and people who fix scrapers for a living has already paid most of the cost. For one platform and one simple endpoint at steady high volume, building can win.

The middle path

You can write your own scraper and run it on someone else’s infrastructure. Apify runs your code as an Actor on its platform and proxies, billed by compute units ($0.20 each on its Free and Starter plans) plus proxy traffic. You still own the fixes, but not the servers or the IP pool.

If you buy

Most teams need more than one platform, and the multi-platform APIs vary more than their logo strips suggest. ScrapeCreators covers the most platforms behind one key. If the data feeds a product, Influship is built for that job: one key, one way of calling it and one price ($1.80 per 1,000 calls) across Instagram, TikTok and YouTube. It bills after use like infrastructure, failed calls are free, it has an MCP server for AI agents, and whatever you spend you get a direct line to its founders and solutions engineers. Apify suits teams that want the deepest coverage per platform and will vet each scraper; Bright Data suits bulk, asynchronous collection under an enterprise contract. The top of our ranking:

If you only need one platform, our Instagram, TikTok, YouTube and X rankings go deeper.

Questions

Is it cheaper to build my own social media scraper?

Rarely, once you count proxies, accounts and the engineering time to fix it every time a platform changes. It can be cheaper for one platform, one simple data type and steady high volume, if you already have people who run scrapers.

Do I need proxies to scrape Instagram or TikTok?

At any real volume, yes. Instagram rate-limits logged-out requests per IP, and TikTok and YouTube block datacenter IPs. Residential proxies are the usual answer, and they’re billed by traffic: Apify charges $8 per GB on its Free and Starter plans.

Does using a scraping API make collection legal?

No. It moves the collection work to the vendor, but you still need a lawful basis under GDPR for any personal data you store, and you should check how your vendor collects.

Can I use open-source scrapers instead of an API?

For small or one-off jobs, often. Instaloader, TikTok-Api, yt-dlp and youtube-transcript-api are widely used. Their issue trackers are also the best evidence of how often each platform breaks them.

Researched byWhich Social API editorial teamResearches and writes every ranking, review, comparison and guide on Which Social API, working from each provider’s documentation, published pricing and public user reviews.

Keep reading