For AI

Endpoints by data type

Post search API

12 endpoints on 12 platforms return search results as the same Post object. Posts, videos, notes or articles that match a keyword, as the platform’s own search returns them, a page at a time, each with its author and counts. A call costs from $0.002 to $0.02, each endpoint at its own price; a failed call is free.

Post search · on each platform

PlatformEndpointPathA pagePrice
DouyinDouyin video searchGET /v1/douyin/videos/search20$0.02 per call · about 20 videos per page
Xiaohongshu (RedNote)Xiaohongshu note searchGET /v1/xiaohongshu/notes/search20$0.02 per call · about 20 notes per page
BilibiliBilibili video searchGET /v1/bilibili/videos/search20$0.002 per call · about 20 videos per page
WeiboWeibo post searchGET /v1/weibo/posts/search10$0.002 per call · about 10 posts per page
TikTokTikTok video searchGET /v1/tiktok/videos/search30$0.002 per call · about 30 videos per page
X (Twitter)X post searchGET /v1/x/posts/search20$0.002 per call · about 20 posts per page
YouTubeYouTube video searchGET /v1/youtube/videos/search20$0.004 per call · about 20 videos per page
RedditReddit post searchGET /v1/reddit/posts/search25$0.004 per call · about 25 posts per page
KuaishouKuaishou video searchGET /v1/kuaishou/videos/search10$0.02 per call · about 10 videos per page
ZhihuZhihu searchGET /v1/zhihu/posts/search20$0.002 per call · about 20 posts per page
WeChat ChannelsWeChat Channels video searchGET /v1/wechat_channels/videos/search10$0.02 per call · about 10 videos per page
WeChat SearchWeChat Search articles and videosGET /v1/wechat/posts/search20$0.02 per call · about 20 posts 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/videos/search" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'query=露营装备'

# Xiaohongshu (RedNote)
curl -G "https://api.okdata.online/v1/xiaohongshu/notes/search" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'query=防晒霜 推荐'

What people use it for

  • Watch what people post about your brand or product name every day.
  • Find the best-performing posts on a topic before you write your own.
  • Compare how the same keyword plays on Douyin, Xiaohongshu and TikTok.

Questions

Will I see the same results as in the app?
They come from the platform’s own search, in the order you pick with sort, so they are close to the app. Like the app, they can shift between two searches a few minutes apart.
How many results can I get for one keyword?
Page through with the cursor until page.has_more is false. Every platform stops somewhere, and the depth differs by platform and keyword. Each page is one call.
Can I limit results to recent posts?
Most endpoints take sort=latest. Some also take a time filter, such as Reddit, Kuaishou and WeChat Channels; the parameters are on each endpoint page.

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