Skip to main content
POST
Bridgly SDK

Authorizations

Authorization
string
header
required

A Bridgly API key (bgly_…). Metered endpoints deduct credits from the resolved account.

Body

application/json
query
string
required

The text to search Reddit for, e.g. "openai", "best keyboard".

subreddit
string

Restrict the search to a single subreddit (name without the "r/" prefix). Only applies to post search.

sort
enum<string>

Result ordering. Defaults to "relevance".

Available options:
relevance,
hot,
top,
new,
comments
time
enum<string>

Restrict results to a recent window. Defaults to "all".

Available options:
hour,
day,
week,
month,
year,
all
after
string

Pagination cursor (a Reddit fullname returned as after from a previous page).

limit
integer
default:10

Number of results to return (1–10). Defaults to 10.

Required range: 1 <= x <= 10

Response

Default Response

timeMs
number
required

Wall-clock time the request took to complete, in milliseconds.

creditsCost
number
required

Number of account credits this request consumed.

data
object
required