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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
date | string | Yes | - | Day (2015-03-15), month (2015-03) or year (2015) to read, from 2008-01-01 up to yesterday (UTC). |
page_token | string | No | - | Opaque token from a previous next_page_token (same date and locale); wins over page when both are sent. |
page | integer | No | 1 | Page 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. |
locale | string | No | global | Archive 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_details | boolean | No | false | Adds details, the full post card, to the first 25 rows of the page (left out without it). Billed: +1 request per post. |
include_html | boolean | No | false | Adds 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 …).
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | Archive page (empty items past the last page). |
data.granularity | string | day, month or year. |
data.total_pages | integer | Number of pages (known on page 1; null on later pages). |
data.is_final | boolean | True 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_min | integer | Only posts that reached this score are in the archive (about a third of a day’s posts). |
data.has_next_page | boolean | A later page exists (page + 1). |
data.next_page_token | string | Token for the next page (same as asking for page + 1); null on the last page. |
data.resolved_filters | object | Date and directory as read. |
data.resolved_filters.date | object | Date as read (YYYY-MM-DD, YYYY-MM or YYYY). |
data.resolved_filters.date.input | string | What the caller sent. |
data.resolved_filters.date.resolved | string | What was applied on Reddit (null when not applied). |
data.resolved_filters.date.source | string | param (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.locale | object | Archive directory as read (lower case). |
data.resolved_filters.locale.input | string / null | What the caller sent. |
data.resolved_filters.locale.resolved | string | What was applied on Reddit (null when not applied). |
data.resolved_filters.locale.source | string | param (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_at | string | When this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache. |
data.billed_requests | integer | Requests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1). |
data.items | array of objects | Posts of the page, best score first (250 per full page). |
data.items[].post_id | string | Post fullname (t3_…). |
data.items[].title | string | Post title. |
data.items[].permalink | string | Reddit path of the post. |
data.items[].post_url | string | Absolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open. |
data.items[].url | string | Where 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[].subreddit | string | Community name. |
data.items[].subreddit_icon_url | string | Community icon URL. |
data.items[].score | integer | Net upvotes at the time the page was read (live value, not the historical one). |
data.items[].comments_count | integer | Comment count (0 when Reddit omits it). |
data.items[].created_at | string | ISO-8601 UTC creation time. |
data.items[].thumbnail_url | string | Thumbnail URL. |
data.items[].position | integer | Rank on the archive (best score first), 1-based across pages. |
request_params | object | Echo of the parameters you sent |
Error Responses
Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:
| |
| Status Code | Cause | Description |
|---|---|---|
| 400 | Invalid or missing parameter | Plain-English message per field. Not billed |
200 with status: false | Item not available | error.code is not_found, deleted (post removed or deleted). data is null. Billed 1 request |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
200 with status: false | Bad page token | error.code is invalid_page_token: pass next_page_token from the previous answer unchanged |
Code Examples
| |
| |
| |
Related Endpoints
- Post Batch : Look up to 200 posts in one request
- Post Status : Check whether up to 200 posts are live, removed or deleted
- Related Posts : Posts Reddit relates to a post