Get subreddit feed
Fetch posts from a subreddit feed. Supports sorting, time filtering, and cursor-based pagination.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
"hot""hot" | "new" | "top" | "rising"25value <= 100"hour" | "day" | "week" | "month" | "year" | "all"Response Body
application/json
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.reddit.getRedditFeed({ query: { accountId: 'account_abc123', },});console.log(data);{
"items": [
{
"id": "1xyz789",
"fullname": "t3_1xyz789",
"title": "Top marketing trends this week",
"author": "trendwatcher",
"subreddit": "marketing",
"url": "https://www.reddit.com/r/marketing/comments/1xyz789/",
"permalink": "https://www.reddit.com/r/marketing/comments/1xyz789/top_marketing_trends/",
"score": 892,
"numComments": 134,
"createdUtc": 1730100000,
"over18": false,
"stickied": false,
"flairText": null,
"isGallery": false
},
{
"id": "1def456",
"fullname": "t3_1def456",
"title": "Check out my grow setup",
"author": "growthexpert",
"subreddit": "gardening",
"url": "https://www.reddit.com/gallery/1def456",
"permalink": "https://www.reddit.com/r/gardening/comments/1def456/check_out_my_grow_setup/",
"score": 567,
"numComments": 89,
"createdUtc": 1730050000,
"over18": false,
"stickied": false,
"flairText": null,
"isGallery": true,
"galleryImages": [
"https://i.redd.it/abc123.jpg",
"https://i.redd.it/def456.jpg"
]
}
],
"after": "t3_1def456",
"before": null
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}Search posts GET
Search Reddit posts using a connected account. Optionally scope to a specific subreddit.
Search recent tweets GET
Search public tweets from the last 7 days matching an X search query, e.g. to discover tweets to reply to. The query string is passed through to X unchanged and supports X's search operators (`from:user`, `-is:retweet`, `is:reply`, `lang:en`, `"exact phrase"`, `conversation_id:123`, boolean `OR`, ...). Note that standalone operators like `is:` / `has:` / `lang:` must be combined with a keyword or `from:` clause. To reply to a found tweet, pass its `id` as the twitter platform entry's `platformSpecificData.replyToTweetId` when creating a post. Rate limit: 300 requests per 15-min window per connected account.