跳到主要内容
Reddit 全部接口
内容详情RedditReddit 社区 · 资料

Reddit 社区资料

按名称读取公开社区资料与活动快照。

POST/v1/reddit/subreddits/profile

英文名称: Reddit community profile · Subreddit · Profile Read public community metadata and activity snapshots by subreddit name.
reddit.subreddits.profile@v1

按次价格

¥0.02/ 次

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

正在核验实时状态

在线试用

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

安全验证

正在加载安全验证…

正在确认实时执行状态…

执行结果

// Result

请求参数

subredditstring必填

pattern: "^(?:r\\/)?[a-z0-9_]{2,21}$"

示例: "OpenAI"

请求 JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "subreddit": {
      "type": "string",
      "pattern": "^(?:r\\/)?[a-z0-9_]{2,21}$"
    }
  },
  "required": [
    "subreddit"
  ],
  "additionalProperties": false
}

代码示例

安装 SDK:npm i @dataxapi/sdk 或 pip install dataxapi;把 API Key 放进环境变量 DATAXAPI_API_KEY。

curl -X POST https://api.dataxapi.com/v1/reddit/subreddits/profile \
  -H "Authorization: Bearer $DATAXAPI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"subreddit":"OpenAI"}'

返回示例

200 · application/json
{
  "code": 200,
  "request_id": "req_example_reddit_public_expansion",
  "message": "success",
  "data": {
    "item": {
      "id": "t5_openai",
      "name": "OpenAI",
      "prefixed_name": "r/OpenAI",
      "title": "OpenAI",
      "description": "Public community description",
      "subscribers": 9000000,
      "weekly_visitors": 150000,
      "weekly_contributions": 20000,
      "created_at": "2008-12-14T00:00:00Z",
      "type": "PUBLIC",
      "allowed_post_types": [
        "LINK",
        "TEXT"
      ],
      "is_nsfw": false,
      "is_quarantined": false,
      "icon_url": "https://styles.redditmedia.com/icon.png",
      "path": "/r/OpenAI/",
      "reddit_url": "https://www.reddit.com/r/OpenAI/"
    }
  },
  "page": {
    "next_cursor": null
  },
  "warnings": [],
  "meta": {
    "listing_id": "reddit.subreddits.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_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": {
        "item": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string"
                },
                "prefixed_name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "subscribers": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "weekly_visitors": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "weekly_contributions": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "allowed_post_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "is_nsfw": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_quarantined": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "icon_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "path": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reddit_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "prefixed_name",
                "title",
                "description",
                "subscribers",
                "weekly_visitors",
                "weekly_contributions",
                "created_at",
                "type",
                "allowed_post_types",
                "is_nsfw",
                "is_quarantined",
                "icon_url",
                "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.subreddits.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
}

使用说明

适合

  • 已知 Subreddit 名称,需要判断社区主题、规模与近期公开活动。

不适合

  • 不用于推断成员画像、私密社区内容或社区规则合规结论。

已知限制

  • 订阅人数与每周活动是调用时的公开快照,不代表市场规模或需求。
  • 每周访客与贡献数可能缺失,未知值返回 null。
  • 只返回资料白名单,不公开 Provider 或 App 内部字段。

计费规则

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

查看全部价格 →