Reddit

Search Reddit posts by keyword query

Search posts across Reddit with sort and time filters.

post/api/v1/reddit/search

Request

  • Base URL: https://glim.sh
  • URL: https://glim.sh/api/v1/reddit/search
  • Auth: one of:
    • none
    • API key in header x-api-key
    • HTTP bearer
    • API key in query parameter apiKey

Request body

querystring required

Search query

sort'relevance' | 'hot' | 'top' | 'new' | 'comments'

Sort order

time'hour' | 'day' | 'week' | 'month' | 'year' | 'all'

Time range

limitinteger

Max posts (each returned with full content + top comments)

cursorstring

Pagination cursor from a prior response's next_cursor

start_datestring

Only posts on or after this date (YYYY-MM-DD)

end_datestring

Only posts before this date (YYYY-MM-DD)

Response

Search results

object required

Changes

No recorded changes to this operation across all 1 revision of this API.