Get Recent Comments from a Subreddit
View all Reddit Posts, Comments & Community Data endpoints →Pass a bare community name such as AskReddit in subreddit, without r/ or a URL. Omit cursor initially and reuse the returned meta.cursor for continuation within the same community. The observed response contains meta.status, meta.subreddit, meta.cursor, and a body array of comment records. Rows include id, name, author, body, body_html, created_utc, subreddit, score, ups, parent_id, link_id, link_title, link_permalink, and permalink. Use body for a comment's text and created_utc for its Unix creation time in seconds. The checked AskReddit feed returned 25 recent comments, including one created seconds before the request. This is a cross-thread comment listing, not a complete reply tree: replies was an empty string in observed feed records. Use link_permalink to retrieve selected discussion context with post-details. Neither a guaranteed delivery interval nor complete subreddit comment history is established. Keyword matching, alerts, and sentiment labels require client-side processing.
API Features
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
/api/project/reddit/subreddit-comments API Response (JSON)
{} curl -X GET 'https://api.opendata-api.com/api/project/reddit/subreddit-comments?key=<API_KEY>&subreddit=AskReddit'
Query Result
Use Cases
- Run client-side product-name matching over newly collected comments and generate application-owned brand-mention alerts.
- Label a bounded sample of comments by complaint category or sentiment while preserving timestamps for auditability.
- Turn isolated comment matches into a thread-review queue using their source-post titles and link permalinks.
- Build a time-windowed public-discussion sample for qualitative research, deduplicating comment IDs between collection runs.
Frequently asked questions
Should subreddit contain r/ or a full URL?
No. Pass only the community name, for example AskReddit. The live request used that exact bare name and returned a meta.subreddit value of AskReddit.
Is the comment feed shaped like the post-details reply tree?
No. Feed records use body for comment text and include post references such as link_id and link_permalink. The observed replies field was an empty string. Post-details uses content and nested replies arrays, so parse the two endpoints separately.
Does this endpoint provide real-time alerts or sentiment scores?
It returns comment data. The live feed contained comments created seconds before the request, but no delivery guarantee, built-in alerting, or sentiment classification was established. Schedule bounded polling and perform matching, deduplication, and analysis in your own application.