urlstring必須
The Facebook post or video URL.
https://api.sandbase.ai/v1/api/facebook/post-transcriptGet the spoken-word transcript of any public Facebook video post by URL as normalized JSON.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
This API returns the spoken-word transcript of a public Facebook video post or reel. It needs one input, the post or video url. The response also includes the video length and the post ID.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/post-transcript" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.facebook.com/reel/2166091230582141/"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The Facebook post or video URL. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"durationSeconds": 30.067,
"postId": "1393461115481927",
"transcript": "How far is too far? There's only one way to find out."
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the API found the post and returned data. A lookup that finds nothing returns false. |
data.transcript | The spoken words in the video as plain text. |
data.durationSeconds | The video length in seconds, as a decimal number such as 30.067. |
data.postId | The numeric ID of the post. |
url, for example https://www.facebook.com/reel/2166091230582141/.postId in the response can differ from the number in the reel URL, so store the url you sent if you need to match results back to your input.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/facebook/post-transcript" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.facebook.com/reel/2166091230582141/"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
urlstring必須The Facebook post or video URL.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Facebook Post Transcriptこの API Facebook | 1回あたり $0.0012 から | JSON |
Facebook | 1回あたり $0.0012 から | JSON |
Facebook | 1回あたり $0.00462 から | JSON |
Facebook | 1回あたり $0.0012 から | JSON |
Facebook | 1回あたり $0.0011 から | JSON |
Facebook | 1回あたり $0.0011 から | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/facebook/post-transcript に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.0012 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Facebook Post Transcript は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Facebook の API アクセスを別途申請する必要はありません。