获取Reddit APP用户资料信息
curl --request GET \
--url https://api.keyapi.ai/v1/reddit/fetch_user_profile \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/reddit/fetch_user_profile"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keyapi.ai/v1/reddit/fetch_user_profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/reddit/fetch_user_profile")
.header("Authorization", "Bearer <token>")
.asString();{
"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"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}Reddit 用户与社区
获取Reddit APP用户资料信息
获取指定用户的详细资料信息。
GET
/
v1
/
reddit
/
fetch_user_profile
获取Reddit APP用户资料信息
curl --request GET \
--url https://api.keyapi.ai/v1/reddit/fetch_user_profile \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/reddit/fetch_user_profile"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keyapi.ai/v1/reddit/fetch_user_profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/reddit/fetch_user_profile")
.header("Authorization", "Bearer <token>")
.asString();{
"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"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙1 credits每次请求
复制给 AI
🤖 为什么还要自己写代码?
让 AI 来处理重复工作。点击按钮即可复制一段整理好的提示词,用于 ChatGPT、Claude 或你常用的 AI 助手。
授权
接口鉴权凭证。请在请求 Header 中传入 Authorization: Bearer <YOUR_API_KEY>。
可在 Dashboard 获取你的 API Key。
响应
请求成功
The response is of type object.

