For AI

Endpoints by data type

Post detail API

16 endpoints on 13 platforms return post details as the same Post object. One post, video, note or article by its ID or link: the full text, author, time posted, images and the counts as they stand when you call. A call costs from $0.0003 to $0.02, each endpoint at its own price; a failed call is free.

Post detail · on each platform

PlatformEndpointPathA pagePrice
DouyinDouyin video detailGET /v1/douyin/videos/get1$0.002 per call
Xiaohongshu (RedNote)Xiaohongshu note detailGET /v1/xiaohongshu/notes/get1$0.02 per call
WeChat Official AccountsOfficial Account article detailGET /v1/wechat_mp/articles/get1$0.02 per call
BilibiliBilibili video detailGET /v1/bilibili/videos/get1$0.002 per call
TikTokTikTok video detailGET /v1/tiktok/videos/get1$0.002 per call
X (Twitter)X post detailGET /v1/x/posts/get1$0.0003 per call
YouTubeYouTube video detailGET /v1/youtube/videos/get1$0.002 per call
InstagramInstagram post detailGET /v1/instagram/posts/get1$0.004 per call
RedditReddit post detailGET /v1/reddit/posts/get1$0.002 per call
KuaishouKuaishou video detailGET /v1/kuaishou/videos/get1$0.002 per call
ZhihuZhihu article detail coming soonGET /v1/zhihu/articles/get1$0.002 per call
WeChat ChannelsWeChat Channels video detailGET /v1/wechat_channels/videos/get1$0.02 per call
DouyinDouyin Xingtu video reportGET /v1/douyin/xingtu/videos/get1$0.004 per call
Xiaohongshu (RedNote)Xiaohongshu video note with its videoGET /v1/xiaohongshu/videos/get1$0.02 per call
WeiboWeibo post detailGET /v1/weibo/posts/get1$0.002 per call
YouTubeYouTube post detailGET /v1/youtube/posts/get1$0.002 per call

from $0.0003 to $0.02 a call, each endpoint at its own price. A call that fails costs nothing.

The object it returns: Post

Every endpoint above returns these fields with the same names and types. A field a platform does not show comes back null and is named in meta.unavailable.

FieldTypeMeaning
idstringPost ID on the platform.
urlstringLink to the post.
typestringWhat kind of post it is.
titlestring | nullTitle, where the platform has one (videos, notes, articles).
textstringCaption, body or description as plain text; articles come as Markdown.
langstring | nullLanguage code, as reported or detected.
published_atstring | nullWhen it was published, ISO 8601 in UTC; null only where the source gives no time (wechat_mp.articles.metrics, wechat_channels.videos.metrics, youtube.channels.videos.list with type=short), then listed in meta.unavailable.
authorAccountRefWho posted it.
metricsMetricsCounts at fetch time; a count the platform hides is null.
imagesstring[] | nullImage URLs for image posts and notes.
hashtagsstring[] | nullHashtags or topics, without the # sign.
extobjectPlatform-specific extras. Only returned with view=full.

The same call on two platforms

Same parameters, same paging, same response shape. Only the path changes.

cURL
# Douyin
curl -G "https://api.okdata.online/v1/douyin/videos/get" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'id=7301234567890123456'

# Xiaohongshu (RedNote)
curl -G "https://api.okdata.online/v1/xiaohongshu/notes/get" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'id=6650a1b2000000001e00abcd'

What people use it for

  • Turn a list of links from a campaign report into current views and likes.
  • Give an AI agent the full text of a post someone pasted into the chat.
  • Re-check a viral post every few hours to see how fast it is still growing.

Questions

Can I pass a share link?
On most platforms, yes: the url parameter takes the post’s link, including short share links such as v.douyin.com and v.kuaishou.com. A WeChat article takes its mp.weixin.qq.com link.
Do I get the video file?
Usually not: you get the link, text, images or cover, and the counts. A few endpoints do return the file, and their pages say so; on WeChat Channels, for example, url is the video file, encrypted, with the key in ext.decode_key of the same answer.
What if the post was deleted?
The call answers not_found, and on most endpoints that costs nothing, private posts included, so you can check a long list of old links without paying for the dead ones. prices.json lists the few that charge for it.

Connect once, then just ask.

Every new key comes with $0.10 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp