urlstringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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/"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
urlstringobrigatórioReddit post URL or direct v.redd.it video URL to transcribe.
languagestringOptional two-letter language code (defaults to en).
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Reddit Post TranscriptEsta API Reddit | A partir de $0.0012 por chamada | JSON |
Reddit | $0.001 por chamada | JSON |
Reddit | $0.001 por chamada | JSON |
Reddit | $0.001 por chamada | JSON |
Reddit | $0.001 por chamada | JSON |
Reddit | $0.001 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/reddit/post-transcript com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
A partir de $0.0012 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: url (string). Opcionais: language (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Reddit Post Transcript funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Reddit separadamente.