公開ソーシャルデータ
公開ソーシャルコンテンツを検索し、投稿・クリエイター・コメント・エンゲージメントを読んだうえで、Beatra の理解と制作へ続けます。
主な Agent 経路
公開ソーシャルデータは、画像・動画・音楽・音声と同じ 既存の Beatra
OAuth MCP 接続で使います。2 つ目の MCP サーバーは不要です。
https://mcp.beatra.ai/mcp に接続したまま:
beatra.social.tools.searchでプラットフォーム、キーワード、または種類 (content/creator/comments/trends/captions)から使える ツールを探します。beatra.social.tools.getで引数とクレジット価格を確認し、返ってきたschema_hashをコピーします。beatra.social.executeを 1 回呼び、operation_key、そのschema_hash、arguments、client_request_idを渡します。beatra.tasks.getで終端までポーリングします。結果はインライン JSON、 または JSON アーティファクトです。
execute 1 回は前払いタスク 1 件、照会 1 回です。リストの次ページは別の
execute です。
AI 向けガイド
AI 連携 Markdown
独自アプリケーションに組み込む場合は、この API ガイドを Claude や Codex などにコピーできます。
ツール引数
schema_hash は beatra.social.tools.get が今返した値を使います。get が
新しいハッシュを返したら、新しい 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 アーティファクト として保存され、タスクからリンクされます。コンソールの Activity でも同じ ペイロードを読めます。
価格
成功した照会 1 回のクレジットは、タスク作成前に次のいずれかで確定します。
| 成功 1 照会あたりの credits |
|---|
| 6 |
| 12 |
| 30 |
| 60 |
失敗または安全にキャンセルされたタスクはホールドを返金します。照会が始まっ
たあとのキャンセルは 409 になり、同じタスクをポーリングし続けます。
ソーシャルタスクに model フィールドはありません。
課金、タスク状態、リカバリ
queued と running は失敗ではありません。作成レスポンスを失ったら、同じ
引数と同じ client_request_id で再送します。引数が変わったら新しい 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 を使います。