API para Reddit: Avatar
Obtenha a URL da foto de perfil, o karma e a idade da conta de um usuário do Reddit pelo nome de usuário. A consulta de usuário do Reddit mais barata; use reddit.profile para bio, troféus e contagens de posts e comentários.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"avatarUrl": "https://example.com/image.jpg",
"commentKarma": 12500,
"createdUtc": 12.5,
"id": "a1b2c3d4",
"karma": 42,
"postKarma": 248,
"profileUrl": "https://example.com/page",
"username": "alex_rivera"
},
"found": true,
"reason": "not_found"
}interface RedditAvatarResponse {
data: {
avatarUrl?: string;
commentKarma?: number;
createdUtc?: number;
id: string;
karma?: number;
postKarma?: number;
profileUrl?: string;
username: string;
} | 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.avatar \
-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". |
| Resposta | ||
| data | object | The user 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.commentKarma | integer | Karma earned from comments. 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.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.postKarma | integer | Karma earned from posts. 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.username | string | Account username, without the u/ prefix. Populated whenever the provider has data for the entity. |
| 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,00038 |
| Preço /mil req. | USD | US$ 0,38 |
Dúvidas frequentes
Sobre o endpoint Avatar da API para Reddit
O endpoint Avatar da AnyAPI para Reddit retorna dados de Reddit em JSON normalizado com uma chamada POST para /v1/run/reddit.avatar. Obtenha a URL da foto de perfil, o karma e a idade da conta de um usuário do Reddit pelo nome de usuário. A consulta de usuário do Reddit mais barata; use reddit.profile para bio, troféus e contagens de posts e comentários. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 0,38 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Avatar da API para Reddit feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,8 segundos, em 26.041 chamadas medidas.