Skip to main content
GET
/
post
/
search
Search Posts
curl --request GET \
  --url https://api.zilodata.com/api/v1/reddit/post/search \
  --header 'Authorization: Bearer <token>'
{
  "posts": [
    {
      "id": "abc123",
      "title": "Amazing discovery in science",
      "content": "Check out this incredible finding...",
      "author": "science_lover",
      "subreddit": "science",
      "upvotes": 1250,
      "downvotes": 50,
      "score": 1200,
      "commentCount": 89,
      "createdAt": "2025-01-15T10:30:00.000Z",
      "url": "https://www.reddit.com/r/science/comments/abc123"
    }
  ],
  "total": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

query
string
required
subreddit
string

Limit search to specific subreddit

limit
integer
default:25
sort
enum<string>
default:relevance
Available options:
relevance,
hot,
top,
new

Response

200 - application/json

Successful response

posts
object[]
total
integer