Reddit

List subreddit posts

Changed on

List posts from a subreddit, optionally filtered by sort order and timeframe. Returns a paginated list of posts. Use the nextPageToken field from the response to retrieve subsequent pages.

<span>⚡ <strong>Rate limit:</strong> 300 requests per 1 minute</span>

<span>💰 <strong>Cost:</strong> 2 credits per page of results <span title="Pricing shown is default pricing. Actual pricing may vary.">ⓘ</span></span>

post/v1/reddit/subreddit/posts

Request

  • Base URL
    https://api.fiber.ai
  • URL
    https://api.fiber.ai/v1/reddit/subreddit/posts
  • Auth
    none declared

Request body

apiKeystring required

Your Fiber API key

subredditstring required

Subreddit name (e.g. 'AskReddit'), r/ prefix form (e.g. 'r/AskReddit'), or full subreddit URL.

sort'best' | 'hot' | 'new' | 'top' | 'rising'

Sort order for subreddit posts.

timeframe'all' | 'day' | 'week' | 'month' | 'year'

Time window for filtering. Only applies when sort is 'top'; ignored for other sort modes (which are inherently time-ordered).

nextPageTokenstring nullable

Pagination token from a previous response to retrieve the next page. Omit for the first page.

Response

Default Response

advicestring[] nullable

Tips, recommendations, and suggestions for using this API effectively.

Changes

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became optional for the status

    • info

      the response's property default value was removed for the status

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status