---
title: "Get Reddit posts by id, with optional discussion thread"
method: GET
path: "/v1/reddit/posts"
---

# Get Reddit posts by id, with optional discussion thread

`GET /v1/reddit/posts`

## Request

- Base URL: `https://api.veezee.io`
- URL: `https://api.veezee.io/v1/reddit/posts`
- Auth: HTTP bearer

Fetch full post content for up to 100 Reddit posts by their t3_ ids in one call -- the follow-up loop after reddit_search or reddit_get_subreddit_posts. Costs 4 credits for up to 10 ids, +1 credit per further 10 ids; every post comes back with its full body text. With exactly ONE id you may set detail to 'full' for +4 credits to also get the discussion tree (comments flattened in tree order with depth, about 200 per page, with a comments_cursor to continue), or pass comment_id (a t1_ id, also +4 credits) to fetch one specific comment in its post context. Post ids come from the other Reddit tools or from reddit_resolve_url on a post URL. Not for discovering posts; search first, then batch-fetch here.

## Query parameters

- `post_ids` string[], required: 1 to 100 post ids with the t3_ prefix, e.g. ["t3_1tbups6"].
- `detail` 'concise' | 'full': 'full' adds the discussion tree; only valid with exactly one id, +4 credits.
- `comment_id` string: A t1_ comment id to fetch in context; only valid with exactly one post id, +4 credits like detail 'full'.
- `sort` 'best' | 'new' | 'top' | 'controversial' | 'old' | 'qa': Discussion-tree order; only with detail 'full'.
- `cursor` string: comments_cursor from a previous detail='full' page.
- `freshness` 'recent' | 'realtime': recent (default) serves cached data from the last few hours when available; realtime forces a live fetch for +2 credits (refunded if we fall back to cached data). Trial keys are cached-only and reject realtime with TRIAL_CAP_EXCEEDED; paying upgrades this same key to unlock it.
- `max_credits` integer: Spend ceiling for this one call. The call is rejected (nothing charged) if its quote exceeds this. Only the quote is ever reserved, never this ceiling.

## Headers

- `Idempotency-Key` string

## Response `200`

reddit_thread envelope (schema_version 2)

- RedditThreadEnvelope
  - `entity` 'reddit_thread', required
  - `platform` 'linkedin' | 'reddit' | 'x', nullable, required
  - `canonical_url` string, nullable, required
  - `data_as_of` string, nullable, required
  - `schema_version` '2', required
  - `common` object, required
    - `posts` object[], required
      - `id` string, required: Post id with the t3_ prefix. Pass to reddit_get_post.
      - `title` string, nullable, required
      - `author` string, nullable, required: Username without the u/ prefix.
      - `subreddit` object, nullable, required
        - `name` string, required: Subreddit name without the r/ prefix, e.g. 'selfhosted'.
        - `subscribers` integer, nullable, required
      - `created_at` string, nullable, required: ISO 8601.
      - `upvotes` integer, nullable, required
      - `upvote_ratio` number, nullable, required
      - `comment_count` integer, nullable, required
      - `permalink` string, nullable, required: Canonical reddit.com URL.
      - `external_url` string, nullable, required: The linked page for link posts; null for self posts.
      - `preview_text` string, nullable, required: Start of the post body; the full body comes from reddit_get_post.
      - `flair` string, nullable, required
      - `media_type` string, nullable, required
      - `is_promoted` boolean, required: True for promoted ads, which subreddit feeds include only when include_promoted=true. Organic posts are false.
      - `content` string, nullable, required: Full post body (markdown). Null for link posts.
    - `comments` object[], nullable, required: The discussion tree, flattened in tree order with depth set. Only present with detail: 'full' or comment_id.
      - `id` string, required: Comment id with the t1_ prefix.
      - `author` string, nullable, required
      - `content` string, nullable, required: Comment text (markdown as written).
      - `created_at` string, nullable, required
      - `upvotes` integer, nullable, required
      - `permalink` string, nullable, required
      - `parent_id` string, nullable, required: t1_ id of the parent comment, or t3_ id when top-level.
      - `depth` integer, nullable, required: 0 = top-level. Only set inside a discussion tree.
      - `post` object, nullable, required: The post this comment belongs to. Only set outside a discussion tree (search, user history).
        - `id` string, nullable, required
        - `title` string, nullable, required
        - `subreddit` object, nullable, required
          - `name` string, required: Subreddit name without the r/ prefix, e.g. 'selfhosted'.
          - `subscribers` integer, nullable, required
    - `comments_cursor` string, nullable, required: Pass back as cursor to continue the discussion tree.
    - `returned_count` integer, required
  - `platform_fields` object, required
  - `freshness` object, nullable, required
    - `source_retrieved_at` string, nullable, required: When the data was fetched from the source. ISO 8601.
    - `served_at` string, required
    - `cache_age_seconds` integer, nullable, required
    - `served_from_cache` boolean, required: True when these bytes were served from cache rather than fetched for this call. source_retrieved_at says how old they are.
    - `freshness_requested` 'recent' | 'realtime', required
    - `freshness_served` 'recent' | 'realtime' | 'stale', required
  - `usage` object, required
    - `receipt_id` string, nullable, required
    - `credits_quoted` integer, required
    - `credits_charged` integer, required
    - `balance_remaining` integer, nullable, required
    - `free_tier_hint` string: Present on free-tier trial-key calls: what budget the call drew from and that paying upgrades this same key. Near the daily cap on unclaimed keys it also carries a claim link to relay to your human (claiming adds one-time credits).

## Other responses

- `400`: INVALID_INPUT | IDEMPOTENCY_KEY_REQUIRED
- `401`: UNAUTHORIZED | AUTH_REQUIRED | KEY_REQUIRED
- `402`: INSUFFICIENT_CREDITS | QUOTE_EXCEEDS_MAX_CREDITS
- `403`: NOT_ENTITLED | TRIAL_CAP_EXCEEDED
- `404`: NOT_FOUND
- `409`: IDEMPOTENCY_KEY_REUSED
- `413`: PAYLOAD_TOO_LARGE
- `429`: CONCURRENCY_LIMIT | RATE_LIMITED
- `500`: INTERNAL
- `502`: UPSTREAM_UNAVAILABLE
- `503`: BUDGET_EXHAUSTED

---

[API](https://skmtc.dev/veezee/apis/veezee-api.md) · [All operations](https://skmtc.dev/veezee/apis/veezee-api/llms.txt) · [OpenAPI document](https://skmtc.dev/veezee/apis/veezee-api/revisions/6f1831474e70?raw)
