Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Subreddit Details

伺服器:https://openapi.felo.ai
用戶端程式庫

Reddit

​

Public communities, posts, comments and search.

Subreddit Details

​

Returns metadata about one subreddit, by name or by URL: subreddit_id, display_name, subscribers, weekly_active_users, weekly_contributions, description, rules, icon_img, header_img, advertiser_category, submit_text and created_at. Use it to size a community or read its rules before posting anything elsewhere. The name is case-sensitive, so AskReddit resolves and askreddit does not. It returns no posts at all: for those call get_reddit_subreddit, or get_reddit_subreddit_search to query within the community.

查詢參數
  • subreddit
    類型: string

    Subreddit name. MUST be case sensitive. So 'AskReddit' not 'askreddit'.

  • url
    類型: string

    Subreddit URL

回應
  • 200
    類型: object · RedditSubredditDetailsResponse

    Successful response

    • credits_remaining
      類型: integer

      Integer numbers.

    • description
      類型: string
    • display_name
      類型: string
    • rules
      類型: array object[] | string

      Community rules as structured entries or formatted text.

      • propertyName
        類型: anything
    • subreddit_id
      類型: string
    • subscribers
      類型: integer

      Integer numbers.

    • success
      類型: boolean
    • weekly_active_users
      類型: integer

      Integer numbers.

    • weekly_contributions
      類型: integer

      Integer numbers.

    • propertyName
      類型: anything
    application/json
  • 400

    The request could not be processed. Check the request parameters.

  • 401

    A valid Felo API key is required.

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for get/v1/beta/reddit/subreddit/details
curl https://openapi.felo.ai/v1/beta/reddit/subreddit/details \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "success": true,
  "credits_remaining": 33950256,
  "subreddit_id": "t5_a7wuv",
  "display_name": "AbsoluteUnits",
  "weekly_active_users": 1428398,
  "weekly_contributions": 8923,
  "rules": "#ABSOLUTE UNITS\n\n---\n\n    Be in awe at the size of these lads\n\n---\n\n###[Check out our deep, well-reflected definitions of an absolute unit.](https://www.reddit.com/r/AbsoluteUnits/wiki/index)  ",
  "description": "Absolute Unit : an Animal or Public Figure, who is larger than we should normally expect.",
  "header_img": null,
  "icon_img": "https://styles.redditmedia.com/t5_a7wuv/styles/communityIcon_t3cspt08bl681.png?width=128&frame=1&auto=webp&s=6f7e59ccf1724bd6c8b3e0d2840c9b21297102c3",
  "subscribers": 1923642,
  "advertiser_category": "",
  "created_at": "2018-01-05T10:35:24.000Z",
  "submit_text": ""
}
Subreddit Details