Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Reddit User Comments

API dokümanları
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.

Fiyat
Başlangıç fiyatı $0.0006USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 3 isteğe bağlı

Oynatma Alanı

Girdi
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. Aralık: 1 ile 100 arasında.
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it back to fetch the next page.
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
RedditKullanım başına $0.0006'den itibarenJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON

Kılavuzlar:Best Reddit API in 2026: Pricing Compared

Sorular

SSS

Reddit User Comments API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/reddit/user-comments adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Reddit User Comments API'sinin fiyatı nedir?

çağrı başına $0.0006'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Reddit User Comments API'si hangi parametreleri kabul eder?

Gerekli: username (string). İsteğe bağlı: sort (new, top, hot, controversial arasından biri), limit (integer) ve cursor (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Reddit User Comments API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Reddit geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Reddit User Comments, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Reddit API erişimi için ayrıca başvuru yapmanız gerekmez.