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

Reddit User Public Trophies

Documentación de la API
https://api.sandbase.ai/v1/api/reddit/app/user-trophies

Returns a list of public trophies and achievements for a specified Reddit account. Users can supply a username and optionally request cleaned, formatted data.

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

Entorno de pruebas

Entrada
Reddit username (without u/ prefix)
Whether to clean and format the data
SalidaEjemplo
Respuestaoutputs · 1.4 KB · 49 líneas
[
  {
    "data": {
      "redditorInfoByName": {
        "__typename": "Redditor",
        "trophyCase": {
          "categories": {
            "edges": [
              {
                "node": {
                  "__typename": "AchievementTrophyCategory",
                  "trophies": {
                    "edges": [
                      {
                        "node": {
                          "__typename": "AchievementImageTrophy",
                          "id": "600-day-streak",
                          "image": "…",
                          "name": "600-Day Streak"
                        }
                      },
                      {
                        "node": {
                          "__typename": "AchievementImageTrophy",
                          "id": "sharing-pro",
                          "image": "…",
                          "name": "Sharing Pro"
                        }
                      },
                      {
                        "node": {
                          "__typename": "AchievementImageTrophy",
                          "id": "500-day-streak",
                          "image": "…",
                          "name": "500-Day Streak"
                        }
                      },
                      "… 49 more items in the full response"
                    ]
                  }
                }
              }
            ]
          }
        }
      }
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la API

Reddit User Public Trophies API

Returns the public trophies shown on a Reddit user's profile. Each trophy has an ID, a name and an image URL. The only required input is the username, without the u/ prefix.

Use cases

  • Show a user's Reddit trophies and streak badges on an external profile page.
  • Check which streak trophies an account holds, such as 700-Day Streak or 600-Day Streak.
  • Collect trophy image URLs to display achievement icons in a dashboard.
  • Compare the trophy names of several accounts when reviewing community members.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/user-trophies" \
  -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 u/ prefix)
need_formatbooleanNoWhether to clean and format the data

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "redditorInfoByName": {
    "__typename": "Redditor",
    "trophyCase": {
      "categories": {
        "edges": [
          {
            "node": {
              "__typename": "AchievementTrophyCategory",
              "trophies": {
                "edges": [
                  {
                    "node": {
                      "__typename": "AchievementImageTrophy",
                      "id": "700-day-streak",
                      "image": {
                        "url": "https://preview.redd.it/h9a6sd4jhosf1.png?width=500&height=500&auto=webp&s=005d6…"
                      },
                      "name": "700-Day Streak"
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}

Response fields

FieldMeaning
redditorInfoByNameRoot object for the Reddit user that matches the username.
redditorInfoByName.trophyCase.categories.edges[].node.trophies.edges[]List of trophies in one trophy category. Each entry holds a node object with the trophy details.
redditorInfoByName.trophyCase.categories.edges[].node.__typenameType of the trophy category, for example AchievementTrophyCategory.
redditorInfoByName.trophyCase.categories.edges[].node.trophies.edges[].node.nameDisplay name of the trophy, such as Conversation Starter or 700-Day Streak.
redditorInfoByName.trophyCase.categories.edges[].node.trophies.edges[].node.idIdentifier of the trophy. Values can be a number string like 11 or a slug like 700-day-streak.
redditorInfoByName.trophyCase.categories.edges[].node.trophies.edges[].node.image.urlURL of the trophy image.
redditorInfoByName.trophyCase.categories.edges[].node.trophies.edges[].node.__typenameType of the trophy, for example AchievementImageTrophy.

Notes

  • Pass the username without the u/ prefix, for example spez.
  • Trophy IDs are strings. Some are numeric and some are slugs, so treat them as text.
  • The response nests trophies under categories, so loop over the categories first and then over the trophies in each one.
  • To look up more about the same account, call Reddit App User Profile or Reddit User Posts.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
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
Reddit$0.001 por llamadaJSON

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

Preguntas

FAQ

¿Cómo uso la API de Reddit User Public Trophies?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/reddit/app/user-trophies 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 Public Trophies?

$0.001 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 Public Trophies?

Requeridos: username (string). Opcionales: need_format (boolean). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Reddit User Public Trophies?

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 Public Trophies 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.