Reddit 头像 API
按用户名获取 Reddit 用户的头像 URL、karma 和账号年龄。这是最便宜的 Reddit 用户查询;如需简介、奖杯以及帖子和评论数,请用 reddit.profile。
US$0.38/千次请求,按请求付费,无需订阅。
r/webdev·u/wanderlust_mara·
u/wanderlust_mara
Cake day May 15, 2018
48,213 Karma
{"id": "8m2p1q","username": "wanderlust_mara","avatarUrl": "https://styles.redditmedia.com/t5_2qh1u/styles/profileIcon_snoo1a2b3c4d.png","profileUrl": "https://www.reddit.com/user/wanderlust_mara/","createdUtc": 1526342400,"karma": 48213,"postKarma": 31890,"commentKarma": 16323}
价格与服务商
Reddit 头像 API 价格:一个 API,2 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
试一试
一个请求获取 Reddit 头像
这个示例展示了 11 个字段中的 10 个。查看全部字段
{
"found": true,
"data": {
"id": "8m2p1q",
"username": "wanderlust_mara",
"avatarUrl": "https://styles.redditmedia.com/t5_2qh1u/styles/profileIcon_snoo1a2b3c4d.png",
"profileUrl": "https://www.reddit.com/user/wanderlust_mara/",
"createdUtc": 1526342400,
"karma": 48213,
"postKarma": 31890,
"commentKarma": 16323
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- usernamestring
wanderlust_mara
Reddit 用户名,不带 u/ 前缀。示例:"spez"。
响应
JSON,每个字段一个示例值。
The user record, or null when nothing was found.
- avatarUrlstring
https://styles.redditmedia.com/t5_2qh1u/styles/profileIcon_snoo1a2b3c4d.png
URL of the profile avatar image, with sizing and signing query params stripped. Populated whenever the provider has data for the entity.
- commentKarmainteger
16323
Karma earned from comments. Populated whenever the provider has data for the entity.
- createdUtcnumber
1526342400
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
- idstring
8m2p1q
Reddit account ID (base-36, without the t2_ prefix). Populated whenever the provider has data for the entity.
- karmainteger
48213
Total karma across the account, as Reddit reports it. The postKarma and commentKarma fields below are the split it is composed of. Populated whenever the provider has data for the entity.
- postKarmainteger
31890
Karma earned from posts. Populated whenever the provider has data for the entity.
- profileUrlstring
https://www.reddit.com/user/wanderlust_mara/
Absolute reddit.com URL of the profile page. Populated whenever the provider has data for the entity.
- usernamestring
wanderlust_mara
Account username, without the u/ prefix. Populated whenever the provider has data for the entity.
- foundboolean
true
True when the account was found; false when the lookup returned nothing.
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
你在出售这个 API?查看你的接口必须返回的完整数据结构。
常见问题
关于 Reddit 头像 API
AnyAPI 的 Reddit 头像 API 只需一次 POST 请求 /v1/run/reddit.avatar,就以统一格式的 JSON 返回 Reddit 数据。按用户名获取 Reddit 用户的头像 URL、karma 和账号年龄。这是最便宜的 Reddit 用户查询;如需简介、奖杯以及帖子和评论数,请用 reddit.profile。AnyAPI 会在 2 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$0.38 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Reddit 头像 API 调用中有 97.3% 成功,响应时间中位数为 0.9 秒,共测量 10,422 次调用。