Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Reddit User Comments

Dokumentasi API
https://api.sandbase.ai/v1/api/reddit/user-comments

List 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.

Harga
Dari $0.0006USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 3 opsional

Playground

Input
Reddit username, without the u/ prefix. Example: "spez".
Sort order for the user's comments. Defaults to new (most recent first).
1100
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 exactly where this response ended. Rentang: 1 hingga 100.
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it back to fetch the next page.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

Reddit User Comments API

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.

Use cases

  • Review what a public figure has said in recent threads, such as an executive's replies during an AMA.
  • Find a user's highest-scored comments by setting sort to top.
  • Track which subreddits and posts a user comments on most.
  • Pull a user's comment history to check how they engage across communities.

Request

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.

Parameters

NameTypeRequiredDescription
usernamestringYesReddit username, without the u/ prefix. Example: "spez".
cursorstringNoOpaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it back to fetch the next page.
limitintegerNoPage 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
sortstringNoSort order for the user's comments. Defaults to new (most recent first).

Example response

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
}

Response fields

FieldMeaning
data.comments[].idIdentifier of the comment.
data.comments[].bodyPreviewStart of the comment text. It can be cut short and ends with an ellipsis when truncated.
data.comments[].createdUtcTime the comment was posted, as a Unix timestamp.
data.comments[].scoreComment score. It can be negative.
data.comments[].postId / data.comments[].postTitleID and title of the post the comment was made on.
data.comments[].subredditSubreddit of the parent post. It can be an empty string.
data.comments[].authorUsername of the comment author.
data.nextCursorCursor for the next page. Pass it back as cursor.
foundtrue when the user lookup returned data.

Notes

  • Pass data.nextCursor as cursor to fetch the next page. Keep the same username and sort.
  • Comments have no permalink here. Call Reddit Post Comments with the postId to get full comment bodies and comment URLs.
  • subreddit can be empty on some items, so do not rely on it being set.
  • To see the user's posts instead of comments, use Reddit User Posts.

Pricing

Billed at the actual cost of each call, about $0.0006 for the request above. Failed calls are not charged.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
RedditDari $0.0006 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON

Panduan:Best Reddit API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Reddit User Comments?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/reddit/user-comments dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Reddit User Comments?

Mulai dari $0.0006 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Reddit User Comments?

Wajib: username (string). Opsional: sort (salah satu dari new, top, hot, controversial), limit (integer) dan cursor (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Reddit User Comments?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Reddit?

Tidak. Reddit User Comments berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Reddit secara terpisah.