Reddit

Search within a subreddit

Changed on

Search posts within a subreddit by query, 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/search

Request

  • Base URL
    https://api.fiber.ai
  • URL
    https://api.fiber.ai/v1/reddit/subreddit/search
  • 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.

querystring required

Search query.

sort'relevance' | 'hot' | 'top' | 'new' | 'comment_count'

Sort order for subreddit search results.

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

Time window for subreddit search filtering.

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