Skip to content

Pushshift API Python: what still works in 2026

Pushshift API Python guide: who can still use it, what to call instead for Reddit history, working requests code for Arctic Shift and live search, checked 2026-11-13.

Piyushh · November 13, 2026 · 3 min read

A card catalog with one locked drawer and one open drawer, picturing which Reddit archives still work.

The Pushshift API in Python only works if you're a Reddit moderator. Pushshift's own site (checked 2026-11-13) says access is limited to registered Reddit users who moderate, and you authenticate with OAuth to get a bearer token that lasts 24 hours. A normal script on a normal account won't get in. If you're here for a Pushshift Python example to pull old Reddit data, two routes still work, and this post has code for both.

Pushshift vs PullPush vs Arctic Shift, checked 2026-10-14, covers the archive question at length, including PullPush and the data dumps. This post is the code-first follow-up.

Why old Pushshift code stopped working

Python code written against Pushshift's old public search endpoints, wrappers like PSAW included, assumed anyone could call them. Nobody can now. We did not run PSAW, so we make no claim about its internals. All we know is that the service it targeted is now moderator-only. Check a tutorial's date before you copy its code.

Route 1: Arctic Shift for history

Arctic Shift is a free archive of Reddit posts and comments with a public API. On 2026-11-13 we asked it for the newest r/python post and got back one created that same day, so it was live when we wrote this. Its docs make no promises about uptime or performance. Treat it as best effort, and use the monthly dumps for anything big. The comparison post and the Arctic Shift page cover its status and risks.

import requests

r = requests.get(
    "https://arctic-shift.photon-reddit.com/api/posts/search",
    params={"subreddit": "python", "limit": 5},
    timeout=60,
)
r.raise_for_status()
for p in r.json()["data"]:
    print(p["created_utc"], p["title"][:70])

That response included created_utc, title and subreddit among its fields. We didn't map the rest, so print one full row and read its keys before you build on it. The filters for author, keyword and dates are listed in Arctic Shift's API readme.

This route makes sense when you need posts that may have been deleted, or history older than live search reaches. The trade-off is that archives can lag, and nothing guarantees they're complete.

Route 2: Live search for posts that exist

If the posts you want are still on Reddit, a live search is simpler and gives fresher results. In ChatterAPI, reddit.search takes a query, an optional subreddit and a time window of hour, day, week, month, year or all.

import os
import requests

r = requests.get(
    "https://api.chatterapi.com/v1/reddit/search",
    params={"q": "pushshift", "subreddit": "redditdev", "time": "year", "sort": "new"},
    headers={"Authorization": f"Bearer {os.environ['CHATTERAPI_KEY']}"},
    timeout=60,
)
r.raise_for_status()
for p in r.json()["data"]:
    print(p["createdAt"][:10], p["score"], p["title"][:70])

Each page returns about 25 posts and costs 2 credits. Rows carry createdAt, score, numComments, author and permalink. To get an exact date range, filter on createdAt in code. Reddit API search by date shows the pattern. For the wider Python picture, including threads and comments, read the Reddit API Python guide.

Which route to pick

You needUse
Posts that may have been deletedArctic Shift or the dumps
Posts from years ago, in bulkThe monthly dumps
Fresh posts and comments, by keywordLive search
Reddit data inside an agentThe hosted MCP server, see Reddit MCP server

No live API can recover removed content. Reddit now hides moderator-removed comments from profiles, so no live tool can show them.

What to avoid

  • Copying a Pushshift tutorial without checking its date. The endpoints it uses may be closed to you.
  • Hammering a free archive, which has no uptime guarantee. Use dumps when you need volume.
  • Treating archive data as a complete record. You only get what the archive happened to capture.

Search Reddit posts now

Test a query in the free Reddit post search before you write the loop.

FAQ

Does the Pushshift API still work in Python?
Only for Reddit moderators. Pushshift's site says access is restricted to registered Reddit moderators, who authenticate with OAuth for a bearer token valid for 24 hours (checked 2026-11-13). Ordinary scripts without that status will not get access.
What is the best Pushshift alternative for Python?
For old and deleted posts, Arctic Shift's free API, which answered a request for us on 2026-11-13 and has no uptime guarantee. For posts that still exist, a live Reddit search API such as ChatterAPI's /v1/reddit/search.
Can I get deleted Reddit posts with Python?
Only from an archive that captured them before deletion, such as Arctic Shift or the monthly dumps. A live API reads what is on Reddit now, so deleted posts do not come back.
Does the old PSAW library still work?
We did not test it. It wrapped Pushshift's old public endpoints, which are no longer open to ordinary users, so we would not build on it.
How do I get Reddit history in Python?
Use an archive API like Arctic Shift for date-based history, or live search with a time window and a createdAt filter for posts that still exist. The code for both is below.

More on Reddit API

Try it free for 7 days.

1,000 credits to make your first calls. One key for Reddit and X, over REST or MCP.