GET /post/archive

Post Archive

Reddit's dated archive: top posts of a day, month or year since 2008. Reddit Scraper API endpoint /post/archive: parameters, JSON response fields and code examples.

Reddit’s own dated archive: every post of a day that reached a score of 10, best first, or the top 250 of a month or year, back to 2008 (date, locale). 250 rows per page; continue with page or next_page_token. Billed 1 request per page, +1 per post with with_details=true.

HTTP Request

GET /post/archive

Cost (in requests): 1; +1 per post with with_details. Every successful answer reports its cost in data.billed_requests.

Parameters

ParameterTypeRequiredDefaultDescription
datestringYes-Day (2015-03-15), month (2015-03) or year (2015) to read, from 2008-01-01 up to yesterday (UTC).
page_tokenstringNo-Opaque token from a previous next_page_token (same date and locale); wins over page when both are sent.
pageintegerNo1Page number, 250 posts per page, best score first. total_pages is reported on page 1. Month and year archives have one page; a page past the last one answers an empty list.
localestringNoglobalArchive directory: global (default, everything) or one of Reddit’s 26 language directories (subsets of global; the four tl-* ones hold machine-translated English posts; several are frozen at 2023-12-02). Case-insensitive. See the allowed values in the API overview .
with_detailsbooleanNofalseAdds details, the full post card, to the first 25 rows of the page (left out without it). Billed: +1 request per post.
include_htmlbooleanNofalseAdds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text.

Response

Real response to GET /post/archive?date=2024-03-15&limit=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
{
  "status": true,
  "request_id": "a76d7ff3-8fdf-da78-6fa9-c4e55417",
  "data": {
    "granularity": "day",
    "total_pages": 389,
    "is_final": true,
    "score_min": 10,
    "has_next_page": true,
    "next_page_token": "eyJ2IjoxLCJraW5kIjoiYXJjaGl2ZV9wYWdlIiwiZCI6IjIwMjQtMDMtMTUiLCJsIjoiZ2xvYmFsIiwicCI6MiwidCI6Mzg5fQ",
    "resolved_filters": {
      "date": {
        "input": "2024-03-15",
        "resolved": "2024-03-15",
        "source": "param"
      },
      "locale": {
        "input": null,
        "resolved": "global",
        "source": "default"
      }
    },
    "computed_at": "2026-11-24T20:55:51.848719+00:00",
    "billed_requests": 1,
    "items": [
      {
        "post_id": "t3_1bflt1t",
        "title": "Guy trips down stares, hits fire alarm",
        "permalink": "/r/WatchPeopleDieInside/comments/1bflt1t/guy_trips_down_stares_hits_fire_alarm/",
        "post_url": "https://www.reddit.com/r/WatchPeopleDieInside/comments/1bflt1t/guy_trips_down_stares_hits_fire_alarm/",
        "url": "https://www.reddit.com/r/WatchPeopleDieInside/comments/1bflt1t/guy_trips_down_stares_hits_fire_alarm/",
        "subreddit": "WatchPeopleDieInside",
        "subreddit_icon_url": "https://a.thumbs.redditmedia.com/tbLwsQpnObxDoRK-zP_O5-vAgnYemyDmGFSqyUVe5s0.png",
        "score": 93403,
        "comments_count": 7145,
        "created_at": "2024-03-15T19:10:03.464000+00:00",
        "thumbnail_url": "https://external-preview.redd.it/ZXlhc2toZDdyam9jMUieCHCfzLHffYlaVaEHAzQFF9k3F1LXpe6N8R8GtcJ6.png?width=140&height=140&crop=140%3A140%2Csmart&format=jpg&v=enabled&lthumb=true&s=9cc1e92c45d03c11a1c0df9e109b2e0d9217b5e3",
        "position": 1
      },
      {
        "post_id": "t3_1bf9019",
        "title": "Maybe Maybe Maybe",
        "permalink": "/r/maybemaybemaybe/comments/1bf9019/maybe_maybe_maybe/",
        "post_url": "https://www.reddit.com/r/maybemaybemaybe/comments/1bf9019/maybe_maybe_maybe/",
        "url": "https://www.reddit.com/r/maybemaybemaybe/comments/1bf9019/maybe_maybe_maybe/",
        "subreddit": "maybemaybemaybe",
        "subreddit_icon_url": "https://styles.redditmedia.com/t5_38e1l/styles/communityIcon_hcpveq6pu5p41.png?width=64&frame=1&auto=webp&s=83835a8d3be667f945504766e183b54f39c3a81a",
        "score": 19537,
        "comments_count": 224,
        "created_at": "2024-03-15T08:20:02.285000+00:00",
        "thumbnail_url": "https://external-preview.redd.it/MzUxenVsM2NqZ29jMVCuByuHNBreU8kBPmbY-jtsx9x3zZ5xV_Ig0vcqkvBY.png?width=140&height=140&crop=140%3A140%2Csmart&format=jpg&v=enabled&lthumb=true&s=5af57c75620cadaa8ce35464cb5bb74eb8e5eb9f",
        "position": 2
      }
    ]
  },
  "request_params": {
    "date": "2024-03-15",
    "limit": "5"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectArchive page (empty items past the last page).
data.granularitystringday, month or year.
data.total_pagesintegerNumber of pages (known on page 1; null on later pages).
data.is_finalbooleanTrue when the date is more than 3 days old: Reddit’s archive no longer changes and the page is kept for 30 days.
data.score_minintegerOnly posts that reached this score are in the archive (about a third of a day’s posts).
data.has_next_pagebooleanA later page exists (page + 1).
data.next_page_tokenstringToken for the next page (same as asking for page + 1); null on the last page.
data.resolved_filtersobjectDate and directory as read.
data.resolved_filters.dateobjectDate as read (YYYY-MM-DD, YYYY-MM or YYYY).
data.resolved_filters.date.inputstringWhat the caller sent.
data.resolved_filters.date.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.date.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.localeobjectArchive directory as read (lower case).
data.resolved_filters.locale.inputstring / nullWhat the caller sent.
data.resolved_filters.locale.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.locale.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.computed_atstringWhen this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache.
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).
data.itemsarray of objectsPosts of the page, best score first (250 per full page).
data.items[].post_idstringPost fullname (t3_…).
data.items[].titlestringPost title.
data.items[].permalinkstringReddit path of the post.
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 media file for image / video posts, the thread itself for text posts. The post’s own thread is post_url.
data.items[].subredditstringCommunity name.
data.items[].subreddit_icon_urlstringCommunity icon URL.
data.items[].scoreintegerNet upvotes at the time the page was read (live value, not the historical one).
data.items[].comments_countintegerComment count (0 when Reddit omits it).
data.items[].created_atstringISO-8601 UTC creation time.
data.items[].thumbnail_urlstringThumbnail URL.
data.items[].positionintegerRank on the archive (best score first), 1-based across pages.
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, deleted (post removed or deleted). 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/post/archive"

params = {
    "date": "2024-03-15",
    "limit": "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/post/archive";

const params = new URLSearchParams({
  date: "2024-03-15",
  limit: "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/post/archive" \
  --data-urlencode "date=2024-03-15" \
  --data-urlencode "limit=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