List Comments
reddit.comments.list
Recent comments from one or more subreddits (or all of Reddit), newest first, with a cursor for the next page.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"limit":25,"subreddits":"SaaS"},"capability":"reddit.comments.list"}'
Input
| Field | Type | Required | Description |
|---|---|---|---|
after
| string | optional | Opaque cursor from a previous result's "next". |
limit
| integer | optional | Page size, 1-100 (default 50). |
subreddits
| string | required | Comma-separated subreddit names (no leading r/), or the literal "all" for all of Reddit. |
Output
| Field | Type | Required | Description |
|---|---|---|---|
items
| array<object> | required | Comment objects, newest first. |
items[].author
| string | null | required | Username; null if deleted/removed. |
items[].body
| string | required | Comment text. |
items[].created_utc
| integer | required | Creation time, Unix seconds UTC. |
items[].id
| string | required | Stable unique id and dedup key (e.g. t1_xyz789). |
items[].nsfw
| boolean | required | |
items[].parent_permalink
| string | null | required | Absolute URL of the parent post; null if unknown. |
items[].parent_title
| string | null | required | Title of the post the comment is on; null if unknown. |
items[].permalink
| string | required | Absolute URL to the comment. |
items[].score
| integer | required | |
items[].subreddit
| string | required | Subreddit name, no r/. |
items[].type
| string | required | |
next
| string | null | required | Opaque cursor for the next (older) page, or null when there are no older items. |