---
title: "Get a subreddit's posts"
method: GET
path: "/v1/reddit/subreddit-posts"
---

# Get a subreddit's posts

`GET /v1/reddit/subreddit-posts`

## Request

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

Fetch one page of posts from a single subreddit, the community-monitoring primitive. subreddit_name is the name without the r/ prefix. sort defaults to the subreddit's own front-page order (best); use sort=new for monitoring. sort=top and controversial need a range, but the window is currently not applied upstream on this feed: top returns the subreddit's all-time top posts whatever range says (time-windowed tops are a known gap here; reddit_search's range DOES work for keyword queries). Costs 4 credits per page; a cursor page is a NEW call priced the same way. Reddit splices about one promoted ad into every feed page; these are dropped by default, so set include_promoted=true only when ads ARE the data you want (ad intelligence, who targets this community) -- kept ads carry is_promoted=true. Returns post summaries (title, author, upvotes, comment_count, created_at, permalink, id) with a cursor for older posts; bodies and discussions come from reddit_get_post with the returned ids. For keyword search across all of Reddit use reddit_search; this tool takes no query.

## Query parameters

- `subreddit_name` string, required: Subreddit name without the r/ prefix, e.g. 'selfhosted'.
- `sort` 'best' | 'hot' | 'new' | 'top' | 'controversial' | 'rising': Defaults to the subreddit's front-page order.
- `range` 'past_hour' | 'today' | 'past_week' | 'past_month' | 'past_year' | 'all_time': Required with sort=top or controversial, but currently not applied upstream on this feed (results are all-time).
- `include_promoted` boolean: Keep the promoted ads Reddit splices into the feed (marked is_promoted). Default drops them.
- `cursor` string: Cursor from a previous page for older posts.
- `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_posts envelope (schema_version 2)

- RedditPostsEnvelope
  - `entity` 'reddit_posts', 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
    - `results` 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.
    - `cursor` string, nullable, required: Pass back to fetch the next page. Null when exhausted.
    - `next_url` string, nullable, required: Ready-to-GET REST URL for the next page.
    - `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)
