Skip to content
Navigation

Get Subreddit Details

GET /v1/reddit/subreddit
1 credit per request Permission: reddit:read

Retrieves subreddit metadata, community settings, subscriber stats, and moderation rules.

Authorization

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

Query parameters

  • sub: required string

    Subreddit name, with or without r/.

Returns

200

Subreddit metadata and rules.

JSON
  • name: optional string
  • title: optional string
  • public_description: optional string
  • description: optional string
  • subscribers: optional integer
  • is_nsfw: optional boolean
  • type: optional string
  • url: optional string
  • icon: optional string
  • rules: optional array ofobject
    • kind: optional string
    • short_name: optional string
    • description: optional string
    • violation_reason: optional string
    • priority: optional integer

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

Reddit does not show this content to logged-out readers, e.g. a private or quarantined subreddit (reddit_refused).
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