Tools
PRAW and snoowrap
Keep your PRAW or snoowrap script: point it at our compatible host and use your key.
Change one URL. The compatible host https://reddit.groundsocial.dev serves Reddit’s own paths and JSON, so PRAW, snoowrap and go-reddit keep working for reads. Billing, refunds and spend caps are the same as the REST API.
reddit = praw.Reddit(
client_id="groundsocial", # anything
client_secret=os.environ["GROUNDSOCIAL_API_KEY"], # your API key
user_agent="my-app/1.0",
oauth_url="https://reddit.groundsocial.dev",
reddit_url="https://reddit.groundsocial.dev",
)snoowrap takes endpointDomain: "<domain>" and uses oauth.<domain> and www.<domain>.
Auth
POST /api/v1/access_token accepts client_credentials, password, refresh_token and the installed-client grant. Put your key in the client secret (client id: anything), or in the client id with an empty secret, or in password. The token lasts 24 hours and dies at once if you revoke the key. The key itself is also accepted as the bearer.
What works
| Reddit path | Served by |
|---|---|
/, /{sort}, /r/{sub}, /r/{sub}/{hot,new,top,rising,controversial} | Subreddit posts (popular for the front page) |
/r/{sub}/about | Subreddit |
/comments/{id}, /r/{sub}/comments/{id}[/{slug}] | Post with comments, as [Listing(t3), Listing(comments)] |
/api/morechildren | More comments (replace_more) |
/api/info?id=t3_… | One post or subreddit call per item |
/user/{u}/about, /user/{u}/{submitted,comments} | User, user posts, user comments |
/search, /r/{sub}/search, /subreddits/search | Search posts or subreddits |
/api/v1/me | A synthetic read-only user, free |
.jsonsuffixes, trailing slashes andraw_json=1are accepted.- Parameters are read leniently like Reddit:
limitis clamped to 1–100; a badafter,torsortis ignored. - Errors keep Reddit’s body (
{"message": "Not Found", "error": 404}) plus ourcode,detailandhint.
Rate-limit headers
We limit by credits, not a request window. x-ratelimit-remaining is your balance (never below 1, so the client fails fast on a 402 instead of sleeping), x-ratelimit-used is 0 and x-ratelimit-reset the seconds to the next 10-minute boundary. PRAW’s limiter never delays a request.