List posts in a subreddit
Returns posts from a subreddit sorted by hot, new, top or rising, with a timeframe for top. Paginate with `cursor`.
Pricing — $ · min $0.003
Minimum 3 credits ($0.003) per call. Records returned above the minimum bill 1 credit ($0.001) each.
Authorization
bearerAuth UnifAPI API key. Provider credentials are managed by UnifAPI.
In: header
Path Parameters
Subreddit name without the r/ prefix.
1 <= length <= 500Query Parameters
Optional sort order for the returned posts.
Value in
- "best"
- "hot"
- "new"
- "top"
- "rising"
Optional timeframe used only when sort is top. Ignored/rejected for other sorts.
Value in
- "all"
- "day"
- "week"
- "month"
- "year"
Opaque pagination cursor from a previous response's pagination.next_cursor. Omit for the first page.
1 <= length <= 16384Header Parameters
Pin the API version an integration was built against (date-based, e.g. 2026-07-01). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with Deprecation and Sunset response headers. The served version is echoed in every response's Unifapi-Version header. Policy: https://unifapi.com/versioning.md
"2026-07-01"Value in
- "2026-07-01"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/reddit/subreddits/string/posts"{ "request_id": "string", "data": [ { "id": "string", "full_id": "string", "subreddit": "string", "title": "string", "text": "string", "author": { "username": "string", "id": "string" }, "url": "string", "permalink_url": "string", "published_at": 0, "score": 0, "upvote_count": 0, "upvote_ratio": 0, "comment_count": 0, "crosspost_count": 0, "subreddit_subscriber_count": 0, "flags": { "is_video": true, "is_pinned": true, "is_locked": true, "is_spoiler": true, "is_over18": true, "is_original_content": true }, "flair": "string", "post_type": "string", "domain": "string" } ], "pagination": { "has_more": true, "next_cursor": "string" }, "billing": { "credits_charged": 0, "records_charged": 0, "balance_remaining": 0, "truncated_due_to_balance": true }}