Reddit Post
Details for the REDDIT_POST link type
Type Value: REDDIT_POST
Status: PRODUCTION
A REDDIT_POST
link type represents an individual post on Reddit. Beyond the baseline attributes (title
, description
, image
), REDDIT_POST
links provide details like the post’s author, the subreddit it belongs to, its content type (image, video, text, etc.), and engagement metrics such as upvotes and comments. This gives you the context needed to create more engaging previews of Reddit content within your application.
What It Includes
When type
is REDDIT_POST
, the response includes a redditPost
object with fields like:
- user: Information about the author, including their username, avatar, and karma (if available).
- subreddit: Data about the community where the post was published, such as its name, subscriber counts, and creation date.
- text: The main textual content of the post (if it’s a text-based post).
- likesCount & commentsCount: Engagement metrics showing how popular or controversial the post might be.
- type: Indicates the post format (e.g.,
IMAGE
,VIDEO
,TEXT
,LINK
), helping you decide how to display or interact with the content. - media: An array of images or videos associated with the post, allowing you to embed multimedia content directly into your UI.
This information lets you surface richer, more contextual previews of Reddit posts, making it easy for users to discover, understand, and engage with the content.
Example Request
Example Response
Special Notes
- Fallback Strategies: If certain fields are missing, Peekalink infers defaults to maintain a consistent preview.
- Post Type & Media: The type field and media array help you customize the display—showing text-only posts differently from image or video posts.
- Author & Subreddit Context: Linking the post to both its author and subreddit offers a richer understanding of the content’s origin and community.
Schema reference
For a full technical breakdown of all fields and validation rules, including detailed JSON schemas, please refer to the API Reference.