Reddit Post API
Collect Reddit post details and available author, media and comment data.
API Description
Reddit Post API — Collect Reddit post details and available author, media and comment data.
Authenticate with your Pangolinfo API Key to receive structured JSON data.
Request URL
Request Headers
| Parameters | Parameter value | Type | Description |
|---|---|---|---|
| Content-Type | application/json | string | Data format |
| Authorization | Bearer xxx | string | Authorization Token |
Collection takes up to approximately 75 seconds. Set your client timeout to 90 seconds.
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| target | Yes | string | Target URL, supported ID or search keyword for this operation. |
| options | No | object | Optional collection settings, described below. |
options Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| includeCommunity | No | boolean | Include the subreddit card. Default: true. |
Only the request parameters listed on this page are used; other fields are ignored. Pass pagination cursors back unchanged, without encoding, decoding or conversion.
Included comments are limited to one page. Use the corresponding comments operation for more.
Normal mode includes at most one reply level without expanding additional collapsed threads. Explicit reply mode uses the reply endpoint defaults.
Response Fields
| Field | Type | Description |
|---|---|---|
| code | integer | Status code; 0 indicates success. |
| message | string | Response message; ok on success. |
| pointCost | number | Points charged for this request. |
| data | object | Collected data, with fields described below. |
| meta | object | Request identifier and duration in milliseconds. |
| billing | object | Charged units, unit price and billing rule version. |
data Fields
| Field | Type | Description |
|---|---|---|
| type | string | Result type. |
| poster | object | Poster |
| community | object | null | Community |
| post | object | null | Post, video or business details. |
| comments | object[] | Root comments in comment mode. |
| others | any[] | Others |
| pagination | object | Continuation cursor and whether more results are available. |
data.poster Fields
| Field | Type | Description |
|---|---|---|
| nickname | string | null | Author display name. |
| avatar | null | Avatar URL. |
| profileUrl | string | null | Author profile URL. |
| id | string | null | Record identifier. |
data.community Fields
| Field | Type | Description |
|---|---|---|
| url | string | Content URL. |
| name | string | Name |
| desc | string | null | Desc |
| weeklyVisitors | number | null | Weekly visitors |
| weeklyContributions | number | null | Weekly contributions |
| subredditId | string | null | Subreddit id |
data.post Fields
| Field | Type | Description |
|---|---|---|
| title | string | null | Title |
| captionText | string | Caption text |
| publishedAt | object | null | Publication time. |
| likes | number | null | Like count. |
| commentsCount | number | null | Platform-reported comment total; not the number billed. |
| video | object | null | Video |
| redditPostId | string | Reddit post id |
| id36 | string | null | Id36 |
| url | string | null | Content URL. |
| linkUrl | string | null | Link url |
| domain | string | null | Domain |
| subreddit | string | null | Subreddit name without r/. |
| flair | string | null | Flair |
| ups | number | null | Ups |
| upvoteRatio | number | null | Upvote ratio |
| numCrossposts | number | null | Num crossposts |
| editedAt | object | null | Edited at |
| isSelf | boolean | Is self |
| isVideo | boolean | Is video |
| over18 | boolean | Over18 |
| spoiler | boolean | Spoiler |
| stickied | boolean | Stickied |
| locked | boolean | Locked |
| archived | boolean | Archived |
| distinguished | string | null | Distinguished |
| postHint | string | null | Post hint |
| thumbnail | string | null | Thumbnail |
| previewImage | string | null | Preview image |
| redditVideo | object | null | Reddit video |
| gallery | object[] | Gallery |
data.post.publishedAt Fields
| Field | Type | Description |
|---|---|---|
| text | string | null | Text value. |
| value | number | null | Parsed value. |
data.post.video Fields
| Field | Type | Description |
|---|---|---|
| src | string | null | Src |
| preview | string | null | Preview |
| poster | string | null | Poster |
data.post.editedAt Fields
| Field | Type | Description |
|---|---|---|
| text | string | null | Text value. |
| value | number | null | Parsed value. |
data.post.redditVideo Fields
| Field | Type | Description |
|---|---|---|
| hlsUrl | string | Hls url |
| fallbackUrl | string | Fallback url |
| dashUrl | string | Dash url |
| width | number | Width |
| height | number | Height |
| duration | number | Duration |
data.post.gallery[] Fields
| Field | Type | Description |
|---|---|---|
| url | string | Content URL. |
| width | number | null | Width |
| height | number | null | Height |
| caption | string | null | Caption |
data.comments[] Fields
| Field | Type | Description |
|---|---|---|
| time | object | null | Publication time. |
| content | string | null | Content text; may be null for records without text. |
| score | number | null | Comment or post score. |
| avatar | null | Avatar URL. |
| nickname | string | null | Author display name. |
| profileUrl | string | null | Author profile URL. |
| id | string | Record identifier. |
| parentId | string | null | Parent post or comment identifier. |
| depth | number | Comment nesting depth; 0 is a root comment. |
| replyCount | number | Platform-reported reply count. |
| url | string | null | Content URL. |
| replys | object[] | Nested replies. |
data.comments[].time Fields
| Field | Type | Description |
|---|---|---|
| text | string | null | Text value. |
| value | number | null | Parsed value. |
data.comments[].replys[] Fields
| Field | Type | Description |
|---|---|---|
| time | object | null | Publication time. |
| content | string | null | Content text; may be null for records without text. |
| score | number | null | Comment or post score. |
| avatar | null | Avatar URL. |
| nickname | string | null | Author display name. |
| profileUrl | string | null | Author profile URL. |
| id | string | Record identifier. |
| parentId | string | null | Parent post or comment identifier. |
| depth | number | Comment nesting depth; 0 is a root comment. |
| replyCount | number | Platform-reported reply count. |
| url | string | null | Content URL. |
| replys | object[] | Nested replies. |
data.pagination Fields
| Field | Type | Description |
|---|---|---|
| comments | object | Root comments in comment mode. |
data.pagination.comments Fields
| Field | Type | Description |
|---|---|---|
| cursor | string | null | Continuation cursor from the previous response. Pass the value unchanged. |
| hasMore | boolean | Whether more results are available. |
Request Example
Response Example
This excerpt shows the first item of each list. Long text and URLs are shortened; pointCost is the charge for the complete response. The playground contains the full schema.
Points Usage
0.8 points per post, video or business. Included comments, replies and author details are free.
Empty results and failed requests are not charged. Duplicate IDs are counted once within a response. Separate calls and pages are billed separately. See Social Media Reviews API billing.

