Trending posts API
3 endpoints on 3 platforms return the same Post object. The posts a platform ranks as popular now. Every call costs $0.0020; a failed call is free.
Trending posts 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 "https://api.dataxapi.com/v1/douyin/videos/trending" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" # Bilibili: one word changes curl "https://api.dataxapi.com/v1/bilibili/videos/trending" \ -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.trending(); console.log(result.data.items); // Bilibili: one word changes const other = await dx.bilibili.videos.trending(); console.log(other.data.items);
# Douyin from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.douyin.videos.trending() print(result["data"]["items"]) # Bilibili: one word changes other = dx.bilibili.videos.trending() print(other["data"]["items"])
# Douyin dataxapi call douyin.videos.trending # Bilibili: one word changes dataxapi call bilibili.videos.trending
{
"code": "ok",
"request_id": "80fea416-3374-403d-9b4a-ab4ce03a74d1",
"data": {
"items": [
{
"id": "7475660590366390521",
"url": "https://www.douyin.com/video/7475660590366390521",
"type": "video",
"text": "周末露营这件事,越简单越好",
"published_at": "2026-10-10T12:20:55.000Z",
"author": {
"name": "一颗柠檬糖",
"avatar_url": "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_7b73d10dffb6191146d5.jpeg",
"followers": 55851
},
"metrics": { "likes": 3791034, "views": 107542051 }
},
// … 8 more
]
},
"page": {
"next_cursor": "c1.PS5xQIrRah1Rwpe_Lxpsf-0eRwDcLjLeBBPJXPIo",
"cursor_expires_at": "2026-10-12T19:44:17.000Z",
"has_more": true,
"returned": 9
},
"warnings": [],
"meta": {
"capability": "douyin.videos.trending",
"result_status": "complete",
"fetched_at": "2026-10-12T18:44:17.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"title": "capability",
"lang": "capability",
"author.id": "capability",
"author.username": "capability",
"author.verified": "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 trending videos: From a response recorded 2026-10-12 18:44 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 Trending posts API
Short answers. Each endpoint's page has its own limits and examples.
Douyin trending videos API →How much does it cost?
$0.0020 a call on Douyin, Reddit, Bilibili. You are charged when data comes back; a failed call costs nothing. No subscription, no monthly minimum.
How do I get every page?
Pass page.next_cursor back as cursor until page.has_more is false. Each page is one call at the same price.
Does every platform fill every field?
No. 22 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 3 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.