Reddit Subreddit Posts
From AnyAPI, through Joshu Data Bodega.
Part of Reddit subreddit.
- 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, optionaljq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.
sortstring: hot, new, top, optionalListing sort order.
afterstring, optionalLegacy pagination alias. Prefer `cursor`; omit both fields for the first page.
limitinteger, optionalPage 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, optionalOpaque pagination cursor from a previous response's `nextCursor`; omit for the first page.
fieldsstring, optionalComma-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, optionalCaps the result rows returned; `_truncated` says how many were withheld. Not the charge.
subredditstring, requiredSubreddit name without the leading r/ (e.g. "golang").
timeframestring: all, year, month, week, day, hour, optionalTime 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
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"
}
}'