For AI

Endpoints by data type

Account posts API

12 endpoints on 12 platforms return account posts as the same Post object. What one account has published, newest first on most platforms, a page at a time: each post’s text, link, time posted and counts. A call costs from $0.002 to $0.02, each endpoint at its own price; a failed call is free.

Account posts · on each platform

PlatformEndpointPathA pagePrice
DouyinDouyin account videosGET /v1/douyin/users/videos/list20$0.002 per call · about 20 videos per page
Xiaohongshu (RedNote)Xiaohongshu account notesGET /v1/xiaohongshu/users/notes/list20$0.02 per call · about 20 notes per page
WeChat Official AccountsOfficial Account article historyGET /v1/wechat_mp/accounts/articles/list10$0.02 per call · about 10 articles per page
X (Twitter)X account postsGET /v1/x/users/posts/list20$0.002 per call · about 20 posts per page
InstagramInstagram account postsGET /v1/instagram/users/posts/list12$0.004 per call · about 12 posts per page
RedditReddit user postsGET /v1/reddit/users/posts/list25$0.002 per call · about 25 posts per page
KuaishouKuaishou account videosGET /v1/kuaishou/users/videos/list20$0.02 per call · about 20 videos per page
ZhihuZhihu user articles coming soonGET /v1/zhihu/users/articles/list20$0.002 per call · about 20 articles per page
WeChat ChannelsWeChat Channels account videosGET /v1/wechat_channels/users/videos/list15$0.02 per call · about 15 videos per page
WeiboWeibo account postsGET /v1/weibo/users/posts/list20$0.002 per call · about 20 posts per page
BilibiliBilibili account videosGET /v1/bilibili/users/videos/list30$0.002 per call · about 30 videos per page
TikTokTikTok account videosGET /v1/tiktok/users/videos/list10$0.002 per call · about 10 videos per page

from $0.002 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/users/videos/list" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'id=MS4wLjABAAAA...'

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

What people use it for

  • Pull a competitor’s last three months of posts and see which formats got the most likes.
  • Check that a creator still posts regularly before a campaign.
  • Archive an Official Account’s articles into a knowledge base.

Questions

How far back can I go?
Page with page.next_cursor until page.has_more is false. How far that reaches is up to the platform, and each page is one call, so a backfill costs the number of pages times the price in the table.
Do the posts come with their counts?
Yes. Each post carries metrics with the views, likes, comments, shares and saves the platform shows at fetch time. A count the platform hides is null.
Can I get only the posts since my last check?
Read the first page and stop when you reach a post id you already stored. On a platform that lists newest first, a daily check is usually one call per account.

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