scraper
Back to API docs

Overview

  • Overview

APIs

  • POSTPost
  • POSTSearch
  • POSTSubreddit
  • POSTUser Posts
  • POSTUser Comments
  • POSTCommunity

Reddit User Comments

1 credit

List the comments a Reddit user has written.

POST/api/v1/tools/reddit/user-comments

Parameters

usernamestringrequired

Reddit username, with or without the u/ prefix (e.g. "spez").

sortstring

Sort: hot, new, top, rising, relevance, or comments. For subreddit feeds and search, rising returns the hot order. Search-only sorts map onto hot for feeds. Defaults to hot.

timestring

Time window for top and controversial: hour, day, week, month, year, or all (default). A window narrower than "all" also filters the whole walk.

maxItemsnumber

Maximum number of comments to return. Other sorts and time windows are walked and deduplicated when needed. Defaults to 50. Set 0 to return everything the call can fetch. Upper bound is determined by your plan.

depthstring

Field preset used when fields is omitted: basic, the default, returns every field except the HTML text, and detailed also returns it. fields overrides depth.

fieldsstring[]

Comment fields to include. Overrides depth. Use ["*"] for all fields, including the HTML text.

Response Schema

dataobject

User comments result

commentsobject[]

Comments in listing order. Fields depend on depth and fields. The main fields are listed below. depth is absent here because Reddit does not report it for a user feed.

countnumber

Number of comments returned

truncatedboolean

True when the request budget stopped the walk before maxItems was met. This includes a maxItems of 0.

metaobject

Request metadata

toolstring

Tool name (reddit-user-comments)

creditsUsednumber

Credits consumed (1)

requestIdstring

Unique request ID

Request

curl -X POST https://scraper.run/api/v1/tools/reddit/user-comments \
-H "Authorization: Bearer sc_live_..." \
-H "Content-Type: application/json" \
-d '{
"username": "spez",
"maxItems": 25
}'

Response Example

{
"data": {
"comments": [
{
"type": "comment",
"id": "xyz789",
"fullName": "t1_xyz789",
"parentId": "t3_abc123",
"linkId": "t3_abc123",
"linkTitle": "What programming language should I learn in 2026?",
"subreddit": "programming",
"subredditId": "t5_2fwo",
"author": "spez",
"authorFullName": "t2_1w72",
"authorPremium": false,
"body": "Rust has a steep learning curve but it is worth it for systems programming.",
"score": 89,
"controversiality": 0,
"totalAwardsReceived": 0,
"createdUtc": 1775664600,
"created": "2026-04-08T16:10:00.000Z",
"edited": false,
"permalink": "https://www.reddit.com/r/programming/comments/abc123/what_programming_language/xyz789/",
"isSubmitter": false,
"stickied": false,
"scoreHidden": false,
"collapsed": false
}
],
"count": 1,
"truncated": false
},
"meta": {
"tool": "reddit-user-comments",
"creditsUsed": 1,
"requestId": "req_abc123"
}
}