GET /subreddit/posts

Subreddit Posts

Posts of a subreddit (all six sorts, flair filter). Reddit Scraper API endpoint /subreddit/posts: parameters, JSON response fields and code examples.

A community’s feed in feed order, ads removed: title, author, score, upvote ratio, comments, flair, awards, media, body and feed flags. The page size is fixed at about 25 posts by Reddit’s listing (no per_page); continue with next_page_token. Billed 1 request per page read; a filter or a date range reads up to max_pages pages.

HTTP Request

GET /subreddit/posts

Cost (in requests): 1 per page. 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.
page_tokenstringNo-Opaque page token from a previous response’s next_page_token. Omit for the first page.
sortstringNohotFeed order: hot (default), new, top, rising, controversial, best. best reorders between calls, so a later page can miss a post shown in a different order. With posted_after / posted_before only new is accepted (the default then). Allowed: hot, new, top, rising, controversial, best.
timestringNodefaultTime window for top and controversial: hour, day, week, month, year, all. default (the default) = no window chosen: top and controversial read the last day; other sorts take none. Allowed: default, hour, day, week, month, year, all.
flairstringNo-Only posts with this flair (the tag a subreddit puts on posts, e.g. Discussion). Exact text as listed by /subreddit/flairs. Reddit forces sort=new with a flair filter.
post_typestringNoallKeep only posts of this kind: text, link, image, gif, gallery, video, poll, crosspost, embed, or game. Each page read to fill the answer is billed 1 request (billed_requests says how many). all (default) = no filter. Allowed: all, text, link, image, gif, gallery, video, poll, crosspost, embed, game.
min_wordsintegerNo-Only posts whose body has at least this many words (posts without a body count 0). Each page read to fill the answer is billed 1 request; each returned post then carries word_count and read_time_seconds.
max_wordsintegerNo-Only posts whose body has at most this many words. Must be >= min_words.
min_scoreintegerNo-Only posts with at least this net score (upvotes minus downvotes). Each page read to fill the answer is billed 1 request; scanned_count says how many posts were examined.
min_commentsintegerNo-Only posts with at least this many comments. Each page read to fill the answer is billed 1 request; scanned_count says how many posts were examined.
posted_afterstringNo-Only items created at or after this time: an ISO 8601 date (2026-01-01, the start of that day, UTC), a datetime (2026-01-01T18:00:00Z) or epoch seconds. Reddit has no date filter: the posts are read newest first and filtered here, so this reaches about the newest 1,000 posts of a listing; for older days of all of Reddit use /post/archive.
posted_beforestringNo-Only items created at or before this time, same formats as posted_after (a bare date includes that whole day). Must not be earlier than posted_after.
max_pagesintegerNo-Most Reddit pages one call reads to fill the page, 1–40. Default 8 with posted_after / posted_before, otherwise 4 (only used with a filter). Every page read is billed; with sort=new the walk stops at the first page older than posted_after.
include_nsfwbooleanNotrueDefault true: adult content included; pass false to exclude it (on searches the NSFW posts found are only those inside SFW communities: Reddit keeps its search SFW).
include_htmlbooleanNofalseAdds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text.
translate_tostringNononeReddit’s own machine translation of post titles and bodies into this language (default none: original language). Availability varies by post and page: check is_translated on each row. See the allowed values in the API overview .

Response

Real response to GET /subreddit/posts?subreddit=python&per_page=5 (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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
  "status": true,
  "request_id": "848cf29a-0e75-ba2c-2cd6-88d90caa",
  "data": {
    "items": [
      {
        "post_id": "t3_1y4iysc",
        "title": "I've started treating the output of my little Python scripts as a user interface",
        "type": "text",
        "permalink": "/r/Python/comments/1y4iysc/ive_started_treating_the_output_of_my_little/",
        "post_url": "https://www.reddit.com/r/Python/comments/1y4iysc/ive_started_treating_the_output_of_my_little/",
        "url": "https://www.reddit.com/r/Python/comments/1y4iysc/ive_started_treating_the_output_of_my_little/",
        "domain": "self.Python",
        "subreddit": "Python",
        "subreddit_id": "t5_2qh0y",
        "is_subreddit_nsfw": false,
        "author": "Pharaoh_Bellhop8",
        "is_author_deleted": false,
        "author_id": "t2_2r7uhyvt4e",
        "author_avatar_url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_6.png",
        "flair": {
          "text": "Discussion",
          "background_color": "#F50057"
        },
        "language": "en",
        "is_translated": false,
        "translated_to": null,
        "score": 45,
        "upvote_ratio": 0.8814,
        "comments_count": 21,
        "awards_count": 0,
        "created_at": "2026-11-24T17:18:02.427000+00:00",
        "edited_at": null,
        "is_nsfw": false,
        "is_spoiler": false,
        "is_stickied": false,
        "is_locked": false,
        "is_archived": false,
        "is_crosspost": false,
        "crosspost_parent_id": null,
        "crosspost_parent_subreddit": null,
        "is_highlighted": false,
        "is_ama": false,
        "ama_state": null,
        "ama_starts_at": null,
        "ama_ends_at": null,
        "distinguished": null,
        "removed_by": null,
        "removal_category": null,
        "position": 1,
        "thumbnail_url": null,
        "thumbnail_width": null,
        "thumbnail_height": null,
        "body_text": "I inherited a bunch of internal Python scripts at work last year. Most of them were perfectly readable, did their job and had been running for years without any major issues.\n\nThe annoying part was figuring out what they'd actually done.\n\nO…",
        "body_media": [],
        "poll": null,
        "media": null
      },
      {
        "post_id": "t3_1y45arf",
        "title": "PyInstaller on Windows: does code signing stop Smart App Control blocking the DLLs?",
        "type": "text",
        "permalink": "/r/Python/comments/1y45arf/pyinstaller_on_windows_does_code_signing_stop/",
        "post_url": "https://www.reddit.com/r/Python/comments/1y45arf/pyinstaller_on_windows_does_code_signing_stop/",
        "url": "https://www.reddit.com/r/Python/comments/1y45arf/pyinstaller_on_windows_does_code_signing_stop/",
        "domain": "self.Python",
        "subreddit": "Python",
        "subreddit_id": "t5_2qh0y",
        "is_subreddit_nsfw": false,
        "author": "Ishannaik",
        "is_author_deleted": false,
        "author_id": "t2_1035is",
        "author_avatar_url": "https://styles.redditmedia.com/t5_1c2i0g/styles/profileIcon_snooe12577d5-6803-440e-b32b-604efd0b05ec-headshot.png?width=64&height=64&frame=1&auto=webp&crop=64%3A64%2Csmart&s=31a860face46ed6d7df53b588ff8782f29dec32a",
        "flair": {
          "text": "Discussion",
          "background_color": "#F50057"
        },
        "language": "en",
        "is_translated": false,
        "translated_to": null,
        "score": 29,
        "upvote_ratio": 0.8537,
        "comments_count": 11,
        "awards_count": 0,
        "created_at": "2026-11-24T05:44:08.825000+00:00",
        "edited_at": null,
        "is_nsfw": false,
        "is_spoiler": false,
        "is_stickied": false,
        "is_locked": false,
        "is_archived": false,
        "is_crosspost": false,
        "crosspost_parent_id": null,
        "crosspost_parent_subreddit": null,
        "is_highlighted": false,
        "is_ama": false,
        "ama_state": null,
        "ama_starts_at": null,
        "ama_ends_at": null,
        "distinguished": null,
        "removed_by": null,
        "removal_category": null,
        "position": 3,
        "thumbnail_url": null,
        "thumbnail_width": null,
        "thumbnail_height": null,
        "body_text": "I ship a desktop app with a python backend frozen with pyinstaller, currently unsigned. Two problems on Windows:\n\nSmartScreen \"Windows protected your PC\" on every fresh download\n\nworse: on some users' machines Smart App Control blocks the b…",
        "body_media": [],
        "poll": null,
        "media": null
      }
    ],
    "has_next_page": true,
    "next_page_token": "eyJ2IjoxLCJraW5kIjoic3VicmVkZGl0X3Bvc3RzIiwiZnAiOiIxNTVlNDZhOGM0IiwidHMiOjE3OTU1NTM3OTcsInAxIjoidDNfMXk0aXlzYyIsInAxcyI6WyIxeTRpeXNjIiwiMXk0NWFyZiIsIjF5NDhjd2kiLCIxeTRjZWtkIiwiMXkzeWRrMyIsIjF5MzNxcGwiLCIxeTJiN3Q1IiwiMXkxbGZtaCIsIjF5MWlyaXoi…",
    "resolved_filters": {
      "subreddit": {
        "input": "python",
        "resolved": "Python",
        "source": "param"
      },
      "sort": {
        "input": null,
        "resolved": "hot",
        "source": "default"
      },
      "time": null,
      "flair": null
    },
    "billed_requests": 1
  },
  "request_params": {
    "subreddit": "python",
    "per_page": "5"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectListing; null with error.code not_found / banned / quarantined / private.
data.itemsarray of objectsPosts in feed order (ads removed).
data.items[].post_idstringPost fullname, e.g. t3_z1c9z.
data.items[].titlestringPost title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…).
data.items[].typestringtext, link, image, gif, gallery, video, poll, crosspost, embed, game. A text post with inline images is text (its images in body_media). Only with with_details=true on /post/batch and /answers.
data.items[].permalinkstringReddit path, e.g. /r/IAmA/comments/z1c9z/i_am_barack_obama/ (Reddit’s relative value; post_url is the same thread as a full link). Either form can be passed back as url.
data.items[].post_urlstringAbsolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open.
data.items[].urlstringWhere the post points (Reddit’s own url): the outside page for link posts, the image or video file for media posts (https://i.redd.it/…, https://v.redd.it/…), the original post for crossposts, the thread itself for text posts. The post’s own thread is post_url.
data.items[].domainstringLink domain (arstechnica.com). For a text post Reddit fills the placeholder self.{subreddit}, which is not a link domain: /domain/posts refuses it; list text posts with /subreddit/posts?post_type=text.
data.items[].subredditstringSubreddit name without r/.
data.items[].subreddit_idstringSubreddit id (t5_…).
data.items[].is_subreddit_nsfwbooleanThe community is 18+ (a post can be safe for work in an 18+ community); null when this endpoint does not carry it. Only with with_details=true on /post/batch, /domain/posts and /answers. Left out on /subreddit/multi-posts.
data.items[].authorstringAuthor username; [deleted] is reported as null with is_author_deleted true. Only with with_details=true on /post/batch and /answers.
data.items[].is_author_deletedbooleanThe author’s account is deleted (the post may remain).
data.items[].author_idstringAuthor account id (t2_…). Only with with_details=true on /post/batch and /answers.
data.items[].author_avatar_urlstringAuthor avatar URL. Only with with_details=true on the routes that have it; left out on /media/search and /subreddit/multi-posts.
data.items[].flairobjectPost flair. Only with with_details=true on /post/batch and /answers (always on /post/search). On the listing-card routes (/subreddit/posts, the feeds, /content/*, /user/activity and /user/insights posts) it holds text and background_color only.
data.items[].flair.textstringFlair text (emoji shortcodes kept, e.g. :phx-2: Suns).
data.items[].flair.background_colorstringHex background colour (#0079D3) or null when the flair has no colour.
data.items[].languagestringPost language code (listings only). Left out on the routes without a translate_to parameter.
data.items[].is_translatedbooleanReddit machine-translated the title and body (asked with translate_to); null when this endpoint does not report it. Left out on the routes without a translate_to parameter.
data.items[].translated_tostring / nullLanguage code of the translation when is_translated; else null. language stays the original language. Left out on the routes without a translate_to parameter.
data.items[].scoreintegerNet upvotes at fetch time.
data.items[].upvote_ratiofloatUpvote share 0–1, 4 decimals (e.g. 0.8218). Only with with_details=true on the routes that have it. Left out on /subreddit/multi-posts. Left out on /media/search.
data.items[].comments_countintegerComment count reported by Reddit.
data.items[].awards_countintegerNumber of awards; present only when the post has awards.
data.items[].created_atstringISO-8601 UTC creation time, microsecond precision. Left out on /media/search and on /answers without with_details.
data.items[].edited_atstring / nullISO-8601 UTC last edit; null when never edited. Filled on /post/details; never on /post/batch; the post embedded in /post/comments, /post/export, /post/summary and the other single-post routes leaves it out (read it on /post/details).
data.items[].is_nsfwbooleanMarked NSFW.
data.items[].is_spoilerbooleanMarked spoiler. Only with with_details=true on /post/batch and /answers.
data.items[].is_stickiedbooleanPinned in the feed (feeds and listings only). Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /media/search.
data.items[].is_lockedbooleanComments locked. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /media/search.
data.items[].is_archivedbooleanArchived (no new votes or comments). Only with with_details=true on the routes that have it (always on /post/search). Left out on /media/search.
data.items[].is_crosspostbooleanThe post is a crosspost. Only with with_details=true on the routes that have it. Left out on /media/search.
data.items[].crosspost_parent_idstring / nullId of the original post (t3_…) this crosspost shares; null unless is_crosspost and the endpoint carries it. Pass it to /post/details. Only with with_details=true on /post/batch and /answers (always on /post/search).
data.items[].crosspost_parent_subredditstring / nullSubreddit of the original post, without r/; null unless is_crosspost. Only with with_details=true on /post/batch and /answers (always on /post/search).
data.items[].is_highlightedbooleanHighlighted by the moderators. Served on the listing routes and on /post/details; the post embedded in /post/comments, /post/export, /post/summary and the other single-post routes leaves it out (read it on /post/details), as do the routes that do not have it.
data.items[].is_amabooleanAMA post. Served on the listing routes (subreddit posts, feeds, user activity, content); left out on other routes, such as /post/details, /post/comments, /post/search and /post/batch.
data.items[].ama_statestring / nullState of a scheduled AMA as Reddit reports it; null when the post is not a scheduled AMA. Served on the listing routes (subreddit posts, feeds, user activity, content); left out on other routes, such as /post/details, /post/comments, /post/search and /post/batch.
data.items[].ama_starts_atstring / nullISO-8601 UTC start of a scheduled AMA; else null. Served on the listing routes (subreddit posts, feeds, user activity, content); left out on other routes, such as /post/details, /post/comments, /post/search and /post/batch.
data.items[].ama_ends_atstring / nullISO-8601 UTC end of a scheduled AMA; else null. Served on the listing routes (subreddit posts, feeds, user activity, content); left out on other routes, such as /post/details, /post/comments, /post/search and /post/batch.
data.items[].distinguishedstring / nullmoderator or admin when the post is distinguished; else null. Only with with_details=true on the routes that have it.
data.items[].removed_bystring / nullWho removed the post: moderator, author, automod, spam, reddit or other; null when live or when this endpoint does not carry it. Only with with_details=true on the routes that have it.
data.items[].removal_categorystring / nullReddit’s removal reason as sent, e.g. moderator or automod_filtered; null when live. Only with with_details=true on the routes that have it.
data.items[].positionintegerRank in the feed or the search results, 1-based and counted across pages (feeds keep Reddit’s gaps where ads were).
data.items[].thumbnail_urlstring / nullThumbnail URL.
data.items[].thumbnail_widthinteger / nullThumbnail pixel width; null when this endpoint does not carry it. Only with with_details=true on the routes that have it.
data.items[].thumbnail_heightinteger / nullThumbnail pixel height; null when this endpoint does not carry it. Only with with_details=true on the routes that have it.
data.items[].body_textstringSelf text as plain text. Only with with_details=true on the routes that have it. Left out on /post/crossposts, /post/by-url and /subreddit/multi-posts. Left out on /media/search.
data.items[].body_mediaarrayImages and videos embedded in the text body, in order; empty when none or when this endpoint does not carry them. Only with with_details=true on the routes that have it.
data.items[].pollobject / nullPoll options and totals (poll posts only). Only with with_details=true on the routes that have it.
data.items[].mediaobject / nullImages, video renditions, gallery, embed. Only with with_details=true on the routes that have it (always on /post/search).
data.has_next_pagebooleanMore posts available.
data.next_page_tokenstringToken for the next page; null at the end.
data.resolved_filtersobjectFilters as applied.
data.resolved_filters.subredditobjectSubreddit as resolved (name case corrected).
data.resolved_filters.subreddit.inputstringWhat the caller sent.
data.resolved_filters.subreddit.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.subreddit.sourcestringparam (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language).
data.resolved_filters.sortobjectSort as applied (new when a flair filter forces it).
data.resolved_filters.sort.inputstring / nullWhat the caller sent.
data.resolved_filters.sort.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.sort.sourcestringparam (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language).
data.resolved_filters.timeobject / nullTime window as applied.
data.resolved_filters.flairobject / nullFlair filter as applied.
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
200 with status: falseBad page tokenerror.code is invalid_page_token: pass next_page_token from the previous answer unchanged

Code Examples

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

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

params = {
    "subreddit": "python",
    "per_page": "5",
}

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"]

for item in data["items"]:
    print(item["title"], item["subreddit"])
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/posts";

const params = new URLSearchParams({
  subreddit: "python",
  per_page: "5",
});

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();
data.items.forEach((item) => console.log(item.title, item.subreddit));
1
2
3
4
5
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/posts" \
  --data-urlencode "subreddit=python" \
  --data-urlencode "per_page=5" \
  -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