# Reddit Posts in bulk API (reddit.posts_batch)

- Canonical page: [https://everyinfra.com/en/reddit-api/posts_batch](https://everyinfra.com/en/reddit-api/posts_batch?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "reddit", "action": "posts_batch", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Billing unit: each element in `urls` counts as one call; the number of elements you send sets the charge
- Returns: list
- Mode: sync only; everything it returns (every target of a batch, or every SKU of a product) is read in one call, and "mode": "async" returns 422 before any charge

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=reddit&action=posts_batch

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| urls | not declared | yes | not declared | Reddit post links for `posts_batch`, as an array of up to 20 entries; a comma-separated string is not accepted. Each entry is the link to one post: a link containing `/comments/<post_id>/`, with or without the `/r/<subreddit>/` prefix, or a `redd.it/<post_id>` short link. Share links of the form `/r/<subreddit>/s/<code>` are not accepted. List each post once; the same post written as two different links counts as a duplicate. A request with an unrecognized entry, a duplicate or more than 20 entries is rejected with a 422 before any charge, and so is a `limit` smaller than the number of entries, so leave `limit` out. Billed per post; posts not found (deleted, removed, in a private community, wrong ID) are not charged and are listed in `missed`. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| author_username | Author's username (@handle), usually usable in URLs. |
| community | platform-native meaning |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| comment_count | Comments. null means not disclosed, not 0. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| flair | platform-native meaning |
| domain | platform-native meaning |
| external_link | platform-native meaning |
| thumbnail_url | Thumbnail link, lower resolution than image_url. |
| image_urls | Array of image links in the platform's display order; absent when there are no images. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| input | The entry that this row answers, returned exactly as you passed it: for posts_batch an entry of urls, for comments_lookup an entry of comment_urls. Use it to match rows to your entries; the returned url can be written differently, for example a full post link where you passed a `redd.it` short link. |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "reddit",
  "action": "posts_batch",
  "params": {
    "urls": [
      "https://www.reddit.com/r/AskUS/comments/1uzedcq/is_coffee_really_a_daily_ritual_for_most_americans/"
    ]
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "reddit",
        "action": "posts_batch",
        "params": {
            "urls": [
                "https://www.reddit.com/r/AskUS/comments/1uzedcq/is_coffee_really_a_daily_ritual_for_most_americans/",
            ],
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "reddit",
  "action": "posts_batch",
  "results": [
    {
      "id": …,
      "url": …,
      "title": …,
      "text": …,
      "author_username": …,
      "community": …,
      "like_count": …,
      "comment_count": …,
      "posted_at": …,
      "flair": …,
      "domain": …,
      "external_link": …,
      "thumbnail_url": …,
      "image_urls": …,
      "platform": …,
      "input": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=reddit
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
