Posts

Description

Fetch information for one or more posts by their IDs. Returns an array of post details including metadata, author information and media.

Endpoint

POST api/v1/realtime/social/reddit/v1/posts/info

Parameters

Param
Required
Param Type
Description

ids

Yes

Body Param

List | Array of post IDs to fetch information. All posts ids must start with 't3_'. Maximum 100 ids per request

chevron-rightExample Requesthashtag
curl -X POST 'https://api.webit.live/api/v1/realtime/social/reddit/v1/posts/info' \
--header 'Authorization: Basic <credential string>'
--data '{
    "ids": [
        "t3_1nw84pp"
    ]
}'
chevron-rightExample Responsehashtag
[
    {
        "id": "t3_1nw84pp",
        "title": "Anyone else?",
        "type": "SubredditPost",
        "createdAt": "2025-10-02T16:13:08.150Z",
        "editedAt": null,
        "upvote": 36,
        "url": "https://i.redd.it/629fpozo3qsf1.jpeg",
        "content": null,
        "commentCount": 59,
        "upvoteRatio": 0.9090909090909091,
        "author": {
            "type": "user",
            "id": "t2_oqje3tyg",
            "name": "LoganWX01",
            "icon": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_0.png"
        },
        "thumbnail": "https://b.thumbs.redditmedia.com/DjxVX5ild1ludJsr__zTD5ffPmGfetbQKojQpvheioA.jpg",
        "media": {
            "preview": "https://preview.redd.it/629fpozo3qsf1.jpeg?auto=webp&s=7b79934c7bb504cf02261b42c39958db5cd6de30",
            "type": "IMAGE",
            "video": null
        },
        "permalink": "/r/blackops7/comments/1nw84pp/anyone_else/",
        "gallery": null,
        "poll": null,
        "flair": "Feedback",
        "crosspostRoot": null,
        "removedByCategory": null,
        "subreddit": {
            "id": "t5_bejg0d",
            "name": "blackops7",
            "prefixedName": "r/blackops7",
            "title": "Black Ops 7",
            "subscribersCount": 20402,
            "icon": "https://styles.redditmedia.com/t5_bejg0d/styles/communityIcon_cqaqqhg0qp5f1.jpeg?width=64&height=64&frame=1&auto=webp&crop=64:64,smart&s=80e5dcfc02ad3fe5b6c615db1dc4c3c04484cf1f",
            "banner": "https://styles.redditmedia.com/t5_bejg0d/styles/bannerBackgroundImage_mjmrk4xxpp5f1.jpeg?format=pjpg&s=4a5699c21779f0ae4fa527b01b770cc1db4be7a9"
        }
    }
]

Posts Discussion

Description

Fetch the full discussion tree for a post. Returns nested comments sorted by order (best, top, new, etc.), up to a maximum depth of 10. Useful for analyzing conversation structure or engagement.

Endpoint

GET api/v1/realtime/social/reddit/v1/posts/{postId}/discussion

Parameters

Param
Required
Param Type
Description

postId

Yes

Path Param

String | The post id

cursor

No

Query Param

Sting | The pagination cursor

sort

No Default: NEW

Query Param

Sting | The sort order. Available values: BEST, NEW, TOP, CONTROVERSIAL, OLD, QA

Pagination

Pagination in this endpoint works as a tree-based structure

  • Results per page: 0-200

  • Each comment in the comments array includes a depth field that indicates its nesting level in the tree. The maximum supported comment tree depth is 10.

  • The $comment.more.cursor field provides the cursor for fetching the next page of comments at that specific depth and branch

  • The main cursor path in the response: pageInfo.cursor

  • If pageInfo.cursor is null and pageInfo.hasNextPage is false, there are no additional pages available

chevron-rightExample Requesthashtag
chevron-rightExample Responsehashtag

Last updated