agentleFS
nikhonitnikhonit/social-media-api-skills/skills/reddit-api/SKILL.md

reddit-api

Skill3 starsChanged 3 months agoMIT-0View on GitHub

Reddit data toolkit via ScraperSocial — posts, full comment threads, subreddit listings and details, user profiles and keyword search.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    You need to post, comment or vote: Read-only. Reddit's own API handles writes.

    line 46
  2. Very specific:

    Every script also accepts --limit, --cursor, --fields, --format and --fresh.

    line 77
  3. Distinctive:

    Every response uses the same envelope:

    line 85

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Reddit API skill

Read public Reddit data as clean JSON. This Reddit API skill returns a post and its full comment tree, subreddit listings and metadata, user profiles and their post history, plus keyword search across posts and subreddits. Reddit is where people say what they actually think about a product, which makes it the highest-signal source in this repo for sentiment and research work.

This skill wraps 8 live Reddit endpoints from the ScraperSocial API. Public data only, returned as clean JSON.

When to use this skill

  • A user pastes a Reddit thread and asks what the discussion concluded.
  • You are researching how a product, company or topic is talked about by real users.
  • You are monitoring a subreddit for mentions of a brand.
  • You want to find the right subreddits for a topic.

Do not use this skill when

  • You need to post, comment or vote. Read-only. Reddit's own API handles writes.
  • You are pulling a large subreddit's full history. Listings are charged per item; scope with --limit and page deliberately.
  • You need private or quarantined content, or removed comments. Public data only.
  • A Reddit link appears in passing with no question attached.

Setup

export SCRAPERSOCIAL_KEY=sk_live_...   # https://scrapersocial.com/app/keys

Signing up at scrapersocial.com/signup includes 100 free credits, no card required.

Permissions and scope

These scripts do exactly three things and nothing else: read one environment variable (SCRAPERSOCIAL_KEY), send HTTPS requests to https://api.scrapersocial.com (the host is a constant in the code, not configurable), and print JSON. They run as node scripts/<name>.js with no other shell use, no file writes and no persistence. call_endpoint.js accepts only the 8 documented /v1/reddit/ paths in the table below and refuses anything else before a request is made.

Scripts

ScriptWhat it doesInputCredits
get_post.jsGet Reddit post.url4 credits
get_post_comments.jsList Reddit post comments.url2 credits per comment
search.jsList Reddit search.query2 credits per result
get_subreddit.jsList Reddit subreddit.handle2 credits per post
get_subreddit_details.jsGet Reddit subreddit details.handle4 credits
subreddit_search.jsList Reddit subreddit search.query2 credits per result
get_user.jsGet Reddit user.handle4 credits
get_user_posts.jsList Reddit user posts.handle2 credits per post
call_endpoint.jsCall any /v1/reddit/ endpoint directlypath + paramsvaries

Every script also accepts --limit, --cursor, --fields, --format and --fresh. --limit is clamped to 50: above that the API returns an async job instead of data.

Example

node skills/reddit-api/scripts/search.js "mechanical keyboards"

Every response uses the same envelope:

{ "data": {}, "meta": { "count": 20, "next_cursor": "..." }, "request_id": "a18e4ef88ad4b00b" }

meta appears on paginated endpoints only. Keep request_id — support traces calls with it.

Endpoints

EndpointInputReturnsCreditsPaginated
/v1/reddit/posturlpost4 creditsno
/v1/reddit/post-commentsurlcomment2 credits per commentyes
/v1/reddit/searchqueryresult2 credits per resultyes
/v1/reddit/subreddithandlepost2 credits per postyes
/v1/reddit/subreddit-detailshandlesubreddit4 creditsno
/v1/reddit/subreddit-searchqueryresult2 credits per resultyes
/v1/reddit/userhandleprofile4 creditsno
/v1/reddit/user-postshandlepost2 credits per postyes

Costs shown per item for paginated endpoints, per call otherwise. Failed calls are not charged.

FAQ

How do I get the comments on a Reddit post?

get_post_comments.js with the post URL returns the thread at 2 credits per comment. get_post.js returns the post itself for 4.

How do I monitor a subreddit?

get_subreddit.js with the subreddit handle lists posts at 2 credits each. get_subreddit_details.js returns the subreddit's own metadata for 4.

How do I find subreddits about a topic?

subreddit_search.js with a query. For post-level search across Reddit, use search.js.

Is this an official Reddit API?

No. ScraperSocial is independent and not affiliated with Reddit. It returns publicly available data only. Reddit's own API remains the sanctioned route, particularly for writes.

Links

Disclaimer

ScraperSocial is an independent product and is not affiliated with, endorsed by, or sponsored by any platform named in this repository. All product names, logos and brands are property of their respective owners. These skills return only publicly available data.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.