Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Reddit Profile

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

Harga
Dari $0.0008USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 1 opsional

Playground

Input
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.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
RedditDari $0.0008 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON

Panduan:Best Reddit API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Reddit Profile?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/reddit/profile dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Reddit Profile?

Mulai dari $0.0008 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Reddit Profile?

Wajib: username (string). Opsional: requireFields (array). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Reddit Profile?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Reddit?

Tidak. Reddit Profile berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Reddit secara terpisah.