PeumeAPI

Social media data · Reddit

Reddit Subreddit Posts

Fetch posts from a subreddit listing (hot, new, or top).

$0.0018 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/reddit-subreddit-posts \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "limit": 5,
    "sort": "hot",
    "subreddit": "programming"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: reddit-subreddit-posts.

Parameters

fieldsstring

Comma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.

max_itemsinteger

Caps the result rows returned; `_truncated` says how many were withheld. Not the charge.

summaryboolean

`true` returns only an outline: keys, item counts, per-field sizes.

jqstring

jq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.

afterstring

Legacy pagination alias. Prefer `cursor`; omit both fields for the first page.

cursorstring

Opaque pagination cursor from a previous response's `nextCursor`; omit for the first page.

limitinteger

Page size to ask for (up to 100). Some sources honor it; others always return their whole page of about 25 posts. A page is never trimmed after the call, so pass nextCursor back as cursor to continue exactly where this response ended.

Example: 5

sortstring

Listing sort order.

hot · new · top

Example: hot

subredditRequiredstring

Subreddit name without the leading r/ (e.g. "golang").

Example: programming

timeframestring

Time window, applied when sort is "top" (e.g. "year" for the year's top posts). Ignored for hot/new. Omit to default to the current day for top.

all · year · month · week · day · hour

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.