跳转到主要内容
GET
/
v1
/
reddit
/
fetch_user_profile
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/reddit/fetch_user_profile?username=spez&need_format=false' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "redditorInfoByName": {
      "__typename": "Redditor",
      "id": "t2_1w72",
      "name": "spez",
      "prefixedName": "u/spez",
      "isFriend": false,
      "isEmployee": true,
      "isAcceptingChats": true,
      "isAcceptingFollowers": true,
      "isAcceptingPMs": true,
      "isVerified": true,
      "isBlocked": false,
      "accountType": "USER",
      "profile": {
        "createdAt": "2005-06-06T04:00:00.000000+0000",
        "subscribersCount": 0,
        "allowedPostTypes": [
          "LINK",
          "IMAGE",
          "VIDEO",
          "TEXT",
          "SPOILER",
          "POLL",
          "GALLERY"
        ],
        "isUserBanned": false,
        "isContributor": false,
        "isDefaultIcon": false,
        "isDefaultBanner": false,
        "path": "/user/spez/",
        "isNsfw": false,
        "title": "spez",
        "publicDescriptionText": "Reddit CEO",
        "isSubscribed": false,
        "moderatorsInfo": {
          "edges": [
            {
              "node": {
                "id": "t2_1w72"
              }
            },
            {
              "node": {
                "id": "t2_3gkovlht"
              }
            }
          ]
        },
        "description": null,
        "socialLinks": [],
        "styles": {
          "icon": "https://styles.redditmedia.com/t5_3k30p/styles/profileIcon_uj015iwx9s7g1.png?width=64&height=64&frame=1&auto=webp&crop=64:64,smart&s=0af32bd27feadee648af9434f5d8ffa782225a45",
          "legacyPrimaryColor": null,
          "legacyIcon": {
            "url": "https://styles.redditmedia.com/t5_3k30p/styles/profileIcon_uj015iwx9s7g1.png?width=256&height=256&frame=1&auto=webp&crop=256:256,smart&s=b3afd3e423e96bcdc7e3c49d60a60a50dc2903aa",
            "dimensions": {
              "width": 256,
              "height": 256
            }
          },
          "profileBanner": null
        }
      },
      "profileInfo": {
        "__typename": "Profile"
      },
      "profileExemptedExperiments": [],
      "isProfileContentFiltered": true,
      "karma": {
        "total": 935632,
        "fromPosts": 181185,
        "fromComments": 754447
      },
      "contributionStats": {
        "postCount": 817,
        "commentCount": 334
      },
      "snoovatarIcon": null,
      "trophyCase": {
        "name": "Trophies",
        "totalUnlocked": 48
      },
      "contributorPublicProfile": {
        "tier": "NON_CONTRIBUTOR"
      },
      "isGilded": true,
      "isPremiumAvatarTreatment": true
    }
  },
  "requestId": "4f648e74-3d5e-4f12-9524-36ec85e408f7"
}
🪙1 credit每次请求

Copy for AI

🤖 让 AI 帮你写调用代码

点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。

授权

Authorization
string
header
必填

接口鉴权凭证。请在请求 Header 中传入 Authorization: Bearer <YOUR_API_KEY>。 可在 Dashboard 获取你的 API Key。

查询参数

username
string
必填

Reddit用户名(不带u/前缀)

示例:

"spez"

need_format
boolean
默认值:false

是否需要清洗数据

响应

请求成功

The response is of type object.