Reddit Subreddit Posts

From AnyAPI, through Joshu Data Bodega.

Price
$0.00132 per call$1.32 per 1,000 calls

No calls measured in the last 30 days.

Prices include the router's 10% markup and are paid from the usage wallet. Checked on November 11, 2026.

Inputs

  • jqstring, optional

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

  • sortstring: hot, new, top, optional

    Listing sort order.

  • afterstring, optional

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

  • limitinteger, optional

    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.

  • cursorstring, optional

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

  • fieldsstring, optional

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

  • summaryboolean, optional

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

  • max_itemsinteger, optional

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

  • subredditstring, required

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

  • timeframestring: all, year, month, week, day, hour, optional

    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.

Call it

Router call with a router API key
curl https://hello.joshu.me/api/router/call \
  -H "Authorization: Bearer $JOSHU_ROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "endpoint": "anyapi.reddit.subreddit_posts",
    "params": {
      "limit": 5,
      "subreddit": "programming"
    }
  }'