How many tokens does a social media API response take in an AI? Every endpoint measured (2026)

Every one of 226 endpoints counted on one recorded real response: the platforms' raw JSON comes to 9.2M tokens, what an AI reads through DataXAPI's MCP server to 452k, 95% fewer; the JSON of a direct API call to 961k, 90% fewer. The free trial covers up to 333 calls; a failed call is not charged.

Open in ChatGPTOpen in Claude

Updated 2026-11-06

How it was measured

One recorded real response an endpoint, the one its page shows. Three figures: the platform's raw JSON as it came; DataXAPI's JSON, the default answer of a direct API call, meta and billing included; and what an AI reads, the text the MCP server gives the model (the compact view, its first line included). All three are worked out by the code the service runs from the same recording, counted with GPT-4o's o200k tokenizer on 2026-11-06.

How many items an answer holds is the platform's, so what is compared is three forms of the same data, not counts. A few endpoints that answer with a handful of numbers (read counts, transcripts) come out tens to hundreds of tokens larger with the common envelope; the table shows them as they are.

What a task really costs

A task costs the calls, the tokens the model reads, and the time. At $3 a million input tokens, an AI reading one raw page of Douyin video search spends $0.56, more than the call itself at $0.0200; reading the same page through DataXAPI, $0.005.

Every endpoint, measured

In tokens. Each endpoint's page has the recorded response measured.

EndpointPlatform's raw JSONDataXAPI JSONWhat an AI reads (MCP)AI reads fewer
douyin.comments.replies.list18k4,2722,95783%
douyin.hashtags.videos.list365k2,8761,98699%
bilibili.comments.replies.list26k3,1502,41891%
bilibili.trends.list2,7831,1861,16558%
bilibili.users.get44k231139100%
bilibili.users.videos.list13k6,0605,98454%
bilibili.videos.comments.list92k3,0042,17698%
bilibili.videos.get73k398279100%
bilibili.videos.search10k4,5763,32567%
bilibili.videos.trending13k4,7643,88270%
douyin.index.brands.history7,4791,1381,08685%
douyin.index.brands.metrics57327422261%
douyin.index.creators.videos.list34k3,8663,74889%
douyin.index.creators.audience.get13k6,0105,92853%
douyin.index.creators.metrics54429424256%
douyin.index.keywords.audience.get23k2,5722,52089%
douyin.index.keywords.history12k1,9671,89284%
douyin.index.keywords.related37k8,1238,22278%
douyin.index.trends.list3,07783379274%
douyin.index.videos.search11k4,0472,29080%
douyin.trends.list29k1,6131,59295%
douyin.users.get3,53435723693%
douyin.users.history68432919372%
douyin.users.search7,2725,4173,62050%
douyin.users.videos.list584k6,7404,59799%
douyin.videos.comments.list23k4,4032,97887%
douyin.videos.get31k41726999%
douyin.videos.metrics33122112463%
douyin.videos.related384k3,3502,40599%
douyin.videos.search187k2,3291,62299%
douyin.videos.trending5,4111,7911,14279%
douyin.xingtu.creators.rates.get1,08525820681%
kuaishou.comments.replies.list4,9691,75493481%
kuaishou.trends.list3,4511,6451,62253%
kuaishou.users.get3,85621610097%
kuaishou.users.search14k2,5201,12792%
kuaishou.users.videos.list125k4,4623,13697%
kuaishou.videos.comments.list15k6,0973,65876%
kuaishou.videos.get4,53438323695%
kuaishou.videos.search100k2,2481,52198%
telegram.channels.get34840810670%
telegram.channels.messages.list17k3,6232,74484%
telegram.messages.get68334524664%
x.communities.posts.list15k4,3253,27478%
x.lists.posts.list44k17k13k71%
x.posts.article.get3,5982,40532391%
x.posts.get1,46438826582%
facebook.pages.get1,55246314091%
facebook.pages.posts.list2,9961,72474275%
facebook.posts.comments.list9,2364,0561,64682%
facebook.posts.get2,36651818892%
google.ads.get1,56334421087%
google.advertisers.ads.list5,3195,8365,0834%
google.advertisers.search43837431329%
linkedin.ads.get71263625564%
linkedin.ads.search13k9,5343,34874%
linkedin.companies.get3,52143621394%
linkedin.companies.posts.list2,0372,1981,79312%
linkedin.posts.get87953224672%
linkedin.posts.search16k7,9722,22186%
meta.ads.get4,1681,75416296%
meta.ads.search95k36k5,34594%
meta.ads.transcript.get22227518815%
meta.advertisers.ads.list132k52k3,73697%
meta.advertisers.search4,6313,82527694%
threads.posts.get84k561205100%
threads.posts.search55k10k2,62195%
threads.users.get1,46245110893%
threads.users.posts.list210k18k2,25299%
instagram.comments.replies.list6,2365,6341,30279%
instagram.hashtags.posts.list103k17k5,98294%
instagram.posts.comments.list5,6205,4761,28777%
instagram.posts.get14k94123698%
instagram.posts.transcript.get168230177—
instagram.users.get59k414106100%
instagram.users.posts.list336k12k2,35999%
instagram.users.search20k17k2,02390%
tiktok.ads.search1,9551,6891,61517%
tiktok.ads.get95640616683%
tiktok.comments.replies.list33k5,4802,65292%
tiktok.creative_center.ads.get1,88428716391%
tiktok.creative_center.ads.search17k2,1482,10488%
tiktok.hashtags.videos.list621k6,4192,937100%
tiktok.users.get73129910586%
tiktok.users.search93k6,2891,81698%
tiktok.users.videos.list270k3,2931,59599%
tiktok.videos.comments.list89k12k5,33594%
tiktok.videos.get27k45622199%
tiktok.videos.search919k11k5,76799%
tiktok.videos.transcript.get1,1151,38621781%
weibo.comments.replies.list70k2,9461,80997%
weibo.posts.comments.list49k3,6442,12396%
weibo.posts.get7,33052932796%
weibo.posts.likers.list46k7,6572,78494%
weibo.posts.search145k2,7151,53099%
weibo.trends.list5,7071,2581,23778%
weibo.users.followers.list20k3,0231,16694%
weibo.users.get90824310888%
weibo.users.posts.list197k7,5163,67798%
weibo.users.search2,4192,20669171%
x.posts.quotes.list36k3,8202,79292%
x.posts.replies.list3,4671,5771,06169%
x.posts.retweeters.list2,8502,6992,6557%
x.posts.search36k11k4,38588%
x.threads.posts.list5,3951,9501,31576%
x.trends.list79346742347%
x.users.followers.list3,1122,2031,31658%
x.users.following.list40k25k16k61%
x.users.get2581939264%
x.users.mentions.list26k7,7243,78086%
x.users.posts.list11k5,1493,54568%
x.users.search4,5422,8781,83460%
xiaohongshu.images.search28k11k7,41373%
xiaohongshu.notes.get9,6191,44241796%
xiaohongshu.comments.replies.list2,2111,15685062%
xiaohongshu.notes.comments.list4,6832,0421,46169%
xiaohongshu.notes.search51k10k3,60093%
xiaohongshu.pgy.keywords.history12k4,4432,09482%
xiaohongshu.pgy.keywords.related4,0852,7342,75733%
xiaohongshu.topics.notes.list58k14k4,32093%
xiaohongshu.topics.get1,03817412588%
xiaohongshu.trends.list10k66865094%
xiaohongshu.users.get3,26334223493%
xiaohongshu.users.notes.list49k7,2694,13292%
xiaohongshu.users.search3,8272,3691,22468%
youtube.channels.get1,14036021481%
youtube.channels.search3,7583,6932,12843%
youtube.channels.videos.list16k13k6,78458%
youtube.comments.replies.list3,1642,1671,49353%
youtube.videos.comments.list7,4543,8442,43067%
youtube.videos.get6,57460936294%
youtube.videos.search6,6645,3772,09369%
youtube.videos.transcript.get3,2391,99118994%
wechat_channels.users.get55527213875%
wechat_channels.videos.get2,13737828986%
wechat_channels.videos.comments.list7,0007,1144,81831%
wechat_channels.videos.share_link.get3411307877%
wechat_channels.users.collections.list85541014983%
wechat_channels.collections.videos.list36k3,6223,54690%
wechat_channels.users.videos.list35k6,6256,54981%
wechat_channels.videos.search8,2522,6681,47682%
wechat.posts.search14k5,5734,34469%
wechat_mp.accounts.articles.list7,6342,1842,12272%
wechat_mp.accounts.get4391498281%
wechat_mp.articles.comments.list2,9301,31765078%
wechat_mp.articles.get7,19894968690%
wechat_mp.articles.metrics55239150—
wechat_mp.comments.replies.list2,2231,03657774%
wechat_channels.backup.users.get72526512782%
wechat_channels.backup.users.videos.list25k6,5396,46574%
wechat.backup.posts.search25k5,4774,29083%
wechat.accounts.search12k1,68768494%
wechat_channels.backup.videos.search22k3,5712,23990%
wechat_mp.accounts.search50939014272%
wechat_mp.accounts.owner.get2621868568%
wechat.index.keywords.history1,12194286423%
wechat.keywords.related84349281—
wechat.miniprograms.search15k5,1002,42784%
wechat_channels.users.search59338719168%
wechat_channels.videos.metrics158318227—
wechat_channels.comments.replies.list7,1113,1182,15770%
wechat_channels.users.live_replays.list85k6,2556,14693%
reddit.posts.comments.list10k2,5101,73883%
reddit.posts.get5,99091433794%
reddit.posts.search38k4,7171,47996%
reddit.posts.trending32k3,0191,39396%
reddit.subreddits.posts.list7,1343,3653,19455%
reddit.trends.list47120613970%
reddit.users.get1,16927212090%
reddit.users.posts.list61k8,3623,95394%
zhihu.answers.comments.list11k1,8331,36988%
zhihu.answers.get9,8552,31364593%
zhihu.articles.get7,0022,41650593%
zhihu.columns.articles.list115k48k8,34093%
zhihu.comments.replies.list16k3,7502,92982%
zhihu.pins.get4,08749135891%
zhihu.posts.search194k57k9,90195%
zhihu.questions.answers.list128k26k11k92%
zhihu.questions.get41924917259%
zhihu.trends.list16k1,9921,91988%
zhihu.users.answers.list61k19k9,07785%
zhihu.users.articles.list34k14k9,79471%
zhihu.users.followers.list7,9822,5281,64979%
zhihu.users.get98925214485%
zhihu.users.pins.list92k6,1434,17095%
zhihu.users.search14k2,4701,54389%
reddit.subreddits.get4,66324710598%
reddit.users.subreddits.list6,7753,9711,37480%
x.communities.get2,11019512294%
tiktok.shop.products.get8,09565317798%
tiktok.shop.products.reviews.list5,0964,0411,42972%
tiktok.shop.products.search23k5,2852,42689%
tiktok.shop.sellers.products.list12k4,8152,28681%
xiaohongshu.shop.products.get22k62616899%
xiaohongshu.shop.products.reviews.list16k4,4361,09393%
xiaohongshu.shop.products.search170k3,3781,94099%
x.communities.members.list3,4082,2701,37960%
x.lists.followers.list3,6632,5531,51159%
x.lists.members.list3,8012,7211,68456%
linkedin.posts.transcript.get51557321458%
reddit.posts.transcript.get1,38622510393%
x.posts.transcript.get86170117—
tiktok.users.followers.list162k12k3,59598%
youtube.channels.posts.list4,2212,2272,03352%
youtube.posts.get30142526811%
pinterest.pins.get4,29154332592%
pinterest.pins.search39k3,7462,23294%
douyin.xingtu.creators.search29k2,30277197%
douyin.xingtu.creators.get1,37628915189%
douyin.xingtu.creators.audience.get1,8972,1122,061—
douyin.xingtu.creators.metrics52423115970%
douyin.xingtu.creators.videos.list7,8952,6852,53168%
douyin.xingtu.creators.keywords.get46731526344%
douyin.xingtu.creators.scores.get55027422260%
douyin.xingtu.creators.content_mix.get55629224057%
douyin.xingtu.creators.conversion.get44220815565%
douyin.xingtu.campaigns.list12k13k9,15025%
xiaohongshu.pgy.creators.search27k2,8301,41695%
xiaohongshu.pgy.creators.get1,11422411590%
xiaohongshu.pgy.creators.audience.get1,4141,5281,454—
xiaohongshu.pgy.creators.metrics3,37823810197%
xiaohongshu.pgy.creators.notes.list1,4581,23576647%
bilibili.backup.users.videos.list202k2,0832,00399%
douyin.backup.users.videos.list284k4,3372,90099%
douyin.backup.videos.search256k3,4572,37799%
weibo.backup.trends.list7,1621,2591,23883%

How do I connect it?

To connect: paste this to your AI assistant: “Read https://dataxapi.com/agents.md and set up DataXAPI here. My API key is dx_…; use it for every DataXAPI call.” A client that takes a remote MCP server can be given https://api.dataxapi.com/mcp with the header Authorization: Bearer <key> instead.

Why DataXAPI

  • Steady: endpoints were available 99.9% of the last 30 days, on a public status page you can check.
  • Fast: a paid call took 2.5 seconds at the median over the last 7 days (counted 2026-11-06).
  • Fewer tokens: across 226 endpoints, one recorded real response each, the platform's own JSON comes to 9.2M tokens and what an AI reads through DataXAPI's MCP server to 452k, 95% fewer; the JSON of a direct API call is 90% fewer too (counted 2026-11-06). Every platform answers in one shape: the author in author, counts in metrics, the next page in page.next_cursor, so another platform needs no new parser.
  • See before you pay: every endpoint's page shows a recorded real response, field by field.
  • Spending you control: a failed call is not charged; each key can have a limit, X-Max-Price caps one call, and the same Idempotency-Key within 24 hours is never charged twice.
  • Ready for AI: a remote MCP server listed in the official MCP registry as com.dataxapi/mcp, usable from Claude, Cursor and ChatGPT.
  • Free trial of up to 333 calls, no card.

Endpoints

Each with its price; every page has the parameters, the fields and a recorded response.

More about Douyin
Douyin APITikTok APIXiaohongshu (RedNote) APIWeibo APIWeChat Official Accounts APIBilibili APIHow do I export Douyin data?What is sec_uid on Douyin, and how is it different from uid and the Douyin ID?What are aweme_id and modal_id on Douyin, and what is a v.douyin.com link?Is the Douyin search index a number of searches?What is the Douyin keyword index (Ocean Engine)?What is Douyin Xingtu?Can Douyin's open platform read other people's videos and comments? (2026)How do I check a keyword's heat on Douyin and Xiaohongshu before advertising? (2026)How do I export all of a Douyin creator's video data? (2026)How do I export Douyin comments in bulk to find what users want? (2026)How do I find Douyin videos that took off from small accounts, and can I pull them in bulk? (2026)What are a_bogus and X-Bogus on Douyin? (2026)What is msToken on Douyin? (2026)Which Douyin API should I use for search, accounts and comments? (2026)How do I pull Douyin's hot-topic data by program? (2026)How do I use AI to audit and review an account? (2026)How do I filter Xingtu creators in bulk and see their rates? (2026)What is ttwid on Douyin? (2026)What are verifyFp and s_v_web_id on Douyin? (2026)How do I convert a Douyin sec_uid to a uid, and back? (2026)Douyin API for developers: third-party Douyin data APIs and what they return (2026)Douyin MCP server for Claude and Cursor (2026)Creator (KOL) data from Douyin and Xiaohongshu: profiles, posts and rates (2026)Chinese social media marketing data tools: official tools and APIs (2026)Which social media data API is best for AI agents? Count the tokens a response takes (2026)Social media API responses fill the AI's context and burn tokens: what to doDouyin, WeChat and Xiaohongshu data in Claude Code and Codex (2026)Douyin API for AI agents and LLMs: fewer tokens, called from Claude and Cursor (2026)Douyin video download URL: getting a video's play address by API (2026)Douyin and Xiaohongshu search box suggestions (autocomplete) by API, in bulk (2026)Douyin video completion rate and plays: Xingtu's video report by API (2026)How to get Douyin keyword trends in bulkHow to export Douyin video comments in bulkHow to look up a Douyin creator's Xingtu rate cardDoes Douyin have an API? Get videos and comments with Python (2026)SocialCrawl alternative for Douyin, Xiaohongshu and WeChat dataHow to choose a social media data API: failed-call charges, MCP and Chinese platforms

Start with one key.

230 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.

Start free