Reddit video transcript API
The captions Reddit generated for a video post, as WebVTT, plain text and timed segments, in the language you ask for.
GET /v1/reddit/posts/{id}/transcript2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/reddit/posts/1q8u2ji/transcript?language=en",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "post_id": "1q8u2ji", "language": "en", "languages": [ "en" ], "vtt": "WEBVTT\n\n00:00.000 --> 00:00.300\n<u>I</u> got it.\n\n00:00.300 --> 00:00.460\nI <u>got</u> it.\n\n00:00.460 --> 00:01.240\nI go…", "text": "I got it. Hey, I'm sorry. There's nothing. Take it back here. Yeah, just send me that email. I'm just going to flip it. …", "segments": [ { "start": 0, "end": 1.24, "text": "I got it." }, { "start": 4.98, "end": 9.4, "text": "Hey, I'm sorry. There's nothing. Take it back here." }, "… 8 more" ], "transcript_not_available": false}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | A post id, fullname (t3_…) or post URL. Example: 1q8u2ji. |
languagequery | string | Caption language code. Default en. Example: en. |
Response fields
200 with a Transcript, in Reddit’s own Things and Listings.
| Field | Type | Description |
|---|---|---|
post_id | string | |
language | string | null | |
languages | string[] | |
vtt | string | null | The caption track, WebVTT. |
text | string | null | |
segments | object[] | |
transcript_not_available | boolean |
Status codes
| Status | Meaning |
|---|---|
200 | The transcript. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The subreddit, post or user does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Reddit is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Is this AI transcription?
No: it reads the captions Reddit itself made. A video without captions answers 404 target_not_found and is not charged.
Reddit is a trademark of Reddit, Inc. We are not affiliated with or endorsed by Reddit.