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

display_name

string

This is the display name of the subreddit, which reflects on the user side.

subreddit_id

string

This field contains the ID of the subreddit community.

subscribers

integer

This is the number of subscribers that a subreddit has.

public_description

string

This is a public description of the subreddit.

children

array

This field contains each post's details of the subreddit.

dist

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

id

string

This is the post ID against which our post is submitted to the subreddit.

title

string

This field contains the title of the post.

selftext

string

This field contains the post text.

author

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

id

string

This is an ID of the comment that was submitted on the post.

body

string

This field contains all the text of the comment.

parent_id

string

This field contains the ID of the post on which the comment was posted.

ups

integer

This field contains the count of upvotes.

children

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

country_code

string

This field contains the country code of the Reddit user.

layout

string

This field contains the layout selected for a particular user.

search_include_over_18

boolean

This includes the condition that whether the user search results should contain eighteen plus content or not.