Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Reddit User Comments

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

Cena
Od $0.0006USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 3 opcjonalnych

Playground

Wejście
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. Zakres: od 1 do 100.
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it back to fetch the next page.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
RedditOd $0.0006 za wywołanieJSON
Reddit$0.001 za wywołanieJSON
Reddit$0.001 za wywołanieJSON
Reddit$0.001 za wywołanieJSON
Reddit$0.001 za wywołanieJSON
Reddit$0.001 za wywołanieJSON

Przewodniki:Best Reddit API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Reddit User Comments?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/reddit/user-comments z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Reddit User Comments?

Od $0.0006 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Reddit User Comments?

Wymagane: username (string). Opcjonalne: sort (jedna z opcji: new, top, hot, controversial), limit (integer) i cursor (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Reddit User Comments?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Reddit lub klucza API?

Nie. Reddit User Comments działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Reddit.