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"
}Get detailed profile information for a specified user on Reddit APP
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"
}π€ Why Code When AI Can Do It For You?
Stop writing code like itβs 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.
Reddit username (without the u/ prefix)
Whether to clean/sanitize the data
The response is of type object.