Post metrics API
2 endpoints on 2 platforms return the same Post object. The counts of one post as of now. A call costs from $0.0020 to $0.0200, each endpoint at its own price; a failed call is free.
Post metrics on each platform
One row per endpoint: what it is called, how much comes back in a call, and what a call costs.
The Post object
Every endpoint above returns these fields, with the same names and types.
idtextID; pass it unchanged to the get endpointurllinkLink that opens the posttypetextContent formattitletextTitletexttextBody textlangtextLanguage of the textpublished_attimeWhen it was publishedauthor.idtextAuthor's account IDauthor.usernametextAuthor's handleauthor.nametextAuthor's display nameauthor.avatar_urllinkAuthor's avatarauthor.verifiedyes/noWhether the author is verifiedauthor.followersintegerAuthor's follower countmetrics.likesintegerLikesmetrics.commentsintegerCommentsmetrics.sharesintegerSharesmetrics.favoritesintegerSavesmetrics.viewsintegerViewsmetrics.repostsintegerRepostsimageslist of linkImage addresseshashtagslist of textHashtags, without the #mentions[].idtextAccount IDmentions[].usernametextHandlementions[].nametextDisplay nameis_pinnedyes/noWhether the author pinned itpost_idtextID of the thread's root post when this is a reply; otherwise nullparent_idtextID of the item it replies to directly; otherwise nullroot_idtextID of the first-level reply its thread hangs underWhich platform fills which field
A field an endpoint cannot give is listed in meta.unavailable on every answer, so a gap is never a surprise.
The same call on two platforms
Same parameter names, same paging, same answer. Only the path changes.
# Douyin curl -G "https://api.dataxapi.com/v1/douyin/videos/metrics" \ --data-urlencode "id=7694940173372575014" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" # WeChat Official Accounts: the same call on its own path curl -G "https://api.dataxapi.com/v1/wechat_mp/articles/metrics" \ --data-urlencode "url=https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
// Douyin import { DataXAPI } from "@dataxapi/sdk"; const dx = new DataXAPI(); // reads DATAXAPI_API_KEY const result = await dx.douyin.videos.metrics({ id: "7694940173372575014" }); console.log(result.data.item); // WeChat Official Accounts: the same call on its own path const other = await dx.wechat_mp.articles.metrics({ url: "https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc" }); console.log(other.data.item);
# Douyin from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.douyin.videos.metrics(id="7694940173372575014") print(result["data"]["item"]) # WeChat Official Accounts: the same call on its own path other = dx.wechat_mp.articles.metrics(url="https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc") print(other["data"]["item"])
# Douyin dataxapi call douyin.videos.metrics id=7694940173372575014 # WeChat Official Accounts: the same call on its own path dataxapi call wechat_mp.articles.metrics 'url=https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc'
{
"code": "ok",
"request_id": "089871c7-48ca-4337-a10a-6d113536de82",
"data": {
"item": {
"id": "7470913773320371273",
"metrics": { "likes": 171024, "views": 7234165 }
}
},
"warnings": [],
"meta": {
"capability": "douyin.videos.metrics",
"result_status": "complete",
"fetched_at": "2026-10-12T18:42:55.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"url": "capability",
"type": "capability",
"title": "capability",
"text": "capability",
"lang": "capability",
"published_at": "capability",
"author": "capability",
"metrics.comments": "capability",
"metrics.shares": "capability",
"metrics.favorites": "capability",
"metrics.reposts": "platform",
"images": "capability",
"hashtags": "capability",
"mentions": "capability",
"is_pinned": "capability",
"post_id": "platform",
"parent_id": "platform",
"root_id": "platform"
},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}Douyin video play count: From a response recorded 2026-10-12 18:42 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.
What comes back
The objects these endpoints answer with: one set of fields each, the same on every platform.
Questions about the Post metrics API
Short answers. Each endpoint's page has its own limits and examples.
Douyin video play count API →How much does it cost?
$0.0020 a call on Douyin; $0.0200 a call on WeChat Official Accounts. You are charged when data comes back; a failed call costs nothing. No subscription, no monthly minimum.
Does every platform fill every field?
No. 25 of the 28 fields are missing on at least one platform; the table on this page says which. A field an endpoint cannot give is named in meta.unavailable on every answer, never filled with a guess.
Do I need an account on the platform?
No. One DataXAPI key reads all 2 platforms. No platform account and no cookie.
Other data types
The same idea everywhere: one action, every platform that has it.
Start with one key.
207 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.