---
title: "Batch Look Up Posts by ID (POST)"
description: "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`.\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://threadapi.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Path: ThreadAPI API › Reddit

`POST /v1/reddit/posts/batch`

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`.

## Authentication

Requires one of the following:

- `bearerAuth`, http, header `Authorization`
- `apiKeyAuth`, apiKey, in header, header `x-api-key`

## Request body

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

- `ids` (`postPostsBatch.ids`; array<string>, optional)
  - example `["t3_1x1ai6v","t3_1xagllz"]`

## Example request

```json
{
  "ids": [
    "t3_1x1ai6v",
    "t3_1xagllz"
  ]
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.threadapi.dev/v1/reddit/posts/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "t3_1x1ai6v",
    "t3_1xagllz"
  ]
}
'
```

### TypeScript

```typescript
const url = 'https://api.threadapi.dev/v1/reddit/posts/batch';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({ids: ['t3_1x1ai6v', 't3_1xagllz']})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.threadapi.dev/v1/reddit/posts/batch"

payload = { "ids": ["t3_1x1ai6v", "t3_1xagllz"] }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The requested posts.

#### Example

```json
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "domain": "string",
      "is_self": true,
      "flair": "string",
      "spoiler": true,
      "is_pinned": true,
      "locked": true,
      "removed": true,
      "subreddit": "string",
      "title": "string",
      "author": "string",
      "score": 0,
      "upvote_ratio": 0,
      "comments_count": 0,
      "url": "string",
      "permalink": "string",
      "body": "string",
      "is_video": true,
      "is_nsfw": true,
      "media": [
        {
          "type": "image",
          "url": "string",
          "width": 0,
          "height": 0,
          "caption": "string"
        }
      ],
      "poll": {
        "total_votes": 0,
        "is_closed": true,
        "options": [
          {
            "id": "string",
            "text": "string",
            "vote_count": 0
          }
        ]
      },
      "crosspost_of": {
        "id": "string",
        "subreddit": "string",
        "title": "string",
        "author": "string",
        "permalink": "string"
      },
      "comments": [
        {
          "id": "string",
          "parent_id": "string",
          "author": "string",
          "score": 0,
          "body": "string",
          "depth": 0,
          "is_op": true,
          "replies": [
            {
              "id": "string",
              "parent_id": "string",
              "author": "string",
              "score": 0,
              "body": "string",
              "depth": 0,
              "is_op": true,
              "replies": []
            }
          ]
        }
      ]
    }
  ],
  "missing": [
    "string"
  ]
}
```

- `items` (`postPostsBatch.response.200.items`; array<object>, required)
  - `id` (`postPostsBatch.response.200.items.id`; string, optional)
  - `name` (`postPostsBatch.response.200.items.name`; string, optional)
  - `domain` (`postPostsBatch.response.200.items.domain`; string, optional)
  - `is_self` (`postPostsBatch.response.200.items.is_self`; boolean, optional)
  - `flair` (`postPostsBatch.response.200.items.flair`; string, optional)
  - `spoiler` (`postPostsBatch.response.200.items.spoiler`; boolean, optional)
  - `is_pinned` (`postPostsBatch.response.200.items.is_pinned`; boolean, optional)
  - `locked` (`postPostsBatch.response.200.items.locked`; boolean, optional)
  - `removed` (`postPostsBatch.response.200.items.removed`; boolean, optional)
  - `subreddit` (`postPostsBatch.response.200.items.subreddit`; string, optional)
  - `title` (`postPostsBatch.response.200.items.title`; string, optional)
  - `author` (`postPostsBatch.response.200.items.author`; string, optional)
  - `score` (`postPostsBatch.response.200.items.score`; integer, optional)
  - `upvote_ratio` (`postPostsBatch.response.200.items.upvote_ratio`; number, optional)
  - `comments_count` (`postPostsBatch.response.200.items.comments_count`; integer, optional)
  - `url` (`postPostsBatch.response.200.items.url`; string, optional)
  - `permalink` (`postPostsBatch.response.200.items.permalink`; string, optional)
  - `body` (`postPostsBatch.response.200.items.body`; string, optional)
  - `is_video` (`postPostsBatch.response.200.items.is_video`; boolean, optional)
  - `is_nsfw` (`postPostsBatch.response.200.items.is_nsfw`; boolean, optional)
  - `media` (`postPostsBatch.response.200.items.media`; array<object>, optional)
    - `type` (`postPostsBatch.response.200.items.media.type`; string, optional)
      - one of `"image"`, `"video"`, `"gallery"`
    - `url` (`postPostsBatch.response.200.items.media.url`; string, optional)
    - `width` (`postPostsBatch.response.200.items.media.width`; integer, optional)
    - `height` (`postPostsBatch.response.200.items.media.height`; integer, optional)
    - `caption` (`postPostsBatch.response.200.items.media.caption`; string, optional)
  - `poll` (`postPostsBatch.response.200.items.poll`; object, optional)
    - `total_votes` (`postPostsBatch.response.200.items.poll.total_votes`; integer, optional)
    - `is_closed` (`postPostsBatch.response.200.items.poll.is_closed`; boolean, optional)
    - `options` (`postPostsBatch.response.200.items.poll.options`; array<object>, optional)
      - `id` (`postPostsBatch.response.200.items.poll.options.id`; string, optional)
      - `text` (`postPostsBatch.response.200.items.poll.options.text`; string, optional)
      - `vote_count` (`postPostsBatch.response.200.items.poll.options.vote_count`; integer, optional)
  - `crosspost_of` (`postPostsBatch.response.200.items.crosspost_of`; object, optional)
    - `id` (`postPostsBatch.response.200.items.crosspost_of.id`; string, optional)
    - `subreddit` (`postPostsBatch.response.200.items.crosspost_of.subreddit`; string, optional)
    - `title` (`postPostsBatch.response.200.items.crosspost_of.title`; string, optional)
    - `author` (`postPostsBatch.response.200.items.crosspost_of.author`; string, optional)
    - `permalink` (`postPostsBatch.response.200.items.crosspost_of.permalink`; string, optional)
  - `comments` (`postPostsBatch.response.200.items.comments`; array<object>, optional)
    - `id` (`postPostsBatch.response.200.items.comments.id`; string, optional)
    - `parent_id` (`postPostsBatch.response.200.items.comments.parent_id`; string, optional) — t3_<post id> for a top-level comment, t1_<comment id> for a reply.
    - `author` (`postPostsBatch.response.200.items.comments.author`; string, optional)
    - `score` (`postPostsBatch.response.200.items.comments.score`; integer, optional)
    - `body` (`postPostsBatch.response.200.items.comments.body`; string, optional)
    - `depth` (`postPostsBatch.response.200.items.comments.depth`; integer, optional)
    - `is_op` (`postPostsBatch.response.200.items.comments.is_op`; boolean, optional) — Written by the original poster (OP).
    - `replies` (`postPostsBatch.response.200.items.comments.replies`; array<object>, optional)
      - `id` (`postPostsBatch.response.200.items.comments.replies.id`; string, optional)
      - `parent_id` (`postPostsBatch.response.200.items.comments.replies.parent_id`; string, optional) — t3_<post id> for a top-level comment, t1_<comment id> for a reply.
      - `author` (`postPostsBatch.response.200.items.comments.replies.author`; string, optional)
      - `score` (`postPostsBatch.response.200.items.comments.replies.score`; integer, optional)
      - `body` (`postPostsBatch.response.200.items.comments.replies.body`; string, optional)
      - `depth` (`postPostsBatch.response.200.items.comments.replies.depth`; integer, optional)
      - `is_op` (`postPostsBatch.response.200.items.comments.replies.is_op`; boolean, optional) — Written by the original poster (OP).
      - `replies` (`postPostsBatch.response.200.items.comments.replies.replies`; array<object>, optional)
- `missing` (`postPostsBatch.response.200.missing`; array<string>, required)

### 400

Bad request (invalid parameter or unknown action)

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`postPostsBatch.response.400.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`postPostsBatch.response.400.error.code`; string, required)
    - example `"not_found"`
  - `message` (`postPostsBatch.response.400.error.message`; string, required)
  - `retryable` (`postPostsBatch.response.400.error.retryable`; boolean, required)
  - `retry_after` (`postPostsBatch.response.400.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`postPostsBatch.response.400.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.

### 401

Missing or invalid API key or OAuth access token

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`postPostsBatch.response.401.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`postPostsBatch.response.401.error.code`; string, required)
    - example `"not_found"`
  - `message` (`postPostsBatch.response.401.error.message`; string, required)
  - `retryable` (`postPostsBatch.response.401.error.retryable`; boolean, required)
  - `retry_after` (`postPostsBatch.response.401.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`postPostsBatch.response.401.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.

### 402

The account has no credits left (`insufficient_credits`).

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`postPostsBatch.response.402.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`postPostsBatch.response.402.error.code`; string, required)
    - example `"not_found"`
  - `message` (`postPostsBatch.response.402.error.message`; string, required)
  - `retryable` (`postPostsBatch.response.402.error.retryable`; boolean, required)
  - `retry_after` (`postPostsBatch.response.402.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`postPostsBatch.response.402.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.

### 429

Rate limit or daily request quota exceeded

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`postPostsBatch.response.429.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`postPostsBatch.response.429.error.code`; string, required)
    - example `"not_found"`
  - `message` (`postPostsBatch.response.429.error.message`; string, required)
  - `retryable` (`postPostsBatch.response.429.error.retryable`; boolean, required)
  - `retry_after` (`postPostsBatch.response.429.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`postPostsBatch.response.429.error.request_id`; string, optional) — 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`.

#### Example

```json
{
  "error": {
    "code": "not_found",
    "message": "string",
    "retryable": true,
    "retry_after": 0,
    "request_id": "string"
  }
}
```

- `error` (`postPostsBatch.response.503.error`; object, required) — Some codes add fields, such as `limit` and `used` on `monitor_limit_reached` and `upgrade_url` on `rate_limited` and `daily_quota_exceeded`.
  - `code` (`postPostsBatch.response.503.error.code`; string, required)
    - example `"not_found"`
  - `message` (`postPostsBatch.response.503.error.message`; string, required)
  - `retryable` (`postPostsBatch.response.503.error.retryable`; boolean, required)
  - `retry_after` (`postPostsBatch.response.503.error.retry_after`; integer, optional) — Seconds to wait before retrying.
  - `request_id` (`postPostsBatch.response.503.error.request_id`; string, optional) — The request's X-Request-Id; include it when reporting an issue.


Source: https://threadapi.dev/api/Reddit/postPostsBatch/index.md
