Response fields for Reddit API
Learn about the important response fields that we receive against different endpoints.
Subreddit response fields’ details
Some of the important JSON response fields for the subreddit related endpoints are as follows:
Name | Type | Description |
| string | This is the display name of the subreddit, which reflects on the user side. |
| string | This field contains the ID of the subreddit community. |
| integer | This is the number of subscribers that a subreddit has. |
| string | This is a public description of the subreddit. |
| array | This field contains each post's details of the subreddit. |
| integer | This field contains the number of posts fetched from the subreddit. |
Posts response fields’ details
Some of the important JSON response fields for the Posts related endpoints are as follows:
Name | Type | Description |
| string | This is the post ID against which our post is submitted to the subreddit. |
| string | This field contains the title of the post. |
| string | This field contains the post text. |
| string | This returns the author's name without its type prefix. |
Comments response fields’ details
Some of the important JSON response fields for the comments related endpoints are as follows:
Name | Type | Description |
| string | This is an ID of the comment that was submitted on the post. |
| string | This field contains all the text of the comment. |
| string | This field contains the ID of the post on which the comment was posted. |
| integer | This field contains the count of upvotes. |
| array | This stores all the comment details for a particular post. |
User preferences response fields’ details
Some of the important JSON response fields for User preferences are as follows:
Name | Type | Description |
| string | This field contains the country code of the Reddit user. |
| string | This field contains the layout selected for a particular user. |
| boolean | This includes the condition that whether the user search results should contain eighteen plus content or not. |