usernamestringerforderlich
Reddit username
https://api.sandbase.ai/v1/api/reddit/app/user-commentsReturns a list of comments submitted by a specified Reddit user. Supports multiple sorting options, customizable page sizes, and pagination tokens.
[
{
"data": {
"redditorInfoByName": {
"__typename": "Redditor",
"comments": {
"edges": [],
"pageInfo": {
"__typename": "PageInfo",
"endCursor": null,
"hasNextPage": false
}
}
}
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
Returns a page of comments written by one Reddit user, each with its text preview, score, creation time and the post it was made on. The only required input is username, and you can add sort, page_size and after to control the list.
spez to track public statements.score values to spot the most upvoted or downvoted replies from a profile.curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/user-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "spez"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Reddit username |
after | string | No | Pagination parameter for fetching next page |
need_format | boolean | No | Whether to clean and format the data |
page_size | integer | No | Number of comments per page, default 25 |
sort | string | No | Sort method, options: NEW (newest), TOP (top rated), HOT (hot), CONTROVERSIAL (controversial) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"redditorInfoByName": {
"__typename": "Redditor",
"comments": {
"edges": [
{
"node": {
"__typename": "Comment",
"authorInfo": {
"displayName": "spez"
},
"commentStats": null,
"content": {
"html": null,
"preview": "Pretty simple. For people who are already coming to Reddit every week, we have t…"
},
"createdAt": "2026-10-29T22:42:06.463000+0000",
"id": "t1_19ruo33ofgh8i",
"postInfo": {
"__typename": "SubredditPost",
"id": "t3_1xiupuc",
"subreddit": {
"prefixedName": "r/RDDT"
},
"title": "Reddit Announces Q3’26 Earnings (plus AMA!)"
},
"score": -8
}
}
],
"pageInfo": {
"__typename": "PageInfo",
"endCursor": "dDFfb3B0ZnlxbA==",
"hasNextPage": true
}
}
}
}
| Field | Meaning |
|---|---|
redditorInfoByName.comments.edges[].node.id | Comment ID in the form t1_.... |
redditorInfoByName.comments.edges[].node.content.preview | Shortened text of the comment. The full text may be cut off with an ellipsis. |
redditorInfoByName.comments.edges[].node.content.html | HTML version of the comment. It was null in this response. |
redditorInfoByName.comments.edges[].node.score | Score of the comment. It can be negative. |
redditorInfoByName.comments.edges[].node.createdAt | Time the comment was created, as an ISO 8601 string with a +0000 offset. |
redditorInfoByName.comments.edges[].node.authorInfo.displayName | Username of the comment author. |
redditorInfoByName.comments.edges[].node.postInfo.id / redditorInfoByName.comments.edges[].node.postInfo.title | ID (form t3_...) and title of the post the comment was left on. |
redditorInfoByName.comments.edges[].node.postInfo.subreddit.prefixedName | Subreddit of the post, such as r/RDDT. It is absent when postInfo.__typename is ProfilePost. |
redditorInfoByName.comments.pageInfo.hasNextPage | true when more comments are available after this page. |
redditorInfoByName.comments.pageInfo.endCursor | Cursor for the last item on this page. Use it as after to get the next page. |
endCursor value from pageInfo as after in the next request, and stop when hasNextPage is false.postInfo.__typename set to ProfilePost and no subreddit object.sort accepts NEW, TOP, HOT and CONTROVERSIAL. page_size defaults to 25.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/user-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"username": "example"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
usernamestringerforderlichReddit username
afterstringPagination parameter for fetching next page
need_formatbooleanWhether to clean and format the data
page_sizeintegerNumber of comments per page, default 25
sortstringSort method, options: NEW (newest), TOP (top rated), HOT (hot), CONTROVERSIAL (controversial)
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"redditorInfoByName": {
"__typename": "Redditor",
"comments": {
"edges": [],
"pageInfo": {
"__typename": "PageInfo",
"endCursor": null,
"hasNextPage": false
}
}
}
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Reddit User CommentsDiese API Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Anleitungen:Best Reddit API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/reddit/app/user-comments mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: username (string). Optional: after (string), need_format (boolean), page_size (integer) und sort (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Reddit User Comments läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Reddit API beantragen.