公开社交数据
搜索公开社交内容,读取帖子、创作者、评论和互动,再继续交给 Beatra 的理解与创作能力。
主路径
公开社交数据跑在你已经在用的 Beatra OAuth MCP 连接上,和图像、视频、
音乐、语音同一条授权。不需要再接第二套 MCP。继续连接
https://mcp.beatra.ai/mcp,然后:
- 用
beatra.social.tools.search按平台、关键词或类型(content/creator/comments/trends/captions)搜索可用工具。 - 用
beatra.social.tools.get查看参数和这次请求的积分价格,并复制返回的schema_hash。 - 调用一次
beatra.social.execute,传入operation_key、刚才的schema_hash、arguments和client_request_id。 - 用
beatra.tasks.get轮询到终态。结果是内联 JSON,或一份 JSON Artifact。
一次 execute 只创建一条预付费任务,只做一次查询。列表的下一页是另一次
execute。
给 AI 的指南
给 AI 的集成说明
接入自有应用时,可以把这份 API 指南复制给 Claude、Codex 或其他编程助手。
工具参数
schema_hash 用 beatra.social.tools.get 刚返回的值。如果 get 返回了新的
hash,换一个新的 client_request_id。
能查什么
下表是当前工具的快照。实时价格、参数和 schema_hash 以
beatra.social.tools.get 为准。
TikTok
| 工具 | 类型 | 返回内容 | 积分 | 翻页 |
|---|---|---|---|---|
social.tiktok.video.get_by_id | content | Read one public TikTok video by aweme_id, including caption, author, metrics, and public media URLs. | 6 | 否 |
social.tiktok.video.get_by_url | content | Read one public TikTok video from a share URL, including caption, author, metrics, and public media URLs. | 6 | 否 |
social.tiktok.user.get | creator | Read a public TikTok profile by unique_id or sec_user_id. | 6 | 否 |
social.tiktok.user.posts.list | content | Read one page of a user's public TikTok videos and the next cursor. | 6 | 是 |
social.tiktok.video.search | content | Search public TikTok videos by keyword and return one billed page. | 6 | 是 |
social.tiktok.user.search | creator | Search public TikTok users by keyword and return one billed page. | 6 | 是 |
social.tiktok.video.comments.list | comments | Read one page of public top-level comments on a TikTok video. | 6 | 是 |
social.tiktok.comment.replies.list | comments | Read one page of public replies to a TikTok comment. | 6 | 是 |
social.tiktok.hashtag.trends.list | trends | Read public TikTok hashtag trend rankings for a country and time range. | 6 | 是 |
Douyin
| 工具 | 类型 | 返回内容 | 积分 | 翻页 |
|---|---|---|---|---|
social.douyin.video.get_by_url | content | Read one public Douyin post from a share URL, including media URLs. | 6 | 否 |
social.douyin.video.get_by_id | content | Read one public Douyin post by aweme_id, including media URLs. | 6 | 否 |
social.douyin.user.get | creator | Read a public Douyin profile by sec_user_id. | 6 | 否 |
social.douyin.user.posts.list | content | Read one page of a user's public Douyin posts and the next cursor. | 6 | 是 |
social.douyin.video.search | content | Search public Douyin videos by keyword and return one billed page. | 60 | 是 |
social.douyin.user.search | creator | Search public Douyin users by keyword and return one billed page. | 6 | 是 |
social.douyin.video.comments.list | comments | Read one page of public top-level comments on a Douyin video. | 6 | 是 |
social.douyin.comment.replies.list | comments | Read one page of public replies to a Douyin comment. | 6 | 是 |
social.douyin.hot_search.list | trends | Read the current public Douyin hot-search board. | 6 | 否 |
Xiaohongshu
| 工具 | 类型 | 返回内容 | 积分 | 翻页 |
|---|---|---|---|---|
social.xiaohongshu.note.image.get | content | Read one public Xiaohongshu image note, including image URLs and metadata. | 60 | 否 |
social.xiaohongshu.note.video.get | content | Read one public Xiaohongshu video note, including cover and video URLs. | 60 | 否 |
social.xiaohongshu.user.get | creator | Read a public Xiaohongshu profile. | 60 | 否 |
social.xiaohongshu.user.notes.list | content | Read one page of a user's public notes. | 60 | 是 |
social.xiaohongshu.note.search | content | Search public Xiaohongshu notes by keyword and return one billed page. | 60 | 是 |
social.xiaohongshu.user.search | creator | Search public Xiaohongshu users by keyword and return one billed page. | 60 | 是 |
social.xiaohongshu.note.comments.list | comments | Read one page of public top-level comments on a note. | 60 | 是 |
social.xiaohongshu.comment.replies.list | comments | Read one page of public replies to a note comment. | 60 | 是 |
social.xiaohongshu.topic.get | trends | Read a public Xiaohongshu topic and its metadata. | 60 | 否 |
social.xiaohongshu.topic.notes.list | content | Read one page of public notes under a topic. | 60 | 是 |
| 工具 | 类型 | 返回内容 | 积分 | 翻页 |
|---|---|---|---|---|
social.instagram.post.get | content | Read one public Instagram post or Reel, including media URLs. | 12 | 否 |
social.instagram.user.get | creator | Read a public Instagram profile. | 12 | 否 |
social.instagram.user.posts.list | content | Read one page of a user's public posts. | 12 | 是 |
social.instagram.user.reels.list | content | Read one page of a user's public Reels. | 12 | 是 |
social.instagram.user.search | creator | Search public Instagram users by keyword. | 12 | 否 |
social.instagram.reel.search | content | Search public Instagram Reels by keyword and return one billed page. | 12 | 是 |
social.instagram.hashtag.posts.list | content | Read one page of public posts for a hashtag. | 12 | 是 |
social.instagram.post.comments.list | comments | Read one page of public comments on a post. | 12 | 是 |
social.instagram.comment.replies.list | comments | Read one page of public replies to a comment. | 12 | 是 |
YouTube
| 工具 | 类型 | 返回内容 | 积分 | 翻页 |
|---|---|---|---|---|
social.youtube.video.get | content | Read public YouTube video metadata, statistics, and thumbnails. | 6 | 否 |
social.youtube.video.comments.list | comments | Read one page of public YouTube comments. | 6 | 是 |
social.youtube.comment.replies.list | comments | Read one page of public YouTube comment replies. | 6 | 是 |
social.youtube.video.captions.get | captions | Submit one caption request and receive the available public captions for a video. | 60 | 否 |
social.youtube.channel.resolve | creator | Resolve a public channel URL or handle to a channel_id. | 6 | 否 |
social.youtube.channel.get | creator | Read a public YouTube channel description and statistics. | 6 | 否 |
social.youtube.channel.videos.list | content | Read one page of a channel's public videos. | 6 | 是 |
social.youtube.channel.shorts.list | content | Read one page of a channel's public Shorts. | 6 | 是 |
social.youtube.video.search | content | Search public YouTube videos and return one billed page of video items. | 12 | 是 |
X / Twitter
| 工具 | 类型 | 返回内容 | 积分 | 翻页 |
|---|---|---|---|---|
social.twitter.tweet.get | content | Read one public X/Twitter post, including media URLs. | 6 | 否 |
social.twitter.user.get | creator | Read a public X/Twitter profile. | 6 | 否 |
social.twitter.user.tweets.list | content | Read one page of a user's public posts. | 6 | 是 |
social.twitter.user.media.list | content | Read one page of a user's public media posts. | 6 | 是 |
social.twitter.user.replies.list | comments | Read one page of a user's public replies. | 6 | 是 |
social.twitter.tweet.comments.list | comments | Read one page of public replies to a post. | 6 | 是 |
social.twitter.tweet.search.top | content | Search public X/Twitter posts with Top ranking and return one billed page. | 6 | 是 |
social.twitter.tweet.search.recent | content | Search public X/Twitter posts by recency and return one billed page. | 6 | 是 |
social.twitter.trends.list | trends | Read public trending topics for a country. | 6 | 否 |
成功结果常见包括:
- 帖子/笔记正文、作者身份和公开统计
- 评论与回复文本及公开互动数
- 所选工具返回的字幕或文案
- 公开媒体 URL(播放、封面、图片),可直接拉取,或交给
beatra.images.understand、beatra.videos.understand或创作工具
小结果内联在任务上;大结果存为 JSON Artifact 并从任务给出链接。控制台「活动」 页可以看到同一份载荷。
价格
每次成功查询的积分在创建任务前已经确定,只会是下面四个数之一:
| 每次成功查询的 credits |
|---|
| 6 |
| 12 |
| 30 |
| 60 |
失败或安全取消的任务会退回预扣。查询已经开始后,取消会返回 409,继续轮询
同一条任务。社交任务没有 model 字段。
计费、任务状态与恢复
queued 和 running 不是失败。如果创建响应丢失,用完全相同的参数和同一个
client_request_id 再 execute。任何参数变化都需要新的 ID。
| 情况 | 怎么做 |
|---|---|
402 insufficient_balance | 到 console.beatra.ai 充值,再用同一个 client_request_id 重试。这次没有扣款。 |
参数 invalid_request | 先 beatra.social.tools.get,只传已发布字段。 |
| 工具不存在或当前不可用 | 重新搜索,使用 tools.get 显示可用的 operation_key。 |
schema_hash 不再匹配 | 再 tools.get,换一个新的 client_request_id。 |
| 创建响应丢失 | 用完全相同的参数和同一个 client_request_id 再 execute。 |
取消返回 409 | 查询已经开始。继续轮询同一个任务。 |
查询开始后失败时,保留错误 code,并阅读 error.message。这条 message
是平台原文(经过安全脱敏)。只有 message 点名某个字段或 ID 时才改参数;
否则等待,或继续轮询同一条任务。
REST API
没有公开的 Social REST API。请使用 MCP 和 beatra.tasks.get。