urlstring必須
Reddit post URL or direct v.redd.it video URL to transcribe.
https://api.sandbase.ai/v1/api/reddit/post-transcriptExtract the spoken transcript from a Reddit video post by URL.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
This API returns the spoken transcript of a Reddit video post as plain text. It needs the post URL or a direct v.redd.it video URL, and it accepts an optional two-letter language code.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/post-transcript" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.reddit.com/r/youseeingthisshit/comments/1oiu9xm/"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Reddit post URL or direct v.redd.it video URL to transcribe. |
language | string | No | Optional two-letter language code (defaults to en). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"language": "en",
"postId": "1oiu9xm",
"transcript": "stop on third down and now Barnhart I hanging spiraling punts touch back Barnhar…",
"transcriptNotAvailable": false,
"url": "https://www.reddit.com/r/youseeingthisshit/comments/1oiu9xm/"
},
"found": true
}
| Field | Meaning |
|---|---|
data.transcript | The spoken text of the video as one string. Use it as the main output of the call. |
data.transcriptNotAvailable | A boolean flag. When true, the post has no transcript to return, so check it before you read data.transcript. |
data.language | The two-letter language code of the transcript, for example en. |
data.postId | The Reddit post ID taken from the URL, for example 1oiu9xm. Use it to match the transcript to other post data. |
data.url | The post URL that the transcript belongs to. |
found | A boolean that shows whether the lookup found the post. It is true when a result came back. |
url from the address bar of a Reddit video post, or pass a direct v.redd.it link.language out to use the default en. Set it to another two-letter code to change the transcript language.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/reddit/post-transcript" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.reddit.com/r/youseeingthisshit/comments/1oiu9xm/"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
urlstring必須Reddit post URL or direct v.redd.it video URL to transcribe.
languagestringOptional two-letter language code (defaults to en).
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Reddit Post Transcriptこの API Reddit | 1回あたり $0.0012 から | JSON |
Reddit | $0.001 / 回 | JSON |
Reddit | $0.001 / 回 | JSON |
Reddit | $0.001 / 回 | JSON |
Reddit | $0.001 / 回 | JSON |
Reddit | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/reddit/post-transcript に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.0012 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: url (string)。 任意: language (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Reddit Post Transcript は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Reddit の API アクセスを別途申請する必要はありません。