# Reddit Video post transcripts API (reddit.post_transcript)

- Canonical page: [https://everyinfra.com/en/reddit-api/post_transcript](https://everyinfra.com/en/reddit-api/post_transcript?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "reddit", "action": "post_transcript", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=reddit&action=post_transcript

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | The link of a video post hosted on Reddit. It returns the captions Reddit provides for the video and does not transcribe speech. A link that is not recognized returns 422 and is not charged; a post without captions returns 503 and is not charged. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| post_id | ID of the post the comment was left on (user_comments). |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| media_type | Type of the post (`post_transcript`). |
| has_transcript | Whether the post has captions (`post_transcript`); when it is false, `reason` says why. |
| reason | Why there are no captions (`post_transcript`): `no_caption` (a video without captions), `not_video` (no video in the post) or `external_video` (the video is on another site). |
| source | Source of the captions (`post_transcript`). |
| language | Content language code (for example zh, en) as judged by the platform; it can be wrong. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| segment_count | Number of entries in `segments` (`post_transcript`). |
| segments | The captions sentence by sentence (`post_transcript`): [{start_sec, end_sec, duration_sec, text}], with `start_sec`, `end_sec` and `duration_sec` in seconds and `text` the sentence. |
| caption_url | Link to the caption file (`post_transcript`); it may stop working. |
| duration_sec | Length of the video in seconds (`post_transcript`). |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "reddit",
  "action": "post_transcript",
  "params": {
    "url": "https://www.reddit.com/r/TikTokCringe/comments/1y4o37g/road_rage_between_bmw_and_cyclists/"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "reddit",
        "action": "post_transcript",
        "params": {
            "url": "https://www.reddit.com/r/TikTokCringe/comments/1y4o37g/road_rage_between_bmw_and_cyclists/",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "reddit",
  "action": "post_transcript",
  "results": {
    "post_id": …,
    "url": …,
    "title": …,
    "media_type": …,
    "has_transcript": …,
    "reason": …,
    "source": …,
    "language": …,
    "text": …,
    "segment_count": …,
    "segments": …,
    "caption_url": …,
    "duration_sec": …,
    "duration_seconds": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=reddit
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
