API para Reddit: Perfil
Obtenha o perfil público de um usuário do Reddit (karma detalhado, contagens de posts e comentários, bio, avatar, idade da conta) pelo nome de usuário.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"avatarUrl": "https://example.com/image.jpg",
"bio": "A short example description of this item.",
"commentKarma": 12500,
"comments": 12500,
"createdUtc": 12.5,
"displayName": "Alex Rivera",
"employee": true,
"followers": 12500,
"id": "a1b2c3d4",
"karma": 42,
"nsfw": true,
"postKarma": 248,
"posts": 248,
"profileUrl": "https://example.com/page",
"trophies": 42,
"username": "alex_rivera",
"verified": true
},
"found": true,
"reason": "not_found"
}interface RedditProfileResponse {
data: {
avatarUrl?: string;
bio?: string;
commentKarma?: number;
comments?: number;
createdUtc?: number;
displayName?: string;
employee?: boolean;
followers?: number;
id: string;
karma?: number;
nsfw?: boolean;
postKarma?: number;
posts?: number;
profileUrl?: string;
trophies?: number;
username: string;
verified?: boolean | 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.profile \
-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". |
| requireFields | array | Opcional; se omitido, o roteamento não muda e a fonte mais barata atende. Informe os campos de saída que esta requisição precisa poder retornar, por exemplo `verified`, e ela só será atendida por uma fonte que retorne todos eles. Os campos que você não informar continuam sendo retornados sempre que a fonte que atende os tiver. Isso pode aumentar o seu preço: quando a fonte mais barata não consegue retornar um campo informado, uma fonte mais cara atende, e você recebe a cotação e é cobrado pelo preço dela. Um campo informado ainda pode vir ausente em um perfil que realmente não o tenha. Se você informar uma combinação de campos que nenhuma fonte retorna sozinha, a requisição é recusada como entrada inválida, sem cobrança. |
| Resposta | ||
| data | object | The profile record, or null when nothing was found. |
| data.avatarUrl | string | URL of the profile avatar image, with sizing and signing query params stripped. Populated whenever the provider has data for the entity. |
| data.bio | string | Public profile description text. Populated whenever the provider has data for the entity. |
| data.commentKarma | integer | Karma earned from comments. Populated whenever the provider has data for the entity. |
| data.comments | integer | Number of comments the account has contributed. Populated whenever the provider has data for the entity. |
| data.createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity. |
| data.displayName | string | Profile display title. Reddit defaults it to the username when the account has not set one. Populated whenever the provider has data for the entity. |
| data.employee | boolean | True when the account belongs to a Reddit employee. |
| data.followers | integer | Number of profile subscribers. Reddit reports 0 for accounts that do not expose a follower count. |
| data.id | string | Reddit account ID (base-36, without the t2_ prefix). Populated whenever the provider has data for the entity. |
| data.karma | integer | Total karma across the account, as Reddit reports it. The postKarma and commentKarma fields below are the split it is composed of. Populated whenever the provider has data for the entity. |
| data.nsfw | boolean | True when the profile is marked NSFW (over 18). |
| data.postKarma | integer | Karma earned from posts. Populated whenever the provider has data for the entity. |
| data.posts | integer | Number of posts the account has contributed. Populated whenever the provider has data for the entity. |
| data.profileUrl | string | Absolute reddit.com URL of the profile page. Populated whenever the provider has data for the entity. |
| data.trophies | integer | Number of trophies unlocked in the account's trophy case. Populated whenever the provider has data for the entity. |
| data.username | string | Account username, without the u/ prefix. Populated whenever the provider has data for the entity. |
| data.verifiedpode ser exigido | boolean | True when the account is verified by Reddit. Null when the serving source does not report it. |
| found | boolean | True when the account was found; false when the lookup returned nothing. |
| 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,0012 |
| Preço /mil req. | USD | US$ 1,20 |
Dúvidas frequentes
Sobre o endpoint Perfil da API para Reddit
O endpoint Perfil da AnyAPI para Reddit retorna dados de Reddit em JSON normalizado com uma chamada POST para /v1/run/reddit.profile. Obtenha o perfil público de um usuário do Reddit (karma detalhado, contagens de posts e comentários, bio, avatar, idade da conta) pelo nome de usuário. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 99,9% das chamadas ao endpoint Perfil da API para Reddit feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 2,0 segundos, em 999 chamadas medidas.