Skip to content
Navigation

List Subreddit Comments

GET /v1/reddit/subreddit/comments
1 credit per page Permission: reddit:read

Fetches recent comments posted across an entire subreddit in reverse chronological order.

Authorization

  • bearerAuth: optional HTTP
  • apiKeyAuth: optional API key in header

Query parameters

  • sub: required string

    Subreddit name (e.g. golang or r/golang).

  • limit: optional integer

    Number of items per page.

    range: 1–100 · default: 25
  • after: optional string

    Pagination cursor from the previous page's after field.

  • nsfw: optional boolean

    Include NSFW content (filtered out by default).

    default: false

Returns

200

Subreddit comments.

JSON
  • sort: required string
  • count: required integer
  • items: required array ofobject
    • id: optional string
    • name: optional string
    • post_id: optional string
    • post_title: optional string
    • subreddit: optional string
    • author: optional string
    • score: optional integer
    • body: optional string
    • is_op: optional boolean
  • filtered_nsfw: required integer
  • subreddit: optional string | null
  • query: optional string | null
  • after: optional string | null

400

Bad request (invalid parameter or unknown action)
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

401

Missing or invalid API key or OAuth access token
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

402

The account has no credits left (insufficient_credits).
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

403

Insufficient permissions or scope for this endpoint
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

404

Requested user or resource not found
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

429

Rate limit or daily request quota exceeded
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

503

A temporary problem reaching Reddit (upstream_busy, upstream_timeout, upstream_blocked, upstream_error). Nothing was billed. If upstream_blocked, wait for Retry-After.
JSON
  • error: required object

    Some codes add fields, such as limit and used on monitor_limit_reached and upgrade_url on rate_limited and daily_quota_exceeded.

    • code: required string
    • message: required string
    • retryable: required boolean
    • retry_after: optional integer

      Seconds to wait before retrying.

    • request_id: optional string

      The request's X-Request-Id; include it when reporting an issue.

Type to search…

↑↓ navigate ↵ select Esc close