Beatra

公開ソーシャルデータ

公開ソーシャルコンテンツを検索し、投稿・クリエイター・コメント・エンゲージメントを読んだうえで、Beatra の理解と制作へ続けます。

主な Agent 経路

公開ソーシャルデータは、画像・動画・音楽・音声と同じ 既存の Beatra OAuth MCP 接続で使います。2 つ目の MCP サーバーは不要です。 https://mcp.beatra.ai/mcp に接続したまま:

  1. beatra.social.tools.search でプラットフォーム、キーワード、または種類 (content / creator / comments / trends / captions)から使える ツールを探します。
  2. beatra.social.tools.get で引数とクレジット価格を確認し、返ってきた schema_hash をコピーします。
  3. beatra.social.execute を 1 回呼び、operation_key、その schema_hashargumentsclient_request_id を渡します。
  4. beatra.tasks.get で終端までポーリングします。結果はインライン JSON、 または JSON アーティファクトです。

execute 1 回は前払いタスク 1 件、照会 1 回です。リストの次ページは別の execute です。

AI 向けガイド

AI 連携 Markdown

独自アプリケーションに組み込む場合は、この API ガイドを Claude や Codex などにコピーできます。

Markdown

ツール引数

{
  "operation_key": "social.tiktok.video.get_by_id",
  "schema_hash": "sha256:…",
  "arguments": { "aweme_id": "…" },
  "client_request_id": "social-lookup-opaque-1"
}

schema_hashbeatra.social.tools.get が今返した値を使います。get が 新しいハッシュを返したら、新しい client_request_id を送ってください。

調べられるもの

下表は現在のツールのスナップショットです。ライブの価格、引数、 schema_hash は常に beatra.social.tools.get が正です。

TikTok

ツール種類返す内容クレジットページ送り
social.tiktok.video.get_by_idcontentRead one public TikTok video by aweme_id, including caption, author, metrics, and public media URLs.6なし
social.tiktok.video.get_by_urlcontentRead one public TikTok video from a share URL, including caption, author, metrics, and public media URLs.6なし
social.tiktok.user.getcreatorRead a public TikTok profile by unique_id or sec_user_id.6なし
social.tiktok.user.posts.listcontentRead one page of a user's public TikTok videos and the next cursor.6あり
social.tiktok.video.searchcontentSearch public TikTok videos by keyword and return one billed page.6あり
social.tiktok.user.searchcreatorSearch public TikTok users by keyword and return one billed page.6あり
social.tiktok.video.comments.listcommentsRead one page of public top-level comments on a TikTok video.6あり
social.tiktok.comment.replies.listcommentsRead one page of public replies to a TikTok comment.6あり
social.tiktok.hashtag.trends.listtrendsRead public TikTok hashtag trend rankings for a country and time range.6あり

Douyin

ツール種類返す内容クレジットページ送り
social.douyin.video.get_by_urlcontentRead one public Douyin post from a share URL, including media URLs.6なし
social.douyin.video.get_by_idcontentRead one public Douyin post by aweme_id, including media URLs.6なし
social.douyin.user.getcreatorRead a public Douyin profile by sec_user_id.6なし
social.douyin.user.posts.listcontentRead one page of a user's public Douyin posts and the next cursor.6あり
social.douyin.video.searchcontentSearch public Douyin videos by keyword and return one billed page.60あり
social.douyin.user.searchcreatorSearch public Douyin users by keyword and return one billed page.6あり
social.douyin.video.comments.listcommentsRead one page of public top-level comments on a Douyin video.6あり
social.douyin.comment.replies.listcommentsRead one page of public replies to a Douyin comment.6あり
social.douyin.hot_search.listtrendsRead the current public Douyin hot-search board.6なし

Xiaohongshu

ツール種類返す内容クレジットページ送り
social.xiaohongshu.note.image.getcontentRead one public Xiaohongshu image note, including image URLs and metadata.60なし
social.xiaohongshu.note.video.getcontentRead one public Xiaohongshu video note, including cover and video URLs.60なし
social.xiaohongshu.user.getcreatorRead a public Xiaohongshu profile.60なし
social.xiaohongshu.user.notes.listcontentRead one page of a user's public notes.60あり
social.xiaohongshu.note.searchcontentSearch public Xiaohongshu notes by keyword and return one billed page.60あり
social.xiaohongshu.user.searchcreatorSearch public Xiaohongshu users by keyword and return one billed page.60あり
social.xiaohongshu.note.comments.listcommentsRead one page of public top-level comments on a note.60あり
social.xiaohongshu.comment.replies.listcommentsRead one page of public replies to a note comment.60あり
social.xiaohongshu.topic.gettrendsRead a public Xiaohongshu topic and its metadata.60なし
social.xiaohongshu.topic.notes.listcontentRead one page of public notes under a topic.60あり

Instagram

ツール種類返す内容クレジットページ送り
social.instagram.post.getcontentRead one public Instagram post or Reel, including media URLs.12なし
social.instagram.user.getcreatorRead a public Instagram profile.12なし
social.instagram.user.posts.listcontentRead one page of a user's public posts.12あり
social.instagram.user.reels.listcontentRead one page of a user's public Reels.12あり
social.instagram.user.searchcreatorSearch public Instagram users by keyword.12なし
social.instagram.reel.searchcontentSearch public Instagram Reels by keyword and return one billed page.12あり
social.instagram.hashtag.posts.listcontentRead one page of public posts for a hashtag.12あり
social.instagram.post.comments.listcommentsRead one page of public comments on a post.12あり
social.instagram.comment.replies.listcommentsRead one page of public replies to a comment.12あり

YouTube

ツール種類返す内容クレジットページ送り
social.youtube.video.getcontentRead public YouTube video metadata, statistics, and thumbnails.6なし
social.youtube.video.comments.listcommentsRead one page of public YouTube comments.6あり
social.youtube.comment.replies.listcommentsRead one page of public YouTube comment replies.6あり
social.youtube.video.captions.getcaptionsSubmit one caption request and receive the available public captions for a video.60なし
social.youtube.channel.resolvecreatorResolve a public channel URL or handle to a channel_id.6なし
social.youtube.channel.getcreatorRead a public YouTube channel description and statistics.6なし
social.youtube.channel.videos.listcontentRead one page of a channel's public videos.6あり
social.youtube.channel.shorts.listcontentRead one page of a channel's public Shorts.6あり
social.youtube.video.searchcontentSearch public YouTube videos and return one billed page of video items.12あり

X / Twitter

ツール種類返す内容クレジットページ送り
social.twitter.tweet.getcontentRead one public X/Twitter post, including media URLs.6なし
social.twitter.user.getcreatorRead a public X/Twitter profile.6なし
social.twitter.user.tweets.listcontentRead one page of a user's public posts.6あり
social.twitter.user.media.listcontentRead one page of a user's public media posts.6あり
social.twitter.user.replies.listcommentsRead one page of a user's public replies.6あり
social.twitter.tweet.comments.listcommentsRead one page of public replies to a post.6あり
social.twitter.tweet.search.topcontentSearch public X/Twitter posts with Top ranking and return one billed page.6あり
social.twitter.tweet.search.recentcontentSearch public X/Twitter posts by recency and return one billed page.6あり
social.twitter.trends.listtrendsRead public trending topics for a country.6なし

成功時の典型的なペイロード:

  • 投稿/ノート本文、作者、公開統計
  • コメントと返信の本文、公開エンゲージメント数
  • 選択したツールが返す字幕やキャプション
  • 公開メディア URL(再生、カバー、画像)。取得するか、 beatra.images.understandbeatra.videos.understand、または生成ツールへ 渡せます

小さい結果はタスクにインラインされます。大きい結果は JSON アーティファクト として保存され、タスクからリンクされます。コンソールの Activity でも同じ ペイロードを読めます。

価格

成功した照会 1 回のクレジットは、タスク作成前に次のいずれかで確定します。

成功 1 照会あたりの credits
6
12
30
60

失敗または安全にキャンセルされたタスクはホールドを返金します。照会が始まっ たあとのキャンセルは 409 になり、同じタスクをポーリングし続けます。 ソーシャルタスクに model フィールドはありません。

課金、タスク状態、リカバリ

queuedrunning は失敗ではありません。作成レスポンスを失ったら、同じ 引数と同じ client_request_id で再送します。引数が変わったら新しい ID が 必要です。

状況次の一手
402 insufficient_balanceconsole.beatra.ai でチャージし、同じ client_request_id で再試行。課金は発生していません。
引数の invalid_requestbeatra.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 を使います。

On this page