Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Reddit User Active Subreddits

API 文档
https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits

Returns a list of Reddit communities where a specified user participates most actively. Supports optional response formatting.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 1 个可选

Playground

输入
Reddit username
Whether to clean and format the data
输出示例
响应outputs · 134 B · 10 行
[
  {
    "data": {
      "redditorInfoByName": {
        "__typename": "Redditor",
        "activeSubreddits": []
      }
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Reddit User Active Subreddits API

Returns the Reddit communities where a given user is most active. It needs a Reddit username, such as spez. The sample call for spez returned the user object with activeSubreddits set to null.

Use cases

  • Check which subreddits a Reddit user is listed as active in.
  • Confirm that a username resolves to a Redditor record before you call other user APIs.
  • Compare the activeSubreddits value across several usernames to see which accounts have data.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits" \
  -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
need_formatbooleanNoWhether to clean and format the data

Example response

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

{
  "redditorInfoByName": {
    "__typename": "Redditor",
    "activeSubreddits": null
  }
}

Response fields

FieldMeaning
redditorInfoByNameThe user record that matches the username you sent.
redditorInfoByName.__typenameThe object type. The value Redditor confirms the lookup found a Reddit user account.
redditorInfoByName.activeSubredditsThe list of communities where the user is most active. It is null in the sample response for spez, so no active subreddits came back for that call.

Notes

  • Send username without the u/ prefix, as in the example spez.
  • Handle a null value in activeSubreddits in your code, since the sample response for spez returned no list.
  • To see what a user posts or comments, call Reddit User Posts or Reddit User Comments.
  • For account details, call Reddit App User Profile.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
Reddit$0.001 每次调用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

问题

常见问题

如何使用 Reddit User Active Subreddits API?

向 https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Reddit User Active Subreddits API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Reddit User Active Subreddits API 接受哪些参数?

必填:username (string)。 可选:need_format (boolean)。 Parameters 表和本页的 Playground 列出了每个字段。

Reddit User Active Subreddits API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Reddit 开发者账户或 API key 吗?

不需要。Reddit User Active Subreddits 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Reddit API 访问权限。