Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Reddit User Comments

Documentación de la 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.

Precio
Desde $0.0006USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 3 opcionales

Entorno de pruebas

Entrada
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. Rango: de 1 a 100.
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it back to fetch the next page.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
RedditDesde $0.0006 por llamadaJSON
Reddit$0.001 por llamadaJSON
Reddit$0.001 por llamadaJSON
Reddit$0.001 por llamadaJSON
Reddit$0.001 por llamadaJSON
Reddit$0.001 por llamadaJSON

Guías:Best Reddit API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Reddit User Comments?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/reddit/user-comments con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Reddit User Comments?

Desde $0.0006 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Reddit User Comments?

Requeridos: username (string). Opcionales: sort (una de new, top, hot, controversial), limit (integer) y cursor (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Reddit User Comments?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Reddit?

No. Reddit User Comments funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Reddit por separado.