Zernio
APIFor you
Zernio
APIFor you
API Reference

Reddit Search

Search postsGETGet subreddit feedGETGet the comments of a Reddit postGET
Dashboard
OverviewPlatformsAPI ReferenceResources
Reddit Search

Get subreddit feed

Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 PLATFORM_DISABLED until Reddit restores access. Reddit Ads is not affected.

Fetch posts from a subreddit feed. Supports sorting, time filtering, and cursor-based pagination.


GET
/v1/reddit/feed

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

In: header

Query Parameters

accountId*string
subreddit?string
sort?string
Default"hot"

Value in

  • "hot"
  • "new"
  • "top"
  • "rising"
limit?integer
Rangevalue <= 100
Default25
after?string
t?string

Value in

  • "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}
Was this page helpful?

Search posts

Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected. Search Reddit posts using a connected account. Optionally scope to a specific subreddit.

Get the comments of a Reddit post

Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected. Reads the comments of any Reddit post the connected account can see, for example one found through `/v1/reddit/feed` or `/v1/reddit/search`, straight from Reddit on every call. The tree comes flattened in thread order (a reply follows its parent); rebuild it from `parentId`, which is `t3_…` for a reply to the post and `t1_…` for a reply to a comment. Deleted and removed comments are passed through as Reddit sends them (`[deleted]` / `[removed]`). Where Reddit truncates a thread, the ids it left out are listed in `more`; `commentId` fetches one such comment with its replies. A post Reddit no longer serves answers 404 and a private subreddit 403, both with `platform_api_error`. For comments on posts published through Zernio, `/v1/inbox/comments/{postId}` adds caching, moderation and replies.