urlstringobbligatorio
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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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/"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
urlstringobbligatorioReddit post URL or direct v.redd.it video URL to transcribe.
languagestringOptional two-letter language code (defaults to en).
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Reddit Post TranscriptQuesta API Reddit | Da $0.0012 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/reddit/post-transcript con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
A partire da $0.0012 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: url (string). Facoltativi: language (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Reddit Post Transcript funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Reddit.