usernamestringобязательно
Reddit username, without the u/ prefix. Example: "spez".
https://api.sandbase.ai/v1/api/reddit/user-commentsList a Reddit user's comments by username, sorted by new, top, hot, or controversial, with the parent post title and subreddit on every item and cursor pagination. Comment text may be truncated to a roughly 300-character preview, and this endpoint carries no per-comment permalink; use reddit.post_comments for full comment bodies and comment URLs on a given post.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Returns a page of a Reddit user's comments, each with a text preview, score, timestamp, and the parent post's title and subreddit. It needs a Reddit username without the u/ prefix.
sort to top.curl -X POST "https://api.sandbase.ai/v1/api/reddit/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, without the u/ prefix. Example: "spez". |
cursor | string | No | Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it back to fetch the next page. |
limit | integer | No | Page size to ask for (up to 100, default 25). Some sources honor it; others always return their whole page of about 25 comments. A page is never trimmed after the call, so pass nextCursor back as cursor to continue exact |
sort | string | No | Sort order for the user's comments. Defaults to new (most recent first). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"comments": [
{
"author": "spez",
"bodyPreview": "Pretty simple. For people who are already coming to Reddit every week, we have t…",
"createdUtc": 1793324526,
"id": "19ruo33ofgh8i",
"postId": "1xiupuc",
"postTitle": "Reddit Announces Q3’26 Earnings (plus AMA!)",
"score": -9,
"subreddit": "RDDT"
}
],
"nextCursor": "cur_uHC_PYNAJi9Hh4rl4wAw2w"
},
"found": true
}
| Field | Meaning |
|---|---|
data.comments[].id | Identifier of the comment. |
data.comments[].bodyPreview | Start of the comment text. It can be cut short and ends with an ellipsis when truncated. |
data.comments[].createdUtc | Time the comment was posted, as a Unix timestamp. |
data.comments[].score | Comment score. It can be negative. |
data.comments[].postId / data.comments[].postTitle | ID and title of the post the comment was made on. |
data.comments[].subreddit | Subreddit of the parent post. It can be an empty string. |
data.comments[].author | Username of the comment author. |
data.nextCursor | Cursor for the next page. Pass it back as cursor. |
found | true when the user lookup returned data. |
data.nextCursor as cursor to fetch the next page. Keep the same username and sort.postId to get full comment bodies and comment URLs.subreddit can be empty on some items, so do not rely on it being set.Billed at the actual cost of each call, about $0.0006 for the request above. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/user-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 25,
"username": "spez"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
usernamestringобязательноReddit username, without the u/ prefix. Example: "spez".
sortstringSort order for the user's comments. Defaults to new (most recent first).
Возможные значения: new, top, hot, controversial
limitintegerPage size to ask for (up to 100, default 25). Some sources honor it; others always return their whole page of about 25 comments. A page is never trimmed after the call, so pass nextCursor back as cursor to continue exactly where this response ended.
По умолчанию: 25
cursorstringOpaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it back to fetch the next page.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Reddit User CommentsЭтот API Reddit | От $0.0006 за запрос | JSON |
Reddit | $0.001 за запрос | JSON |
Reddit | $0.001 за запрос | JSON |
Reddit | $0.001 за запрос | JSON |
Reddit | $0.001 за запрос | JSON |
Reddit | $0.001 за запрос | JSON |
Руководства:Best Reddit API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/reddit/user-comments, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.0006 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: username (string). Необязательные: sort (один из new, top, hot, controversial), limit (integer) и cursor (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Reddit User Comments работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Reddit.