Reddit App Fetch Subreddit Info

2.07 credits/call
ae_reddit_app_fetch_subreddit_info

Retrieve detailed information about a Reddit subreddit, such as its description, subscriber count, creation time, and rules when available. Inputs (all optional): - subreddit_name: Bare subreddit name without r/, for example "pics" or "AskReddit". Use 2–21 ASCII letters, digits, or underscores. Default: "pics". - language: Preferred response language as an IETF language tag, such as "en-US". Must be 2–16 characters and match ^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$. Default: "en-US". - need_format: Whether to request data cleaning and formatting. Default: false. Returns: A JSON response whose data contains the subreddit metadata. The exact fields are not fixed by the documented schema, may vary, and data may be null. This tool retrieves community information rather than posts or comments. Example: subreddit_name="pics", language="en-US", need_format=false.

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.07 credits/call

2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
languagestringNo返回内容使用的语言,采用 IETF 语言标签;默认 en-US / Preferred response language as an IETF language tag; default: en-USen-US
need_formatbooleanNo是否需要清洗数据/Whether to clean and format the datafalse
subreddit_namestringNo版块名称/Subreddit namepics

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_reddit_app_fetch_subreddit_info' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "need_format": true,
    "subreddit_name": "oatmilk"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "subredditInfoByName": {
      "activeCount": 0,
      "allowedMediaInComments": [
        "VIDEO"
      ],
      "allowedPostTypes": [
        "LINK"
      ],
      "authorFlairSettings": {
        "isEnabled": true,
        "isOwnFlairEnabled": false,
        "isSelfAssignable": false
      },
      "communityLeaderboard": {
        "isEnabled": true
      },
      "id": "t5_pxnj5"
    }
  },
  "docs": "https://api.tikhub.io/#/Reddit-APP-API/fetch_subreddit_info_api_v1_reddit_app_fetch_subreddit_info_get",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "request_id": "466a1aed-56bd-407a-a5de-1ede1f09ef3c"
}

This example shows part of the response. Copied content is valid JSON.