urlstringobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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/"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
urlstringobligatoireReddit post URL or direct v.redd.it video URL to transcribe.
languagestringOptional two-letter language code (defaults to en).
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Reddit Post TranscriptCette API Reddit | À partir de $0.0012 par appel | JSON |
Reddit | $0.001 par appel | JSON |
Reddit | $0.001 par appel | JSON |
Reddit | $0.001 par appel | JSON |
Reddit | $0.001 par appel | JSON |
Reddit | $0.001 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/reddit/post-transcript avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.0012 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : url (string). Facultatif : language (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Reddit Post Transcript fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Reddit séparément.