Skip to content

Subreddit Details

GET/v1/reddit/subreddit/details1 credit

Returns a subreddit's public details: id, name, description, banner and icon, and its weekly active users and weekly contributions.

01Query parameters

NameTypeDescription
subredditoptionalstringThe subreddit's name, e.g. `AskReddit` (case-sensitive). One of `subreddit` or `url` is required.
urloptionalstringThe subreddit's URL, e.g. `https://www.reddit.com/r/AskReddit/`. One of `subreddit` or `url` is required.
cache_max_ageoptionalstringAccepted for compatibility; every call is fetched fresh and costs the normal price. Any other value is a free 400.Accepted values:1d3d7d14d30d

02Request

curl "https://api.scrapesocial.ai/v1/reddit/subreddit/details?subreddit=AskReddit" \
  -H "x-api-key: $SCRAPESOCIAL_KEY"

03Responses

Real answers from the API. Lists are shortened to 2 items.

GET /v1/reddit/subreddit/details?subreddit=AskReddit

{
  "success": true,
  "credits_remaining": 4980,
  "credits_charged": 1,
  "subreddit_id": "t5_2qh1i",
  "display_name": "AskReddit",
  "weekly_active_users": 12140464,
  "weekly_contributions": 1036604,
  "rules": null,
  "description": "r/AskReddit is the place to ask and answer thought-provoking questions.",
  "header_img": "https://styles.redditmedia.com/t5_2qh1i/styles/bannerBackgroundImage_fs33xogq946f1.png?frame=1&auto=webp&s=9170912bc2b0276e17131afc71ba890709183f10",
  "icon_img": "https://styles.redditmedia.com/t5_2qh1i/styles/communityIcon_p6kb2m6b185b1.png?width=64&frame=1&auto=webp&s=8e8d7fabcc18322bde1c5a388488f19477ed60ed",
  "subscribers": null,
  "advertiser_category": null,
  "created_at": null,
  "submit_text": null
}

Common to every endpoint

Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.

GET /v1/cosmos/profile?handle=design

{
  "success": false,
  "message": "Invalid API key"
}

04Notes

`rules`, `created_at`, `advertiser_category`, `submit_text` and `subscribers` are always null. An unknown subreddit is a free 404 (`Subreddit not found`).

05Errors & credits

Every error has success: false, a real HTTP status and costs no credits.

  • 400missing_parameter

    A required parameter is missing or invalid.

  • 403private_account

    The account is private or age-restricted.

  • 404not_found

    No such account.

  • 503upstream_error

    The platform did not answer; retry shortly.