Skip to content
Navigation

Batch Look Up Posts by ID (POST)

POST /v1/reddit/posts/batch
1 credit per request Permission: reddit:read

Batch look up up to 100 Reddit posts by fullname (t3_), bare ID, or URL via JSON request body or query parameter. Any missing IDs are recorded under missing.

Authorization

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

Request body JSON

Post IDs as a JSON array or comma-separated string.

  • ids: optional array ofstring

Returns

200

The requested posts.

JSON
  • items: required array ofobject
    • id: optional string
    • name: optional string
    • domain: optional string
    • is_self: optional boolean
    • flair: optional string
    • spoiler: optional boolean
    • is_pinned: optional boolean
    • locked: optional boolean
    • removed: optional boolean
    • subreddit: optional string
    • title: optional string
    • author: optional string
    • score: optional integer
    • upvote_ratio: optional number
    • comments_count: optional integer
    • url: optional string
    • body: optional string
    • is_video: optional boolean
    • is_nsfw: optional boolean
    • media: optional array ofobject
      • type: optional image|video|gallery
      • url: optional string
      • width: optional integer
      • height: optional integer
      • caption: optional string
    • poll: optional object
      • total_votes: optional integer
      • is_closed: optional boolean
      • options: optional array ofobject
        • id: optional string
        • text: optional string
        • vote_count: optional integer
    • crosspost_of: optional object
      • id: optional string
      • subreddit: optional string
      • title: optional string
      • author: optional string
    • comments: optional array ofobject
      • id: optional string
      • parent_id: optional string

        t3_<post id> for a top-level comment, t1_<comment id> for a reply.

      • author: optional string
      • score: optional integer
      • body: optional string
      • depth: optional integer
      • is_op: optional boolean

        Written by the original poster (OP).

      • replies: optional array ofobject
        • id: optional string
        • parent_id: optional string

          t3_<post id> for a top-level comment, t1_<comment id> for a reply.

        • author: optional string
        • score: optional integer
        • body: optional string
        • depth: optional integer
        • is_op: optional boolean

          Written by the original poster (OP).

        • replies: optional array ofobject
  • missing: required array ofstring

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.

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