Metadata-Version: 2.4
Name: apify-reddit-historical-archive-scraper
Version: 1.0.0
Summary: Reddit Historical Archive Scraper - Old Posts by Date — free API client for the Apify platform. No API key setup, thousands of structured results, export to JSON, CSV or Excel.
Author: logiover
License: MIT
Project-URL: Homepage, https://apify.com/logiover/reddit-historical-archive-scraper
Project-URL: Repository, https://github.com/logiover/reddit-historical-archive-scraper
Project-URL: Bug Tracker, https://github.com/logiover/reddit-historical-archive-scraper/issues
Keywords: reddit,historical,archive,scraper,old,posts,date,apify,web scraping,data export,crawler,json,csv,no api key,unofficial api,dataset,data extraction
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: apify-client>=1.6
Dynamic: license-file

# Reddit Historical Archive Scraper - Old Posts by Date

[![Run on Apify](https://img.shields.io/badge/Apify-Run%20Actor-97D700?logo=apify)](https://apify.com/logiover/reddit-historical-archive-scraper) [![Python client](https://img.shields.io/badge/client-py-blue)](https://github.com/logiover/reddit-historical-archive-scraper)

**Reddit Historical Archive Scraper - Old Posts by Date** — a Python client for the [Apify Actor](https://apify.com/logiover/reddit-historical-archive-scraper). Pull **Reddit Historical Archive** data at scale with no API-key hassle: thousands of clean, structured results you can export to JSON, CSV or Excel.

▶️ **Run it on Apify:** https://apify.com/logiover/reddit-historical-archive-scraper

## Install
```bash
pip install apify-reddit-historical-archive-scraper
```

## Usage
```python
from reddit_historical_archive_scraper import scrape

items = scrape({}, token="YOUR_APIFY_TOKEN")
print(len(items), "results")
print(items[0])
```

Get your free Apify token at <https://console.apify.com/account/integrations>.

## Input
| Field | Type | Description |
|---|---|---|
| `subreddits` | array | Subreddits |
| `postIds` | array | Post IDs |
| `usernames` | array | Usernames |
| `searchQueries` | array | Post Search Queries |
| `commentSearchQueries` | array | Comment Search Queries |
| `startUrls` | array | Reddit URLs (auto-detected) |
| `sort` | string | Sort |
| `afterDate` | string | After Date (ISO) |
| `beforeDate` | string | Before Date (ISO) |
| `minScore` | integer | Minimum Score |
| `userContent` | string | User Content Type |
| `maxItems` | integer | Max Items (Global) |
| `maxItemsPerTarget` | integer | Max Items Per Target |
| `requestDelayMs` | integer | Request Delay (ms) |
| `maxRetries` | integer | Max Retries on 429/5xx/timeout |

*All fields optional — run with empty input `{}` for a broad default result set.*

## Output
Each result item includes fields such as: `subreddit`, `author`, `title`, `score`, `upvoteRatio`, `numComments`, `createdUtc`, `permalink`, `url`, `body`, `depth`, `username`, `linkKarma`, `commentKarma`, `totalKarma`, `verified`, `isGold`, `isMod`, `displayNamePrefixed`, `subscribers`.

## Why use this
- ⚡ Thousands of results per run, auto-paginated
- 🔑 No Reddit Historical Archive login or reverse-engineering — just call the Actor
- 📦 Export to JSON, CSV, Excel, JSONL, XML
- ☁️ Runs on Apify cloud — schedule it, add webhooks, wire into Make / Zapier / n8n

## FAQ
### Do I need an API key?
Only a free Apify token (grab one at https://console.apify.com/account/integrations). No Reddit Historical Archive login and no scraping setup on your side.

### How many results can I get?
Thousands per run. Raise the limit in the input to pull more — the Actor paginates for you.

### What export formats are supported?
Results are plain JSON in code; from the Apify dataset you can export CSV, Excel, JSON, JSONL or XML.

### Is this an official Reddit Historical Archive API?
No. It is an unofficial Reddit Historical Archive data client on the Apify platform — a maintained alternative when there is no official or affordable API.

## Links
- ▶️ Run the Actor: https://apify.com/logiover/reddit-historical-archive-scraper
- 📚 Docs & examples: https://github.com/logiover/reddit-historical-archive-scraper
- 🧰 More scrapers by logiover: https://apify.com/logiover

---
MIT © 2026 logiover · Client library for the hosted Apify Actor. Not affiliated with Reddit Historical Archive.
