API · Reddit
GET /reddit/posts/{id}/transcript
A video post's captions: WebVTT, plain text and timed segments.
| |
|---|
| Request | GET /v1/reddit/posts/{id}/transcript |
| Operation id | reddit.post.transcript |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A video post's captions: WebVTT, plain text and timed segments.
| Name | Type | Required | Description |
|---|
id | string | yes | A post id, fullname (t3_…) or post URL. Example: 1q8u2ji. |
| Name | Type | Required | Description |
|---|
language | string | no | Caption language code. Default en. Example: en. |
| Status | Meaning | Schema |
|---|
200 | The transcript. | Transcript |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The subreddit, post or user does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Reddit is temporarily unavailable. Retryable; nothing was charged. | Error |
| 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 | |
Errors use one shape everywhere; see Errors for every code and what to do.