API para Reddit: Comentários do usuário
Liste os comentários de um usuário do Reddit pelo nome de usuário, ordenados por new, top, hot ou controversial, com o título do post pai e o subreddit em cada item e paginação por cursor. O texto do comentário vem como uma prévia de cerca de 300 caracteres, não o corpo completo, e este endpoint não traz permalink por comentário; use reddit.post_comments para o corpo completo e as URLs dos comentários de um post.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"comments": [
{
"author": "Alex Rivera",
"bodyPreview": "A short example description of this item.",
"createdUtc": 12.5,
"id": "a1b2c3d4",
"postId": "a1b2c3d4",
"postTitle": "Example title",
"score": 5,
"subreddit": "example"
}
],
"nextCursor": "example"
},
"found": true,
"reason": "not_found"
}interface RedditUserCommentsResponse {
data: {
comments: {
author: string;
bodyPreview?: string;
createdUtc: number;
id: string;
postId?: string;
postTitle?: string;
score?: number;
subreddit?: string;
}[];
nextCursor: string | null;
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/reddit.user_comments \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"username":"spez"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| username | string | "spez"Nome de usuário do Reddit, sem o prefixo u/. Exemplo: "spez". |
| cursor | string | Cursor de paginação opaco vindo do nextCursor de uma resposta anterior. Omita na primeira página; envie-o de volta para buscar a próxima. |
| limit | integer | Número máximo de comentários nesta resposta (um limite por página, não um total). O padrão é 25. |
| sort | enum | Ordem dos comentários do usuário. O padrão é new (mais recentes primeiro). |
| Resposta | ||
| data | object | One page of the user's comments, or null when the user was not found. |
| data.comments | object[] | The user's comments in feed order (newest first by default). Each item carries a truncated body preview plus the parent post it was made on; there is no per-comment permalink available from this endpoint. Populated whenever the provider has data for the entity. |
| data.comments[].author | string | Commenter username, without the u/ prefix. Populated whenever the provider has data for the entity. |
| data.comments[].bodyPreview | string | A preview of the comment text, not the full comment body: the upstream truncates it to roughly 300 characters and cuts mid-word. It is plain text rather than Markdown, and it is empty on the occasional comment for which the upstream returns no preview at all. For full comment bodies and comment permalinks, use the reddit.post_comments SKU against the parent post. |
| data.comments[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.comments[].id | string | Reddit comment ID (base-36, without the t1_ prefix). Populated whenever the provider has data for the entity. |
| data.comments[].postId | string | Reddit post ID of the thread the comment was made on (base-36, without the t3_ prefix). Pass it to reddit.post or reddit.post_comments for the full thread. Populated whenever the provider has data for the entity. |
| data.comments[].postTitle | string | Title of the thread the comment was made on. Populated whenever the provider has data for the entity. |
| data.comments[].score | integer | Net score (upvotes minus downvotes) on the comment at fetch time. |
| data.comments[].subreddit | string | Subreddit name of the parent thread, without the r/ prefix. Empty when the comment is on a post hosted on a user's own profile (r/u_<name>), which has no subreddit. |
| data.nextCursor | string | Opaque cursor for the next page of this user's comments; pass it back as the `cursor` input to fetch the following page. Null when there are no more pages. |
| found | boolean | Whether the user's comment history was returned. |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0006 |
| Preço /mil req. | USD | US$ 0,60 |
Dúvidas frequentes
Sobre o endpoint Comentários do usuário da API para Reddit
O endpoint Comentários do usuário da AnyAPI para Reddit retorna dados de Reddit em JSON normalizado com uma chamada POST para /v1/run/reddit.user_comments. Liste os comentários de um usuário do Reddit pelo nome de usuário, ordenados por new, top, hot ou controversial, com o título do post pai e o subreddit em cada item e paginação por cursor. O texto do comentário vem como uma prévia de cerca de 300 caracteres, não o corpo completo, e este endpoint não traz permalink por comentário; use reddit.post_comments para o corpo completo e as URLs dos comentários de um post. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 0,60 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Comentários do usuário da API para Reddit feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,1 segundos, em 193 chamadas medidas.