Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Reddit Profile

Documentación de la 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.

Precio
Desde $0.0008USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
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.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
RedditDesde $0.0008 por llamadaJSON
Reddit$0.001 por llamadaJSON
Reddit$0.001 por llamadaJSON
Reddit$0.001 por llamadaJSON
Reddit$0.001 por llamadaJSON
Reddit$0.001 por llamadaJSON

Guías:Best Reddit API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Reddit Profile?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/reddit/profile con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Reddit Profile?

Desde $0.0008 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Reddit Profile?

Requeridos: username (string). Opcionales: requireFields (array). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Reddit Profile?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Reddit?

No. Reddit Profile funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Reddit por separado.