Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Reddit User Public Trophies

Docs 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.

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 1 facultatifs

Bac à sable

Entrée
Reddit username (without u/ prefix)
Whether to clean and format the data
SortieExemple
Réponseoutputs · 1.4 KB · 49 lignes
[
  {
    "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"
                    ]
                  }
                }
              }
            ]
          }
        }
      }
    }
  }
]

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Reddit$0.001 par appelJSON
Reddit$0.001 par appelJSON
Reddit$0.001 par appelJSON
Reddit$0.001 par appelJSON
Reddit$0.001 par appelJSON
Reddit$0.001 par appelJSON

Guides :Best Reddit API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Reddit User Public Trophies ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/reddit/app/user-trophies avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Reddit User Public Trophies ?

$0.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Reddit User Public Trophies accepte-t-elle ?

Obligatoire : username (string). Facultatif : need_format (boolean). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Reddit User Public Trophies ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Reddit ?

Non. Reddit User Public Trophies fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Reddit séparément.