用户与达人Reddit用户 · 资料
Reddit 用户公开资料
按用户名读取有限的公开资料与汇总计数。
POST
/v1/reddit/users/profile英文名称: Reddit public user profile · User · Profile Read an allowlisted public profile and aggregate snapshot by username.reddit.users.profile@v1
在线试用
这个接口即将上线
我们正在做上线前的检查。上线后可以在这里直接试用,并按上方价格计费;在此之前不会产生任何费用。你可以先阅读参数和返回示例。
登录后用真实参数调用一次,结果和扣费会显示在这里。
安全验证
正在加载安全验证…
正在确认实时执行状态…
执行结果
// Result
请求参数
usernamestring必填pattern: "^(?:u\\/)?[a-z0-9_-]{1,20}$"
示例:
"fixture_user"
请求 JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"username": {
"type": "string",
"pattern": "^(?:u\\/)?[a-z0-9_-]{1,20}$"
}
},
"required": [
"username"
],
"additionalProperties": false
}代码示例
安装 SDK:npm i @dataxapi/sdk 或 pip install dataxapi;把 API Key 放进环境变量 DATAXAPI_API_KEY。
curl -X POST https://api.dataxapi.com/v1/reddit/users/profile \
-H "Authorization: Bearer $DATAXAPI_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"username":"fixture_user"}'import { ExactApiClient } from "@dataxapi/sdk";
const client = new ExactApiClient({
baseUrl: "https://api.dataxapi.com",
apiKey: process.env.DATAXAPI_API_KEY,
});
const result = await client.call("reddit_users_profile_v1", {
"username": "fixture_user"
});
console.log(result.data);import os
from dataxapi import ExactApiClient
client = ExactApiClient("https://api.dataxapi.com", os.environ["DATAXAPI_API_KEY"])
result = client.call("reddit_users_profile_v1", {
"username": "fixture_user",
})
print(result["data"])[mcp_servers.dataxapi]
url = "https://api.dataxapi.com/mcp"
bearer_token_env_var = "DATAXAPI_API_KEY"返回示例
200 · application/json
{
"code": 200,
"request_id": "req_example_reddit_public_expansion",
"message": "success",
"data": {
"item": {
"id": "t2_fixtureuser",
"name": "fixture_user",
"prefixed_name": "u/fixture_user",
"created_at": "2015-12-03T18:33:20Z",
"title": "Fixture User",
"bio": "Public profile biography",
"karma": {
"total": 120,
"from_posts": 70,
"from_comments": 50
},
"post_count": 12,
"comment_count": 34,
"is_verified": true,
"is_employee": false,
"is_nsfw": false,
"path": "/user/fixture_user/",
"reddit_url": "https://www.reddit.com/user/fixture_user/"
}
},
"page": {
"next_cursor": null
},
"warnings": [],
"meta": {
"listing_id": "reddit.users.profile",
"version": "v1",
"catalog_release_id": "catalog-production-2026-09-19.b069be57",
"price_book_version": "pricebook-production-2026-09-19.4487e352",
"result_status": "complete",
"charged_amount": "0.02",
"balance_after": "49.70",
"currency": "CNY"
}
}返回字段说明
codenumber- const: 200
request_idstringmessagestring- const: "success"
dataobjectpageobjectwarningsarraymetaobject
返回 JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"code": {
"type": "number",
"const": 200
},
"request_id": {
"type": "string"
},
"message": {
"type": "string",
"const": "success"
},
"data": {
"type": "object",
"properties": {
"item": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prefixed_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"created_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"bio": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"karma": {
"type": "object",
"properties": {
"total": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"from_posts": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"from_comments": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"total",
"from_posts",
"from_comments"
],
"additionalProperties": false
},
"post_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"comment_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"is_verified": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"is_employee": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"is_nsfw": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"reddit_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"prefixed_name",
"created_at",
"title",
"bio",
"karma",
"post_count",
"comment_count",
"is_verified",
"is_employee",
"is_nsfw",
"path",
"reddit_url"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"item"
],
"additionalProperties": false
},
"page": {
"type": "object",
"properties": {
"next_cursor": {
"type": "null"
}
},
"required": [
"next_cursor"
],
"additionalProperties": false
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"meta": {
"type": "object",
"properties": {
"listing_id": {
"type": "string",
"const": "reddit.users.profile"
},
"version": {
"type": "string",
"const": "v1"
},
"catalog_release_id": {
"type": "string",
"minLength": 1
},
"price_book_version": {
"type": "string",
"minLength": 1
},
"result_status": {
"type": "string",
"enum": [
"complete",
"empty"
]
},
"charged_amount": {
"type": "string"
},
"balance_after": {
"type": "string"
},
"currency": {
"type": "string",
"const": "CNY"
}
},
"required": [
"listing_id",
"version",
"catalog_release_id",
"price_book_version",
"result_status",
"charged_amount",
"balance_after",
"currency"
],
"additionalProperties": false
}
},
"required": [
"code",
"request_id",
"message",
"data",
"page",
"warnings",
"meta"
],
"additionalProperties": false
}使用说明
适合
- 已知公开用户名,需要为一条相关内容补充有限账号背景。
不适合
- 不用于身份还原、敏感属性推断、监控、招聘筛选或信任评分。
已知限制
- 只返回公开白名单字段;Karma 不是精确票数或可信度评分。
- 计数是调用时快照,可能缺失或变化。
- 禁止用该接口构建敏感画像或尝试去匿名化。
计费规则
¥0.02 / 次。完整或确认空结果收费;失败不收费。
查看全部价格 →