Reddit
Authorization
Bearer AuthorizationBearer <token>
In: header
Query Parameters
cursor?string
Pagination cursor
limit?integer
Number of items per page
Default
20Range
1 <= value <= 100query*string
Search query
subreddit?string
Limit to subreddit
sort?string
Sort order
Default
"relevance"Value in
"relevance" | "hot" | "top" | "new" | "comments"time?string
Time filter
Default
"all"Value in
"hour" | "day" | "week" | "month" | "year" | "all"account_id*string
Reddit account ID
Response Body
application/json
application/json
curl -X GET "https://api.relayapi.dev/v1/reddit/search?query=string&account_id=string"{
"data": [
{
"id": "string",
"subreddit": "string",
"title": "string",
"author": "string",
"url": "string",
"selftext": "string",
"score": 0,
"num_comments": 0,
"created_utc": 0,
"thumbnail": "string",
"is_self": true,
"nsfw": true
}
],
"next_cursor": "string",
"has_more": true
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}