GET /subreddit/insights

Subreddit Insights

When to post and what works in a community: timing, flairs, post kinds, engagement. Reddit Scraper API endpoint /subreddit/insights: parameters, JSON response fields and code examples.

Posting insights for one community from up to sample_size recent posts over a week or a month: size and pace, typical scores and comments, what works by flair and post kind, how outside links fare and the best hours and weekdays to post (in UTC). Results are kept 24 hours; very busy communities get more complete numbers on later requests. Billed by sample_size: 3 requests for 100 posts, 4 for 200, 5 for 300, 7 for 500; with_ratios=true adds 5.

HTTP Request

GET /subreddit/insights

Cost (in requests): 3–7 by sample_size; +5 with_ratios. Every successful answer reports its cost in data.billed_requests.

Parameters

ParameterTypeRequiredDefaultDescription
subredditstringYes-Subreddit name (case-insensitive, with or without r/) or its t5_ id.
samplestringNonewWhich posts are analysed: new (default, everything posted in the window) or top (the window’s winners only).
timestringNoweekAnalysis window: week (default) or month.
sample_sizeintegerNo300Posts to analyse: one of 100, 200, 300, 500 (default 300). Allowed: 100, 200, 300, 500.
with_ratiosbooleanNofalseDefault false. True adds the median upvote ratio and share count of the 50 newest scored posts (slower; billed +5).
freshbooleanNofalseDefault false. True recomputes instead of serving the stored result (bills the full cost).

Response

Real response to GET /subreddit/insights?subreddit=python&sample_size=100 (arrays trimmed to 2 items, long texts cut with …).

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
  "status": true,
  "request_id": "94b6d176-a3ca-0f8f-f549-65c00351",
  "data": {
    "subreddit": {
      "name": "Python",
      "subreddit_id": "t5_2qh0y",
      "description": "The largest Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language. \n---\n\nIf you have questions or are new to Python use r/LearnPython",
      "subscribers_count": 1524296,
      "weekly_visitors": 89865,
      "weekly_contributions": 568,
      "is_nsfw": false,
      "icon_url": "https://styles.redditmedia.com/t5_2qh0y/styles/communityIcon_lctik80p96tg1.png?width=64&frame=1&auto=webp&s=92baaacc951d52b5071629852df033d53cafa5ec"
    },
    "period": {
      "from": "2026-10-25T14:28:20.261811+00:00",
      "to": "2026-11-24T14:28:20.261811+00:00"
    },
    "sample": {
      "posts_sampled": 78,
      "posts_scored": 74,
      "size_class": "small",
      "sample_mode": "live",
      "coverage_hours": 710.16,
      "min_post_age_hours": 24
    },
    "confidence": "high",
    "activity": {
      "subscribers_count": 1524296,
      "weekly_visitors": 89865,
      "weekly_contributions": 568,
      "activity_rate": 0.059,
      "posts_per_hour": 0.11,
      "posts_per_day": 2.64
    },
    "engagement": {
      "score_median": 19,
      "comments_median": 10,
      "score_percentiles": {
        "p50": 19,
        "p90": 138,
        "p99": 2519
      },
      "chance_of": {
        "score_100": 0.1757,
        "score_1000": 0.0135
      }
    },
    "self_promo": {
      "outside_link_share": 0.0,
      "outside_link_score_ratio": null,
      "tolerance": null
    },
    "by_post_type": [
      {
        "post_type": "text",
        "posts_count": 74,
        "score_median": 19,
        "comments_median": 10,
        "share": 1.0
      }
    ],
    "by_flair": [
      {
        "flair": "Discussion",
        "posts_count": 30,
        "score_median": 18,
        "comments_median": 17,
        "share": 0.4054
      },
      {
        "flair": ":pythonLogo: Daily Thread",
        "posts_count": 25,
        "score_median": 16,
        "comments_median": 2,
        "share": 0.3378
      }
    ],
    "best_weekdays": [
      {
        "weekday": "wednesday",
        "posts_count": 12,
        "winners_count": 5,
        "lift": 1.6228
      },
      {
        "weekday": "monday",
        "posts_count": 11,
        "winners_count": 3,
        "lift": 1.0622
      }
    ],
    "best_hours": [
      {
        "hour": 13,
        "posts_count": 2,
        "winners_count": 2,
        "lift": 1.4825
      },
      {
        "hour": 2,
        "posts_count": 5,
        "winners_count": 3,
        "lift": 1.4456
      }
    ],
    "resolved_filters": {
      "sample": "new",
      "time": "month",
      "sample_size": 100,
      "time_requested": "week"
    },
    "computed_at": "2026-11-24T14:28:20.261811+00:00",
    "fresh": false,
    "billed_requests": 3
  },
  "request_params": {
    "subreddit": "python",
    "sample_size": "100"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectCommunity insights; null on an input answer.
data.subredditobjectThe community analysed.
data.subreddit.namestringSubreddit name without r/.
data.subreddit.subreddit_idstringSubreddit id (t5_…).
data.subreddit.descriptionstringPublic description. Left out on /subreddit/rising (without with_details), the /subreddit/related same_topic rows and /answers.
data.subreddit.subscribers_countintegerSubscribers (members). Left out on /subreddit/most-visited, /subreddit/directory without with_stats and /answers.
data.subreddit.weekly_visitorsintegerWeekly visitors (Reddit’s periodic count, not live). Left out on /user/subreddits, /subreddit/posting-guide, /subreddit/rule-check and /answers.
data.subreddit.weekly_contributionsintegerWeekly posts + comments (Reddit’s periodic count, not live). Left out on the /subreddit/related same_topic rows, /subreddit/most-visited, /subreddit/directory without with_stats, /topic/subreddits, /user/subreddits, /subreddit/posting-guide, /subreddit/rule-check and /answers.
data.subreddit.is_nsfwbooleanMarked 18+. Left out on /subreddit/rising (without with_details), the /subreddit/related same_topic rows, /subreddit/most-visited, /subreddit/directory without with_stats (or include_nsfw=false), /topic/subreddits and /answers.
data.subreddit.icon_urlstringCommunity icon URL. Left out on /subreddit/rising (without with_details), /subreddit/posting-guide and /subreddit/rule-check.
data.periodobjectAnalysis window.
data.period.fromstringWindow start (ISO 8601, UTC).
data.period.tostringWindow end (ISO 8601, UTC).
data.sampleobjectWhat was analysed and how.
data.sample.posts_sampledintegerPosts read in the window.
data.sample.posts_scoredintegerPosts at least min_post_age_hours old whose score is settled enough to be used in statistics.
data.sample.size_classstringsmall, medium or huge from how fast the community posts; null when the community has no posts.
data.sample.sample_modestringlive (whole window read now), snapshot (very busy community, first look: more complete numbers on later requests) or tracked (very busy community, built up over the last 30 days).
data.sample.coverage_hoursfloatHours of posting actually covered by the sample.
data.sample.min_post_age_hoursintegerAge a post needs before its score counts: 24 hours, 6 on a huge community (its scores settle within hours).
data.confidencestringlow, medium or high: how much of the requested sample and window the numbers cover.
data.activityobjectSize and pace of the community (always current, even on a stored result).
data.activity.subscribers_countintegerMembers.
data.activity.weekly_visitorsintegerWeekly visitors.
data.activity.weekly_contributionsintegerWeekly posts and comments.
data.activity.activity_ratefloatWeekly visitors divided by members.
data.activity.posts_per_hourfloatNew posts per hour over the sample.
data.activity.posts_per_dayfloatNew posts per day over the sample.
data.engagementobjectTypical scores and comment counts.
data.engagement.score_medianintegerMedian score of scored posts.
data.engagement.comments_medianintegerMedian comment count of scored posts.
data.engagement.score_percentilesobjectScore distribution; null with fewer than 50 scored posts.
data.engagement.score_percentiles.p50integerMedian score of scored posts.
data.engagement.score_percentiles.p90integer90th percentile score.
data.engagement.score_percentiles.p99integer99th percentile score.
data.engagement.chance_ofobjectOdds of reaching score marks; null with fewer than 50 scored posts.
data.engagement.chance_of.score_100floatShare of scored posts reaching 100 points (0–1).
data.engagement.chance_of.score_1000floatShare of scored posts reaching 1,000 points (0–1).
data.self_promoobjectHow outside links fare here.
data.self_promo.outside_link_sharefloatShare of scored posts linking outside Reddit (0–1).
data.self_promo.outside_link_score_rationumber / nullMedian score of posts linking outside Reddit divided by the median of the rest; > 1 means links do well here.
data.self_promo.tolerancestring / nulllow (< 0.5), medium (0.5–1.0) or high (> 1.0) from the ratio; null without enough posts.
data.by_post_typearray of objectsWhat works by post kind, most posted first.
data.by_post_type[].post_typestringtext, link, image, gif, gallery, video, poll, crosspost, embed, game, or other (no kind).
data.by_post_type[].posts_countintegerScored posts of this type.
data.by_post_type[].score_medianintegerMedian score.
data.by_post_type[].comments_medianintegerMedian comment count.
data.by_post_type[].sharefloatShare of scored posts (0–1, 4 decimals).
data.by_flairarray of objectsWhat works by flair, most posted first.
data.by_flair[].flairstringFlair text; null = posts without a flair.
data.by_flair[].posts_countintegerScored posts with this flair.
data.by_flair[].score_medianintegerMedian score.
data.by_flair[].comments_medianintegerMedian comment count.
data.by_flair[].sharefloatShare of scored posts (0–1, 4 decimals).
data.best_weekdaysarray of objects7 weekday slots (UTC days) with lift; null when fewer than 50 posts were scored.
data.best_weekdays[].weekdaystringmonday … sunday.
data.best_weekdays[].posts_countintegerScored posts in this slot.
data.best_weekdays[].winners_countintegerWinners (top of the window ∪ top 25 % by score) in this slot.
data.best_weekdays[].liftfloatWinners’ share in this slot divided by all posts’ share; 1.0 = average, shrunk toward 1.0 when the slot has fewer than 10 posts.
data.best_hoursarray of objects24 hour slots (UTC hours) with lift; null when fewer than 50 posts were scored.
data.best_hours[].hourintegerHour of day 0–23 in the requested time zone.
data.best_hours[].posts_countintegerScored posts in this slot.
data.best_hours[].winners_countintegerWinners (top of the window ∪ top 25 % by score) in this slot.
data.best_hours[].liftfloatWinners’ share in this slot divided by all posts’ share; 1.0 = average, shrunk toward 1.0 when the slot has fewer than 10 posts.
data.resolved_filtersobjectInputs as applied.
data.resolved_filters.samplestringListing the posts came from: new or top.
data.resolved_filters.timestringAnalysis window applied: month when a week had fewer than 50 scored posts (see time_requested).
data.resolved_filters.sample_sizeintegerPosts asked for.
data.resolved_filters.time_requestedstringOnly when the window was widened: the time asked for (week).
data.computed_atstringWhen these numbers were computed (ISO 8601, UTC).
data.freshbooleanTrue when computed for this request; false when served from the stored result.
data.billed_requestsintegerRequests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1).
request_paramsobjectEcho of the parameters you sent

Error Responses

Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:

1
{ "status": false, "request_id": "99a1e6cd-2e57-9e8f-4e44-2dea7f6d", "error": "Invalid parameter 'post_id': must be a post id such as z1c9z or t3_z1c9z", "request_params": { "post_id": "!!" } }
Status CodeCauseDescription
400Invalid or missing parameterPlain-English message per field. Not billed
200 with status: falseItem not availableerror.code is not_found, banned, private, quarantined. data is null. Billed 1 request
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/insights"

params = {
    "subreddit": "python",
    "sample_size": "100",
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

print(data["confidence"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/insights";

const params = new URLSearchParams({
  subreddit: "python",
  sample_size: "100",
});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
console.log(data.confidence);
1
2
3
4
5
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/insights" \
  --data-urlencode "subreddit=python" \
  --data-urlencode "sample_size=100" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI