跳到主要内容
Reddit 全部接口
用户与达人Reddit用户活跃社区 · 列表

Reddit 用户活跃社区

按公开用户名读取上游当前给出的活跃社区候选。

POST/v1/reddit/users/active-subreddits

英文名称: Reddit user active communities · Active Subreddit · List Read the upstream's current public active-community candidates for a username.
reddit.users.active.subreddits@v1

按次价格

¥0.02/ 次

完整或确认空结果收费;部分结果和失败不收费。

正在核验实时状态

在线试用

登录后用真实参数调用一次,结果和扣费会显示在这里。

安全验证

正在加载安全验证…

正在确认实时执行状态…

执行结果

// Result

请求参数

usernamestring必填

pattern: "^(?:u\\/)?[a-z0-9_-]{1,20}$"

示例: "DeepFuckingValue"

请求 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/active-subreddits \
  -H "Authorization: Bearer $DATAXAPI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"username":"DeepFuckingValue"}'

返回示例

200 · application/json
{
  "code": 200,
  "request_id": "req_example_reddit_batch5",
  "message": "success",
  "data": {
    "items": [
      {
        "id": "t5_2th52",
        "name": "wallstreetbets",
        "prefixed_name": "r/wallstreetbets",
        "type": "PUBLIC",
        "description": "Public community description",
        "subscribers": 20252672,
        "icon_url": "https://styles.redditmedia.com/community-icon.png",
        "background_color": "#232534",
        "reddit_url": "https://www.reddit.com/r/wallstreetbets/",
        "is_nsfw": false
      }
    ]
  },
  "page": {
    "next_cursor": null
  },
  "warnings": [],
  "meta": {
    "listing_id": "reddit.users.active.subreddits",
    "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.98",
    "currency": "CNY"
  }
}
返回字段说明
codenumber
const: 200
request_idstring
messagestring
const: "success"
dataobject
pageobject
warningsarray
metaobject
返回 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": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "prefixed_name": {
                "type": "string"
              },
              "type": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "subscribers": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "icon_url": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "background_color": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reddit_url": {
                "type": "string"
              },
              "is_nsfw": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "prefixed_name",
              "type",
              "description",
              "subscribers",
              "icon_url",
              "background_color",
              "reddit_url",
              "is_nsfw"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "items"
      ],
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "next_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "next_cursor"
      ],
      "additionalProperties": false
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "listing_id": {
          "type": "string",
          "const": "reddit.users.active.subreddits"
        },
        "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",
            "partial"
          ]
        },
        "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
}

使用说明

适合

  • 已有正当、限定的公开研究目的,需要理解相关账号出现过的社区语境。

不适合

  • 不用于监控、敏感画像、就业筛查、去匿名化或声称完整活动历史。

已知限制

  • 列表是上游当前活动语境候选,不公开计算窗口、权重或完整性。
  • null 或空数组只表示当前接口没有返回候选,不表示用户从未参与社区。
  • 订阅数是社区当前公开字段,不是该用户活跃度分数。

计费规则

¥0.02 / 次。完整或确认空结果收费;部分结果和失败不收费。

查看全部价格 →