Reddit Fetch

Fetch content from Reddit via its JSON API using a browser session (DuckDuckGo-hop unlock). Use when accessing Reddit URLs, researching topics on Reddit, or when Reddit returns 403/blocked errors.

10,295 stars 826 forksResearch & Science

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add ykdojo/claude-code-tips --skill reddit-fetch
Manual install
git clone --depth 1 https://github.com/ykdojo/claude-code-tips.git /tmp/claude-code-tips
mkdir -p ~/.claude/skills
cp -r /tmp/claude-code-tips/skills/reddit-fetch ~/.claude/skills/reddit-fetch

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Reddit Fetch

Reddit's public JSON API works by appending `.json` to any Reddit URL — but Reddit now hard-blocks automated access. **curl 403s essentially every time (host AND container, regardless of User-Agent), and even a cold Playwright navigation to `reddit.com` hits a `"You've been blocked by network security"` challenge page.** The reliable method is to arrive at Reddit *through a DuckDuckGo result redirect*: that sets a Reddit session cookie which unlocks direct `.json` access for the rest of the browser session.

## Primary method: the DuckDuckGo-hop unlock

**Step 1 - the DDG hop.** Do this once per session before any `.json` fetch.

1. `mcp__playwright__browser_navigate` to `https://html.duckduckgo.com/html/?q=site:reddit.com/r/SUBREDDIT+YOUR+QUERY`
2. Grab the first result's **full href** - it's a DDG redirect that includes a `rut` token (`https://duckduckgo.com/l/?uddg=...&rut=...`). The token is required; navigating to the bare `/l/?uddg=` without it 400s.
   ```js
   () => document.querySelector('.result__a')?.href
   ```
3. `browser_navigate` to that full redirect href. It lands on a real `www.reddit.com` page (title = the post/subreddit title, **not** "Blocked") and sets the session cookie. The result doesn't have to be the exact thread you want - landing on *any* real Reddit page sets the cookie.
Read the full skill on GitHub

Details

Skill name
reddit-fetch
Path
skills/reddit-fetch/SKILL.md
Repo updated
25 September 2026

FAQ

What does the Reddit Fetch skill do?

Fetch content from Reddit via its JSON API using a browser session (DuckDuckGo-hop unlock). Use when accessing Reddit URLs, researching topics on Reddit, or when Reddit returns 403/blocked errors.

How do I install the Reddit Fetch skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add ykdojo/claude-code-tips --skill reddit-fetch. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Reddit Fetch popular?

It lives in ykdojo/claude-code-tips, which has 10,295 GitHub stars and 826 forks, and is included in 2 curated skill lists.

Related skills

Browse the most popular Claude skills, all research & science skills, or write your own with the skills generator.