reddit-fetch

Fetch Reddit content via Gemini browsing with a JSON API fallback.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/Ocean326/Agents --skill reddit-fetch-ocean326
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reddit-fetch
Source: https://github.com/Ocean326/Agents/tree/main/skills/global/reddit-fetch
Command: npx skills add https://github.com/Ocean326/Agents --skill reddit-fetch-ocean326

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables fast access to Reddit content by using Gemini for browsing and summarization, with a reliable JSON API fallback when access is restricted or blocked.

Core Features & Use Cases

  • Browse and summarize Reddit posts with Gemini.
  • Fallback to Reddit's JSON API via curl for reliability.
  • Use Case: Research topics on Reddit and collect post data when Gemini can't reach the site.

Quick Start

Query Reddit content using Gemini for browsing and summarization, with a fallback to the Reddit JSON API via curl when Gemini is unavailable.

Frequently Asked Questions about reddit-fetch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch Reddit posts and comments when the site is blocked or rate-limited?

To fetch Reddit posts when access is blocked, you can use Gemini for browsing or fall back to the public Reddit JSON API via curl with a proper User-Agent. This dual approach ensures reliable data retrieval and summarization even when direct access is restricted.

What is the best way to collect datasets from subreddits for research?

The best way to collect datasets from subreddits for research is by fetching top posts and comments via the Reddit JSON API. You can use curl for retrieval or Gemini for browsing and summarization, applying retry logic to ensure complete data collection.

Do I need a Gemini session to retrieve Reddit content, or can I use curl?

You do not strictly need a Gemini session to retrieve Reddit content. You can use curl with the public JSON API as a reliable fallback path, applying a proper User-Agent and documented retry logic for successful data retrieval.

How does the Reddit JSON API fallback work for web scraping tasks?

The Reddit JSON API fallback works by switching from Gemini-based browsing to using curl commands for direct API data retrieval. This mechanism handles blocked access or rate limits, ensuring you can still gather top posts, comments, and subreddit datasets.

Can I search subreddits and gather top posts using Gemini browsing?

Yes, you can search subreddits and gather top posts using Gemini browsing. If Gemini is unavailable or blocked, the skill provides a clear fallback path to retrieve the same Reddit content using the public JSON API with curl.

Why does my curl request to the Reddit JSON API fail without a User-Agent?

Your curl request to the Reddit JSON API fails without a proper User-Agent because Reddit blocks default or empty user agents to prevent abuse. Providing a valid User-Agent string ensures successful data retrieval and prevents rate-limiting issues.