Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Reddit Profile

API दस्तावेज़
https://api.sandbase.ai/v1/api/reddit/profile

Fetch a Reddit user's public profile (karma split, post and comment counts, bio, avatar, account age) by username.

मूल्य
से $0.0008USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 1 वैकल्पिक

प्लेग्राउंड

इनपुट
Reddit username, without the u/ prefix. Example: "spez".
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `verified`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Reddit Profile API

Returns the public profile of a Reddit user: karma split, post and comment counts, bio, avatar, trophy count and account creation time. It needs one input, the Reddit username without the u/ prefix.

Use cases

  • Check how old a Reddit account is and how much karma it has before you trust its posts.
  • Pull the bio, avatar and profile link of a user to show on a creator or lead card.
  • Compare post karma and comment karma to see whether an account mostly posts or mostly comments.
  • Flag Reddit employee accounts with the employee field.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/profile" \
  -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 the u/ prefix. Example: "spez".
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example verified, and it is served only by a source that returns every one o

Example response

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

{
  "data": {
    "avatarUrl": "https://styles.redditmedia.com/t5_3k30p/styles/profileIcon_uj015iwx9s7g1.png",
    "bio": "Reddit CEO",
    "commentKarma": 756623,
    "comments": 3228,
    "createdUtc": 1118030400,
    "displayName": "spez",
    "employee": true,
    "followers": 0,
    "id": "1w72",
    "karma": 941388,
    "nsfw": false,
    "postKarma": 184765
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when the username exists. A lookup that finds nothing returns false.
data.username / data.displayNameThe account name and its display name. Both are spez in this example.
data.idReddit's short ID for the user, such as 1w72.
data.karmaTotal karma for the account. It is the sum of postKarma and commentKarma in this example.
data.postKarma / data.commentKarmaKarma earned from posts and from comments.
data.posts / data.commentsNumber of posts and comments on the account.
data.createdUtcAccount creation time as a Unix timestamp in seconds.
data.bio / data.avatarUrl / data.profileUrlThe profile bio text, the avatar image URL and the link to the Reddit profile page.
data.employee / data.verified / data.nsfwBoolean flags for Reddit employee status, verified status and NSFW profile. verified can be null when the serving source does not return it.
data.trophies / data.followersCount of trophies on the profile and the follower count.

Notes

  • Pass username without the u/ prefix, for example spez.
  • Set requireFields to ["verified"] if you need a real verified value. Without it, verified can come back as null.
  • For the content a user wrote, call Reddit User Posts or Reddit User Comments.
  • Reddit User Public Trophies lists the trophies behind the trophies count.

Pricing

Billed at the actual cost of each call, about $0.0008 for the request above. Failed calls are not charged.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Reddit Profileयह API
Reddit
$0.0008 प्रति कॉल सेJSON
Reddit$0.001 प्रति कॉलJSON
Reddit$0.001 प्रति कॉलJSON
Reddit$0.001 प्रति कॉलJSON
Reddit$0.001 प्रति कॉलJSON
Reddit$0.001 प्रति कॉलJSON

गाइड्स:Best Reddit API in 2026: Pricing Compared

प्रश्न

FAQ

Reddit Profile API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/reddit/profile पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Reddit Profile API की लागत कितनी है?

$0.0008 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Reddit Profile API कौन-से parameters स्वीकार करती है?

आवश्यक: username (string)। वैकल्पिक: requireFields (array)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Reddit Profile API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Reddit developer account या API key चाहिए?

नहीं। Reddit Profile SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Reddit API access के लिए आवेदन करने की आवश्यकता नहीं है।