Social Media Scraping API: TikTok, Instagram, X and More
Pull posts and profiles from TikTok, Instagram, X, YouTube and LinkedIn through one key, with the fields each endpoint returned and the traps in them.

Pull the latest posts from TikTok, Instagram and X accounts in one prompt. Paste this into your agent:
Set up https://monid.ai/SKILL.md, and then use Monid to get the latest posts from the TikTok account nike, the Instagram account natgeo and the X account nasa, and give me a table with the network, the post text or caption, the date, the likes and the views.
One prompt reads three networks. 1 min setup · 20-48 hrs saved.
You want posts, profiles or engagement numbers from social networks, and you want them as JSON from one place instead of one scraper per network. This guide covers the endpoints for TikTok, Instagram, X, YouTube and LinkedIn, what each one returned when we ran it on 2026-10-16, and the traps in the output. It runs through Monid, the OpenRouter for agent tools: one key, one balance, every tool priced per call.
What is the easiest way to use a social media scraping API?
Monid. Install it once, add a key, and your agent calls a different endpoint for each network from the same balance, with no signup per vendor and no contract.
- Pay for what you run. Each endpoint states its billing shape and price before you spend anything: a TikTok profile scrape is $0.0003 per result, an X timeline is $0.001 per call (Verified 2026-10-16). Buy calls as you need them: no monthly plan and no minimum top-up. Discovery and inspection are free; only a run bills.
- One install, every network. The same key calls the TikTok, Instagram, X, YouTube and LinkedIn endpoints. Adding a sixth network is another
discover, not another account. - Lives inside your agent. Install the CLI, add your key, run the prompt above, and the tools are there whenever your agent needs them, with nothing to keep running. Your agent reads
SKILL.mdand learns the rest, so setup is about a minute.
On 2026-10-16 we ran five of these endpoints with small inputs for a total of $0.0400, and every record below comes from those runs (Verified 2026-10-16).
How do you scrape social media data for a list of accounts?
Pick the endpoint for each network, pass the handles, and loop; from a TikTok handle to a dataset in one script is the full version for TikTok. A social media scraping API is a set of per-network endpoints, because a TikTok post and a LinkedIn profile are different objects with different fields.
| Route | What you get | Cost shape | Fits |
|---|---|---|---|
| Buy a social dataset | Pre-collected records for a fixed set of accounts | Per dataset | A one-off research question |
| Build a scraper per network | Whatever your parsers cover | Your hours | One network you will maintain |
| Single-vendor scraping API | One vendor's coverage and its pricing | Plan or per request | A product that lives on one network |
| Monid endpoints | One endpoint per network, typed JSON | Pay per call or per result, buy flexibly | Several networks, lists of accounts, agents |
Monid fits a list of accounts because the work is the same call repeated per handle, and you pay for the records you pull and nothing between runs.
For agents
Grab an API key at app.monid.ai, then paste this to your agent and hand it the key:
set up https://monid.ai/SKILL.md
It learns the whole discover, inspect, run workflow itself. More in the agent quickstart.
For humans
npm install -g @monid-ai/cli
monid keys add -k <your-key> -l main
Start by asking what covers your network
monid discover -q "tiktok profile posts"
monid discover -q "twitter user tweets"
monid inspect -p apify -e /apidojo/tiktok-profile-scraper
Both discover and inspect are free, so surveying the field for a new platform costs nothing. inspect prints the input schema, the billing shape and the unit price before you run anything.
Run one endpoint per network
The three runs behind the prompt at the top of this post:
monid run -p apify -e /apidojo/tiktok-profile-scraper -i '{"usernames":["nike"],"maxItems":2}' -w
monid run -p apify -e /apify/instagram-post-scraper -i '{"username":["natgeo"],"resultsLimit":2,"dataDetailLevel":"basicData"}' -w
monid run -p tikhub -e /api/v1/twitter/web/fetch_user_post_tweet --query '{"screen_name":"nasa"}' -w
For a list, put one handle per line in tiktok.txt and write one file per account:
mkdir -p out
while read -r u; do
monid run -p apify -e /apidojo/tiktok-profile-scraper -i "{\"usernames\":[\"$u\"],\"maxItems\":20}" -w > "out/$u.json"
done < tiktok.txt
Or hand the whole job to an agent
Give this to your agent![]()
Set up https://monid.ai/SKILL.md, and then use Monid to for every handle on this list, pull the 20 latest TikTok posts, keep the ones with more than 100,000 views, and give me one table with the account, the post link, the views and the likes.Can you scrape social media yourself with Python?
Yes, and for one network and a handful of accounts it is a weekend. You fetch the page or the network's internal JSON, parse the fields you want, and write them to a file.
The cost is everything after the first run. Each network needs its own fetch layer, because TikTok, Instagram, X, YouTube and LinkedIn render and protect their pages differently. Logged-out pages show less than logged-in ones, so many scrapers end up driving a session, and a session is an account that can be restricted. Page structures change without notice, so each parser needs repair whenever a network moves a field, and every new network starts the work over. Terms of service and local law apply to what you collect, and they apply to a script as much as to an endpoint.
Python web scraping without a scraper shows the middle path: your own code on top of managed fetching. The Monid route is the choice for anything you will run more than once. The fetching and the per-network parsing sit behind the endpoint, the output is typed JSON instead of HTML you parse, and the price is stated up front: $0.0003 per TikTok result, $0.001 per Instagram post on basic data (Verified 2026-10-16). Python still has a job afterwards: it reads the JSON and does the analysis.
What does social media data look like, and what can you build with it?
Every network returns a post record with text, a date, engagement counts and the author, and the extras differ per network. These are the fields that came back on 2026-10-16.
What each network returned
TikTok. Two posts from the nike run, each with views, likes, comments, shares, bookmarks and hashtags, plus a channel object (name, bio, followers, following, videos, likes), a video object (size, duration, URLs), the song, the subtitleInformation and a postPage link. Nike's channel showed 9,307,256 followers.
Instagram. Two posts from natgeo on basic data: caption, likesCount, commentsCount, type, productType, timestamp, url, shortCode, hashtags, isPinned, the owner's name and id, and media URLs. One post carried coauthorProducers and one carried sponsors. Likes were 44,376 and 20,514; comments were 318 and 101.
X. One call for nasa returned a user object, 20 tweets and a next_cursor. Each tweet has text, created_at, favorites, retweets, replies, quotes, bookmarks, views, lang, entities and media.
YouTube. A search for "web scraping tutorials" with two results returned title, url, viewCount, likes, commentsCount, date, duration, the channel name and numberOfSubscribers, and the full description text. The two videos had 69,021 and 486,919 views.
LinkedIn. Two employee profiles from the Google company page: firstName, lastName, linkedinUrl, summary, premium, location and currentPositions with title, company and tenure. The response also reports totalElements 186,742 for the company, at 25 per page.
What you can build with it
- A creator shortlist. Pull the latest posts for a list of TikTok accounts and rank them by views per follower, using the
channel.followersfield that comes with every post. Which TikTok scraper endpoint to use compares the TikTok options in more depth. - A competitor monitor. Read the same Instagram and X accounts every week and compare likes, comments and posting dates. The Apify Instagram scraper in practice walks through the Instagram side.
- A topic scan. Search YouTube for a phrase, keep views, likes and channel size, and hand the table to a model for a summary.
- A people list. Pull employees of a target company from LinkedIn and filter on
currentPositionstitle, since one of our two rows was a startup mentor and the other a sales lead.
What goes wrong when you scrape social media at scale?
Five things showed up in the records above, and each has a rule that follows.
Why does the TikTok profile scrape return another account's post?
Because the endpoint returns posts the account appears on, not only posts it owns. We asked for nike, two results. The second came back with channel.username set to lilyachty, 9,748,311 followers, 181,677 views, and Nike listed as a collaborator. The inputSource field still said nike.
The rule: group by channel.username, not by inputSource, when you compute per-account numbers.
own = [p for p in posts if p["channel"]["username"] == p["inputSource"]]
Why can the same account be verified and not verified in one record?
Because two parts of the record disagree. On Nike's post, channel.verified was false while collabInfo labelled the same account "verified account". Pick one field, test it on a few accounts you know, and use only that field.
Why are the first Instagram posts older than you expect?
Because pinned posts lead the list. Both natgeo rows had isPinned set to true, with timestamps of 2026-10-15 and 2026-10-13, so the first row is not necessarily the newest. Sort by timestamp yourself, and set skipPinnedPosts when you only want the feed.
Why does an X timeline count more than the original posts?
Because retweets are entries too. Of the 20 tweets returned for nasa, 8 were retweets, each with a retweeted_tweet object. Filter them out before you count posts or average engagement; tweets from a keyword search with a scraper shows the same cleanup on search results. Two more details: views is a string, so convert it before sorting, and author.name and screen_name were null on the tweet entries, so read the account from the user object.
tweets = [t for t in data["timeline"] if "retweeted_tweet" not in t]
views = [int(t["views"]) for t in tweets]
How does the bill differ between endpoints?
By billing shape, and the shape decides what a sweep costs. TikTok bills per result, so maxItems is also your spending cap: 2 results cost $0.0006. Instagram bills per result with a basic and a detailed rate, and the default is detailed, so set dataDetailLevel to basicData on purpose; 2 posts cost $0.002. YouTube adds a flat fee: 2 results cost $0.0054. LinkedIn adds a flat fee too, so 2 profiles cost $0.031. X bills per call, so one call returning 20 tweets cost $0.001. Run one small call and read the charge before you start a sweep (all five charges Verified 2026-10-16).
Which endpoint should I use for which job?
| Network | Endpoint | What it returned | Billing | Price (Verified 2026-10-16) |
|---|---|---|---|---|
| TikTok | apify /apidojo/tiktok-profile-scraper | Posts with engagement and channel stats | Per result | $0.0003 |
apify /apify/instagram-post-scraper | Posts and reels, basic data | Per result | $0.001 | |
| X | tikhub /api/v1/twitter/web/fetch_user_post_tweet | 20 tweets and the user object | Per call | $0.001 |
| YouTube | apify /streamers/youtube-scraper | Videos with views, likes, channel size | Per result plus flat fee | $0.0024 |
apify /harvestapi/linkedin-company-employees | Employee profiles of a company | Per result plus flat fee | $0.008 |
Prices Verified 2026-10-16 with monid inspect. The Instagram endpoint bills $0.0016 per post on detailed data, and YouTube and LinkedIn add a flat fee per run on top of the per-result price. X has a second family of endpoints under the provider anyapi, which monid discover -q "twitter user tweets" lists with their routes and prices. For TikTok, Apify versus TikHub for TikTok scraping compares two providers on the same network.
When is another route a better fit?
You work on one network at volume, for good. If your product is a TikTok analytics tool, a direct contract with a single vendor gives you direct support and a price negotiated for your volume. Aggregation buys you nothing when there is nothing to aggregate.
You need the platform's own analytics. Scraping returns what a visitor can see. A creator's private insights, reach and audience breakdowns come from the platform's own tools, for accounts you own.
You need history. Each call is a snapshot of today. A growth chart over two years needs a dataset that has been collecting for that long, or your own scheduled runs from now on.
You need a contractual guarantee. A marketplace of endpoints is built for breadth. If you need an SLA with your name on it, buy that from one vendor.
And the disclosure: we resell these endpoints. The checks that cost nothing are worth doing whoever you buy from: group by the real author, filter retweets, sort pinned posts, and read the charge of a small run before a big one.
Conclusion
The easiest way to use a social media scraping API is one key and one balance across the endpoints for each network, through Monid: $0.0003 per TikTok result and $0.001 per X call (Verified 2026-10-16), ready inside your agent whenever you need them. Building a scraper per network works for one network and costs hours of parsing and upkeep on each; Monid keeps the fetching and the per-network rules maintained.
Two things matter more than the endpoint you pick. Check whose post you are reading: the TikTok scrape returned another account's post, and the X timeline returned retweets. And check the billing shape with one small run, because per call, per result and flat fees give different bills for the same list.
How we estimated the time saved: building and keeping a working scraper for one network is roughly 6 to 16 hours for the first fetch layer, parsers and one round of repairs. For the three networks in the prompt at the top, that is 18 to 48 hours; we state 20-48 as the range. The 1 minute is the install, key and first call once you already have a Monid key.
Free next step: run monid discover with the name of your network, then monid inspect on the endpoint it lists, then make one small call with two results and read what comes back. Start at monid.ai.
FAQ
What is the best social media scraping API?
There is no single best one, because each network needs its own endpoint. The practical choice is a catalogue that covers the networks you use under one key. Through Monid that is TikTok, Instagram, X, YouTube and LinkedIn endpoints on one balance, each billed per call or per result.
Is there a free social media scraping API?
Not free, but inexpensive to try: a two-post TikTok run cost $0.0006 and an X timeline call cost $0.001 (Verified 2026-10-16), through Monid, with no monthly plan and no minimum top-up. discover and inspect cost nothing.
How do I scrape social media data with Python?
Run the endpoint from the CLI or call it from your code, then read the JSON in Python. The loop in this guide writes one file per account, and the Python snippets above filter the TikTok and X results.
Does a TikTok profile scrape only return that account's own posts?
No. On 2026-10-16 a scrape of nike returned a post owned by lilyachty that listed Nike as a collaborator. Compare channel.username with inputSource and keep the rows that match.
How much does it cost to scrape social media?
It depends on the billing shape. Verified 2026-10-16: two TikTok results cost $0.0006, two Instagram posts on basic data $0.002, one X call returning 20 tweets $0.001, two YouTube results $0.0054 and two LinkedIn profiles $0.031.
Published August 2026.

